diff options
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 = { |
