modified code to use IOHandler functions instead of own ones
[NeonServV5.git] / src / timeq.h
index 989021bc3c93b29121bb19bc5f69019e0828e2b7..969a2944c4bb44d733c0a8549048bd043db3397c 100644 (file)
 #define TIMEQ_CALLBACK(NAME) void NAME(UNUSED_ARG(void *data))
 typedef TIMEQ_CALLBACK(timeq_callback_t);
 
+struct IODescriptor;
+
 struct timeq_entry {
+    struct IODescriptor *iofd;
     char *name;
     int module_id;
-    struct timeval execute;
     timeq_callback_t *callback;
     void *data;
     
-    struct timeq_entry *next;
+    struct timeq_entry *prev, *next;
 };
 
 #ifndef DND_FUNCTIONS
-void init_timeq();
-void timeq_tick();
 /* MODULAR ACCESSIBLE */ struct timeq_entry* timeq_add(int seconds, int module_id, timeq_callback_t *callback, void *data);
 /* MODULAR ACCESSIBLE */ struct timeq_entry* timeq_uadd(int useconds, int module_id, timeq_callback_t *callback, void *data);
 /* MODULAR ACCESSIBLE */ struct timeq_entry* timeq_add_name(char *name, int seconds, int module_id, timeq_callback_t *callback, void *data);