X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Ftimeq.h;h=e20610ebc0a48a6f5a2f4ab4ef84ff3b5d322e6d;hb=80d9ed728be4b02ac483f3339cbb184f6602d15b;hp=5b754319a69b917092dd15f887867c493713e5b6;hpb=222e1b0003536cf7b47858961d4b56d45c6d6606;p=srvx.git diff --git a/src/timeq.h b/src/timeq.h index 5b75431..e20610e 100644 --- a/src/timeq.h +++ b/src/timeq.h @@ -1,11 +1,12 @@ /* timeq.h - time-based event queue * Copyright 2000-2002 srvx Development Team * - * This program is free software; you can redistribute it and/or modify + * This file is part of srvx. + * + * 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 - * (at your option) any later version. Important limitations are - * listed in the COPYING file that accompanies this software. + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -13,7 +14,8 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, email srvx-maintainers@srvx.net. + * along with srvx; if not, write to the Free Software Foundation, + * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef TIMEQ_H @@ -25,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);