]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/timeq.h
improve stats routing command
[irc/evilnet/x3.git] / src / timeq.h
index ea7de68a295896d0d27ab083c33b1c18cd861c0a..6fdf2eb946a345c1f54b72f4385335bd79d571c9 100644 (file)
@@ -3,7 +3,7 @@
  *
  * This file is part of x3.
  *
- * srvx is free software; you can redistribute it and/or modify
+ * x3 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 2 of the License, or
  * (at your option) any later version.
@@ -28,8 +28,10 @@ typedef void (*timeq_func)(void *data);
 #define TIMEQ_IGNORE_DATA    0x04
 
 void timeq_init(void);
-void timeq_add(time_t when, timeq_func func, void *data);
-void timeq_del(time_t when, timeq_func func, void *data, int mask);
+#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);
 unsigned int timeq_size(void);
 void timeq_run(void);