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:54
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:113
int event_main_loop_has_quit(void)
Definition: event.c:58
struct callback * cb
Definition: event_glib.c:84
void event_main_loop_quit(void)
Definition: event.c:52
Definition: event_glib.c:44
int multi
Definition: graphics_android.c:934
void event_remove_watch(struct event_watch *ev)
Definition: event.c:68
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:63
Definition: callback.c:36
Definition: event_glib.c:115
void event_remove_timeout(struct event_timeout *ev)
Definition: event.c:88
Definition: event.h:31
Definition: event_glib.c:82
Definition: callback.c:26
Definition: event.h:32
struct event_idle * event_add_idle(int priority, struct callback *cb)
Definition: event.c:94
struct callback * cb
Definition: event_glib.c:117
int fd
Definition: event_qt5.cpp:55
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:83
void event_call_callback(struct callback_list *cb)
Definition: event.c:104
void event_remove_idle(struct event_idle *ev)
Definition: event.c:99
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:109
void(* remove_idle)(struct event_idle *ev)
Definition: event.h:45
Definition: file.h:36