#pragma once #include "vec.h" #include "window.h" #include "wlstate.h" enum event_kind_e { EVENT_KIND_CLOSE, }; struct event_s { enum event_kind_e kind; struct window_s *window; }; struct eventloop_s { struct wlstate_s state; vec_s events; }; bool wayc_eventloop_init(struct eventloop_s *loop); void wayc_eventloop_deinit(struct eventloop_s *loop);