diff options
Diffstat (limited to '')
-rw-r--r-- | daemon/syslogd.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/daemon/syslogd.h b/daemon/syslogd.h index f061f7b..0bcd1fb 100644 --- a/daemon/syslogd.h +++ b/daemon/syslogd.h @@ -62,7 +62,8 @@ struct raw_message }; extern struct fifo *udp_message_queue; -extern HANDLE udp_queue_semaphore; +extern HANDLE udp_queue_event; +extern CRITICAL_SECTION udp_queue_cs; extern gboolean init_udp_listener(); extern void shutdown_udp_listener(); @@ -189,21 +190,11 @@ extern gboolean init_destination_file( struct destination* destination ); extern gboolean init_destination_relay( struct destination* destination ); /* queue */ -struct fifo_item -{ - struct fifo_item *next; /* queue is a single-linked list */ - void *payload; -}; - -struct fifo -{ - struct fifo_item *first; /* first pushed item */ - struct fifo_item *last; /* last pushed item */ -}; +struct fifo; extern struct fifo* fifo_create(); extern void fifo_destroy( struct fifo* queue ); -extern void fifo_push( struct fifo* queue, void* data ); +extern gboolean fifo_push( struct fifo* queue, void* data ); extern void* fifo_pop( struct fifo* queue ); /* logrotate */ |