diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 07:41:11 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 07:41:11 +0100 |
| commit | 5b5eb5a16969afc4862fac387940818efc26780a (patch) | |
| tree | b33d699e7c0d780d88b015f3f605cebc46258210 /src/wlstate.cc | |
| parent | 0a158275020e94d9395fadaec1db34a1031fe87c (diff) | |
how are we going to do this
Diffstat (limited to 'src/wlstate.cc')
| -rw-r--r-- | src/wlstate.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/wlstate.cc b/src/wlstate.cc new file mode 100644 index 0000000..e78aad1 --- /dev/null +++ b/src/wlstate.cc @@ -0,0 +1,19 @@ +#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); +} |
