X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/d76ed9a966ee3d955c8ef00ecc02e643c2005e2e..3b7fa78b1de8f9ee8718cba3da3b2db522b70620:/src/timeq.h diff --git a/src/timeq.h b/src/timeq.h index ae65e36..d75c0f6 100644 --- a/src/timeq.h +++ b/src/timeq.h @@ -5,7 +5,7 @@ * * 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 2 of the License, or + * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, @@ -27,10 +27,9 @@ typedef void (*timeq_func)(void *data); #define TIMEQ_IGNORE_FUNC 0x02 #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); -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);