From 1acadb9cdfc2025b65b190c872e420b199827655 Mon Sep 17 00:00:00 2001 From: Fabrice Date: Tue, 10 Feb 2026 14:03:09 +0100 Subject: use concrete errors --- src/wlstate.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/wlstate.h') 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); -- cgit v1.2.3