WIP testing non-callback
This commit is contained in:
parent
4806cff440
commit
33ceed2d22
3 changed files with 38 additions and 3 deletions
14
wayland.h
14
wayland.h
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue