navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
Go to the documentation of this file.
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
24 struct event_idle;
25 struct event_timeout;
26 struct event_watch;
27 struct callback;
28 struct callback_list;
29 struct file;
35 };
37 struct event_methods {
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 };
50 /* prototypes */
51 enum event_watch_cond;
52 struct callback;
53 struct callback_list;
54 struct event_idle;
55 struct event_timeout;
56 struct event_watch;
57 void event_main_loop_run(void);
58 void event_main_loop_quit(void);
59 int event_main_loop_has_quit(void);
60 struct event_watch *event_add_watch(int fd, enum event_watch_cond cond, struct callback *cb);
61 void event_remove_watch(struct event_watch *ev);
62 struct event_timeout *event_add_timeout(int timeout, int multi, struct callback *cb);
63 void event_remove_timeout(struct event_timeout *ev);
64 struct event_idle *event_add_idle(int priority, struct callback *cb);
65 void event_remove_idle(struct event_idle *ev);
67 char const *event_system(void);
68 int event_request_system(const char *system, const char *requestor);
69 /* end of prototypes */
70 #ifdef __cplusplus
71 }
72 #endif
struct callback * cb
Definition: event_qt5.cpp:53
void(* main_loop_run)(void)
Definition: event.h:38
void(* call_callback)(struct callback_list *cb)
Definition: event.h:46
Definition: event.h:34
int event_request_system(const char *system, const char *requestor)
Definition: event.c:131
int event_main_loop_has_quit(void)
Definition: event.c:61
struct callback * cb
Definition: event_glib.c:93
void event_main_loop_quit(void)
Definition: event.c:53
Definition: event_glib.c:47
int multi
Definition: graphics_android.c:1008
void event_remove_watch(struct event_watch *ev)
Definition: event.c:74
void(* main_loop_quit)(void)
Definition: event.h:39
Definition: event.h:33
Definition: event.h:37
struct event_watch * event_add_watch(int fd, enum event_watch_cond cond, struct callback *cb)
Definition: event.c:67
Definition: callback.c:36
Definition: event_glib.c:131
void event_remove_timeout(struct event_timeout *ev)
Definition: event.c:97
Definition: event.h:31
Definition: event_glib.c:91
Definition: callback.c:26
Definition: event.h:32
struct event_idle * event_add_idle(int priority, struct callback *cb)
Definition: event.c:104
struct callback * cb
Definition: event_glib.c:133
int fd
Definition: event_qt5.cpp:54
void(* remove_watch)(struct event_watch *ev)
Definition: event.h:41
struct event_timeout * event_add_timeout(int timeout, int multi, struct callback *cb)
Definition: event.c:90
void event_call_callback(struct callback_list *cb)
Definition: event.c:118
void event_remove_idle(struct event_idle *ev)
Definition: event.c:111
void event_main_loop_run(void)
Definition: event.c:47
void(* remove_timeout)(struct event_timeout *ev)
Definition: event.h:43
char const * event_system(void)
Definition: event.c:125
void(* remove_idle)(struct event_idle *ev)
Definition: event.h:45
Definition: file.h:36