diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 10:17:45 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 10:17:45 +0100 |
| commit | 55991c396cddc8ec27182dc5cfe64fdef61da064 (patch) | |
| tree | e2e5b80a2d27d3d717a3be1e7240ecb5cd1b298c /src/events.cc | |
| parent | 80dcfa99fef3684d506ee8f96298563433b10e74 (diff) | |
turning hashset into hashmap
Diffstat (limited to 'src/events.cc')
| -rw-r--r-- | src/events.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/events.cc b/src/events.cc index 850d48f..6a3190c 100644 --- a/src/events.cc +++ b/src/events.cc @@ -1,13 +1,18 @@ #include "events.h" +#include "hashm.h" #include "vec.h" +#include <cstring> bool wayc_eventloop_init(struct eventloop_s *loop) { wayc_notnull(loop); + memset(loop, 0, sizeof(*loop)); if (!wayc_wlstate_init(&loop->state)) return false; loop->events = WAYC_VEC_INIT(struct event_s); + wayc_hashmap_init(&loop->windows); + return true; } |
