summaryrefslogtreecommitdiff
path: root/src/wlstate.h
blob: 7bb349928ecebb551bca00386ff36a6aaeb38538 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

#include "utils.h"

struct wlstate_s {
  wl_display_t display;
  wl_registry_t registry;
  wl_compositor_t compositor;
  xdg_wm_base_t wm_base;
  u32 eventfd;
};

bool wayc_wlstate_init(struct wlstate_s *state);
void wayc_wlstate_deinit(struct wlstate_s *state);
void wayc_wlstate_update(struct wlstate_s *state);