From 86c09e193ed66420da48a7fd62678286b89dace2 Mon Sep 17 00:00:00 2001 From: Fabrice Date: Tue, 10 Feb 2026 09:04:15 +0100 Subject: working on event loop --- src/wlstate.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/wlstate.cc') diff --git a/src/wlstate.cc b/src/wlstate.cc index 1a02b5b..4b1a65f 100644 --- a/src/wlstate.cc +++ b/src/wlstate.cc @@ -25,7 +25,7 @@ static void wayc_registry_add(void *data, struct wl_registry *registry, wayc_notnull(registry); wayc_notnull(interface); - struct wl_state_s *state = (struct wl_state_s *)data; + struct wlstate_s *state = (struct wlstate_s *)data; if (!strcmp(interface, wl_compositor_interface.name)) { wl_compositor_t compositor = (wl_compositor_t)wl_registry_bind( @@ -57,7 +57,7 @@ static struct wl_registry_listener WAYC_REGISTRY_LISTENER = { wayc_registry_remove, }; -bool wayc_wl_state_init(struct wl_state_s *state) { +bool wayc_wlstate_init(struct wlstate_s *state) { wayc_assert(state != NULL); wl_display_t display = wl_display_connect(NULL); @@ -86,13 +86,13 @@ bool wayc_wl_state_init(struct wl_state_s *state) { return true; } -void wayc_wl_state_deinit(struct wl_state_s *state) { +void wayc_wlstate_deinit(struct wlstate_s *state) { wayc_assert(state != NULL); wl_display_disconnect(state->display); } -void wayc_wl_state_update(struct wl_state_s *state) { +void wayc_wlstate_update(struct wlstate_s *state) { wayc_assert(state != NULL); struct pollfd pfd = { -- cgit v1.2.3