diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 14:03:09 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 14:03:09 +0100 |
| commit | 1acadb9cdfc2025b65b190c872e420b199827655 (patch) | |
| tree | f220f0adef4795bad340b3ca76031d99c6aa9263 /src/wlstate.h | |
| parent | bce43321ba6d5723e57710bd48bc84c08ec493ff (diff) | |
use concrete errors
Diffstat (limited to 'src/wlstate.h')
| -rw-r--r-- | src/wlstate.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/wlstate.h b/src/wlstate.h index 5cf3927..3b86345 100644 --- a/src/wlstate.h +++ b/src/wlstate.h @@ -2,6 +2,12 @@ #include "utils.h" +enum wlstate_error_e { + WLSTATE_ERROR_NONE = 0, + WLSTATE_ERROR_CONNECTION, + WLSTATE_ERROR_REGISTRY, +}; + struct wlstate_s { wl_display_t display; wl_registry_t registry; @@ -10,6 +16,6 @@ struct wlstate_s { i32 eventfd; }; -bool wayc_wlstate_init(struct wlstate_s* state); +enum wlstate_error_e wayc_wlstate_init(struct wlstate_s* state); void wayc_wlstate_deinit(struct wlstate_s* state); void wayc_wlstate_update(struct wlstate_s* state); |
