navit 0.5.3-trunk
Loading...
Searching...
No Matches
event.h
Go to the documentation of this file.
1
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24struct event_idle;
25struct event_timeout;
26struct event_watch;
27struct callback;
28struct callback_list;
29struct file;
30
36
38 void (*main_loop_run)(void);
39 void (*main_loop_quit)(void);
40 struct event_watch *(*add_watch)(int fd, enum event_watch_cond cond, struct callback *cb);
41 void (*remove_watch)(struct event_watch *ev);
42 struct event_timeout *(*add_timeout)(int timeout, int multi, struct callback *cb);
43 void (*remove_timeout)(struct event_timeout *ev);
44 struct event_idle *(*add_idle)(int priority, struct callback *cb);
45 void (*remove_idle)(struct event_idle *ev);
46 void (*call_callback)(struct callback_list *cb);
47};
48
49/* prototypes */
51struct callback;
52struct callback_list;
53struct event_idle;
54struct event_timeout;
55struct event_watch;
56void event_main_loop_run(void);
57void event_main_loop_quit(void);
59void event_signal_notify(void);
60int event_get_signal_fd(void);
61struct event_watch *event_add_watch(int fd, enum event_watch_cond cond, struct callback *cb);
62void event_remove_watch(struct event_watch *ev);
63struct event_timeout *event_add_timeout(int timeout, int multi, struct callback *cb);
64void event_remove_timeout(struct event_timeout *ev);
65struct event_idle *event_add_idle(int priority, struct callback *cb);
66void event_remove_idle(struct event_idle *ev);
68char const *event_system(void);
69int event_request_system(const char *system, const char *requestor);
70/* end of prototypes */
71#ifdef __cplusplus
72}
73#endif
struct event_timeout * event_add_timeout(int timeout, int multi, struct callback *cb)
Definition event.c:127
void event_signal_notify(void)
Definition event.c:65
int event_get_signal_fd(void)
Definition event.c:74
void event_call_callback(struct callback_list *cb)
Definition event.c:147
event_watch_cond
Definition event.h:31
@ event_watch_cond_write
Definition event.h:33
@ event_watch_cond_except
Definition event.h:34
@ event_watch_cond_read
Definition event.h:32
void event_remove_timeout(struct event_timeout *ev)
Definition event.c:132
struct event_idle * event_add_idle(int priority, struct callback *cb)
Definition event.c:137
int event_request_system(const char *system, const char *requestor)
Definition event.c:156
void event_remove_watch(struct event_watch *ev)
Definition event.c:113
int event_main_loop_has_quit(void)
Definition event.c:104
void event_remove_idle(struct event_idle *ev)
Definition event.c:142
void event_main_loop_quit(void)
Definition event.c:98
char const * event_system(void)
Definition event.c:152
void event_main_loop_run(void)
Definition event.c:93
struct event_watch * event_add_watch(int fd, enum event_watch_cond cond, struct callback *cb)
Definition event.c:108
Definition callback.c:35
Definition callback.c:26
Definition event_glib.c:136
struct callback * cb
Definition event_glib.c:138
Definition event.h:37
void(* call_callback)(struct callback_list *cb)
Definition event.h:46
void(* remove_idle)(struct event_idle *ev)
Definition event.h:45
void(* remove_timeout)(struct event_timeout *ev)
Definition event.h:43
void(* main_loop_quit)(void)
Definition event.h:39
void(* remove_watch)(struct event_watch *ev)
Definition event.h:41
void(* main_loop_run)(void)
Definition event.h:38
Definition event_glib.c:103
struct callback * cb
Definition event_glib.c:105
int multi
Definition graphics_android.c:1065
Definition event_glib.c:65
struct callback * cb
Definition event_qt5.cpp:53
int fd
Definition event_qt5.cpp:54
Definition file.h:38