]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Allow queues to be defined at the start.
authorRoy Marples <roy@marples.name>
Mon, 11 Oct 2010 08:52:43 +0000 (08:52 +0000)
committerRoy Marples <roy@marples.name>
Mon, 11 Oct 2010 08:52:43 +0000 (08:52 +0000)
eloop.h

diff --git a/eloop.h b/eloop.h
index 245858a98b5a11e6e8db9d15a1f5c2162abb1756..9f9637ac2b4b92b8281f3185166bfaba09c123fb 100644 (file)
--- a/eloop.h
+++ b/eloop.h
 
 #include <time.h>
 
-#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);