WIP testing non-callback

This commit is contained in:
Rakarake 2026-01-15 23:07:37 +01:00
parent 4806cff440
commit 33ceed2d22
3 changed files with 38 additions and 3 deletions

View file

@ -43,6 +43,20 @@ struct client_state {
EGLContext egl_context;
};
#define EVENT_DRAW 0
struct event {
int type;
union {
/// EVENT_DRAW
struct {
int width, height;
} draw;
} data;
};
void wayland_init(struct client_state *state, int output_type);
void commit(struct client_state *state);
/// Provide pointer to be filled.
void wait_for_event(struct client_state *state, struct event event);