#include "wlstate.h" #include "utils.h" bool wayc_wl_state_init(struct wl_state_s *state) { wayc_assert(state != NULL); wl_display_t display = wl_display_connect(NULL); if (display == NULL) return false; state->display = display; return true; } void wayc_wl_state_deinit(struct wl_state_s *state) { wayc_assert(state != NULL); wl_display_disconnect(state->display); }