summaryrefslogtreecommitdiff
path: root/src/wlstate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wlstate.h')
-rw-r--r--src/wlstate.h8
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);