FIX: windows build process: enable png build
[navit-package] / navit / event.h
index 0f02278..739baad 100644 (file)
@@ -25,6 +25,7 @@ struct event_idle;
 struct event_timeout;
 struct event_watch;
 struct callback;
+struct callback_list;
 struct file;
 
 enum event_watch_cond {
@@ -36,25 +37,27 @@ enum event_watch_cond {
 struct event_methods {
        void (*main_loop_run)(void);
        void (*main_loop_quit)(void);
-       struct event_watch *(*add_watch)(struct file *file, enum event_watch_cond cond, struct callback *cb);
+       struct event_watch *(*add_watch)(void *fd, enum event_watch_cond cond, 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);
+       struct event_idle *(*add_idle)(int priority, struct callback *cb);
        void (*remove_idle)(struct event_idle *ev);
+       void (*call_callback)(struct callback_list *cb);
 };
 
 
 /* prototypes */
 void event_main_loop_run(void);
 void event_main_loop_quit(void);
-struct event_watch *event_add_watch(struct file *file, enum event_watch_cond cond, struct callback *cb);
+struct event_watch *event_add_watch(void *fd, enum event_watch_cond cond, 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);
+struct event_idle *event_add_idle(int priority, struct callback *cb);
 void event_remove_idle(struct event_idle *ev);
-int event_request_system(char *system, char *requestor);
+int event_request_system(const char *system, const char *requestor);
+void event_call_callback(struct callback_list *cb);
 /* end of prototypes */
 #ifdef __cplusplus
 }