diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 09:04:15 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 09:04:15 +0100 |
| commit | 86c09e193ed66420da48a7fd62678286b89dace2 (patch) | |
| tree | 5d1add9b7fec1f4783407f21ec7ed9ff149e6220 /src/wlstate.cc | |
| parent | 888ce66e186e2892bc30afb5bb97918d504e0ba1 (diff) | |
working on event loop
Diffstat (limited to 'src/wlstate.cc')
| -rw-r--r-- | src/wlstate.cc | 8 |
1 files changed, 4 insertions, 4 deletions
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 = { |
