]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/timeq.h
Couple of srvx updates.
[irc/evilnet/x3.git] / src / timeq.h
index cd181d6eb5d39f368dd7dd712d86cdb8041db091..d75c0f6e71281368ec703e4cadd37d6a0a6fbf6a 100644 (file)
@@ -1,9 +1,9 @@
 /* timeq.h - time-based event queue
  * Copyright 2000-2002 srvx Development Team
  *
- * This file is part of x3.
+ * This file is part of srvx.
  *
- * x3 is free software; you can redistribute it and/or modify
+ * srvx is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 3 of the License, or
  * (at your option) any later version.
@@ -27,12 +27,9 @@ typedef void (*timeq_func)(void *data);
 #define TIMEQ_IGNORE_FUNC    0x02
 #define TIMEQ_IGNORE_DATA    0x04
 
-void timeq_init(void);
-#define timeq_add(x, y, z)   timeq_add_real(x, y, z, __func__)
-void timeq_add_real(time_t when, timeq_func func, void *data, const char *calling_func);
-#define timeq_del(x, y, z, m) timeq_del_real(x, y, z, m, __func__)
-void timeq_del_real(time_t when, timeq_func func, void *data, int mask, const char *calling_func);
-time_t timeq_next(void);
+void timeq_add(unsigned long when, timeq_func func, void *data);
+void timeq_del(unsigned long when, timeq_func func, void *data, int mask);
+unsigned long timeq_next(void);
 unsigned int timeq_size(void);
 void timeq_run(void);