#include "events.h" #include "vec.h" bool wayc_eventloop_init(struct eventloop_s *loop) { wayc_notnull(loop); if (!wayc_wlstate_init(&loop->state)) return false; loop->events = WAYC_VEC_INIT(struct event_s); return true; } void wayc_eventloop_deinit(struct eventloop_s *loop) { wayc_notnull(loop); wayc_wlstate_deinit(&loop->state); wayc_vec_deinit(&loop->events); }