From 4f0a5e7572a4257894b4bfede42c26d65152609e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 13 Aug 2005 21:25:09 +0000 Subject: * strip glib from avahi-core * implement glib memory allocator * add new documentation file MALLOC * initialize pseudo-RNG from /dev/urandom in avahi-daemon * remove some gcc 4.0 warnings * beef up watch system with real timeouts * move GCC __attribute__ macros into its own header avahi-common/gccmacro.h * make use of GCC's sentinel attribute where it make sense * add malloc() implementations that abort on OOM and enable them by default git-svn-id: file:///home/lennart/svn/public/avahi/trunk@308 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-common/watch.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'avahi-common/watch.h') diff --git a/avahi-common/watch.h b/avahi-common/watch.h index b26c2ba..70dedb7 100644 --- a/avahi-common/watch.h +++ b/avahi-common/watch.h @@ -40,6 +40,7 @@ typedef enum { } AvahiWatchEvent; typedef void (*AvahiWatchCallback)(AvahiWatch *w, int fd, AvahiWatchEvent event, void *userdata); +typedef void (*AvahiWakeupCallback)(AvahiPoll *api, void *userdata); struct AvahiPoll { void* userdata; @@ -48,7 +49,7 @@ struct AvahiPoll { void (*watch_update)(AvahiWatch *w, AvahiWatchEvent event); void (*watch_free)(AvahiWatch *w); - void (*set_wakeup_time)(AvahiPoll *api, const struct timeval *tv); + void (*set_wakeup)(AvahiPoll *api, const struct timeval *tv, AvahiWakeupCallback callback, void *userdata); }; AVAHI_C_DECL_END -- cgit