mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
Add new event loop api for watching signals
This will provide us with a nice, safe mechanism for getting notification of VT changes.
This commit is contained in:
parent
90e701df08
commit
fe57347cb9
2 changed files with 90 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ struct wl_event_loop;
|
|||
struct wl_event_source;
|
||||
typedef void (*wl_event_loop_fd_func_t)(int fd, uint32_t mask, void *data);
|
||||
typedef void (*wl_event_loop_timer_func_t)(void *data);
|
||||
typedef void (*wl_event_loop_signal_func_t)(int signal_number, void *data);
|
||||
typedef void (*wl_event_loop_idle_func_t)(void *data);
|
||||
|
||||
struct wl_event_loop *wl_event_loop_create(void);
|
||||
|
|
@ -47,6 +48,12 @@ int wl_event_source_fd_update(struct wl_event_source *source, uint32_t mask);
|
|||
struct wl_event_source *wl_event_loop_add_timer(struct wl_event_loop *loop,
|
||||
wl_event_loop_timer_func_t func,
|
||||
void *data);
|
||||
struct wl_event_source *
|
||||
wl_event_loop_add_signal(struct wl_event_loop *loop,
|
||||
int signal_number,
|
||||
wl_event_loop_signal_func_t func,
|
||||
void *data);
|
||||
|
||||
int wl_event_source_timer_update(struct wl_event_source *source,
|
||||
int ms_delay);
|
||||
int wl_event_source_remove(struct wl_event_source *source);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue