From: Roy Marples Date: Mon, 11 Oct 2010 08:52:43 +0000 (+0000) Subject: Allow queues to be defined at the start. X-Git-Tag: v5.2.9~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=681087be600b9b385249ee6fbd634e3689ac9923;p=thirdparty%2Fdhcpcd.git Allow queues to be defined at the start. --- diff --git a/eloop.h b/eloop.h index 245858a9..9f9637ac 100644 --- a/eloop.h +++ b/eloop.h @@ -30,9 +30,13 @@ #include -#define add_timeout_tv(a, b, c) add_q_timeout_tv(0, a, b, c) -#define add_timeout_sec(a, b, c) add_q_timeout_sec(0, a, b, c) -#define delete_timeout(a, b) delete_q_timeout(0, a, b) +#ifndef ELOOP_QUEUE + #define ELOOP_QUEUE 0 +#endif + +#define add_timeout_tv(a, b, c) add_q_timeout_tv(ELOOP_QUEUE, a, b, c) +#define add_timeout_sec(a, b, c) add_q_timeout_sec(ELOOP_QUEUE, a, b, c) +#define delete_timeout(a, b) delete_q_timeout(ELOOP_QUEUE, a, b) void add_event(int fd, void (*)(void *), void *); void delete_event(int fd);