summaryrefslogtreecommitdiff
path: root/navit/event.h
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-09-04 16:51:05 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-09-04 16:51:05 +0000
commitc593dd07b38049073c36a5787ad3fbafc80353a2 (patch)
tree169df3d9c0ea38ba4c8a19ad9e6b396e6cddb0d7 /navit/event.h
parenta435e3311bae22df0b48dd96fbe8448e5742c15d (diff)
downloadnavit-c593dd07b38049073c36a5787ad3fbafc80353a2.tar.gz
Add:core:Further works on event system abstraction
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1365 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/event.h')
-rw-r--r--navit/event.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/navit/event.h b/navit/event.h
index 7e141e959..897fdff33 100644
--- a/navit/event.h
+++ b/navit/event.h
@@ -17,5 +17,30 @@
* Boston, MA 02110-1301, USA.
*/
+struct event_idle;
+struct event_timeout;
+struct event_watch;
+struct callback;
+
+struct event_methods {
+ void (*main_loop_run)(void);
+ void (*main_loop_quit)(void);
+ struct event_watch *(*add_watch)(int fd, int w, struct callback *cb);
+ void (*remove_watch)(struct event_watch *ev);
+ struct event_timeout *(*add_timeout)(int timeout, int multi, struct callback *cb);
+ void (*remove_timeout)(struct event_timeout *ev);
+ struct event_idle *(*add_idle)(struct callback *cb);
+ void (*remove_idle)(struct event_idle *ev);
+};
+
+/* prototypes */
void event_main_loop_run(void);
void event_main_loop_quit(void);
+struct event_watch *event_add_watch(int fd, int w, struct callback *cb);
+void event_remove_watch(struct event_watch *ev);
+struct event_timeout *event_add_timeout(int timeout, int multi, struct callback *cb);
+void event_remove_timeout(struct event_timeout *ev);
+struct event_idle *event_add_idle(struct callback *cb);
+void event_remove_idle(struct event_idle *ev);
+int event_request_system(char *system, char *requestor);
+/* end of prototypes */