diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-06 21:29:34 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-06 21:29:34 +0100 |
commit | 1d18f972554c8bad0f08b3ff6727c87586e97094 (patch) | |
tree | ae3fc39553ecd87ed85b22860640d2859e9aa092 /src/queue.h | |
parent | d4686dd79799c09faee49e1645f9b3c39ce1e993 (diff) | |
download | fastd-1d18f972554c8bad0f08b3ff6727c87586e97094.tar fastd-1d18f972554c8bad0f08b3ff6727c87586e97094.zip |
Reorganized type definitions
Diffstat (limited to 'src/queue.h')
-rw-r--r-- | src/queue.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/queue.h b/src/queue.h index f132d1d..320df9f 100644 --- a/src/queue.h +++ b/src/queue.h @@ -28,6 +28,8 @@ #ifndef _FASTD_QUEUE_H_ #define _FASTD_QUEUE_H_ +#include "types.h" + #include <stdbool.h> #include <stdlib.h> #include <time.h> @@ -46,9 +48,9 @@ typedef struct _fastd_queue { } fastd_queue; -void fastd_queue_put(fastd_queue *queue, void *data, int timeout); -void* fastd_queue_get(fastd_queue *queue); -int fastd_queue_timeout(fastd_queue *queue); -void fastd_queue_filter(fastd_queue *queue, bool (*pred)(void*, void*), void *extra); +void fastd_queue_put(fastd_context *ctx, fastd_queue *queue, void *data, int timeout); +void* fastd_queue_get(fastd_context *ctx, fastd_queue *queue); +int fastd_queue_timeout(fastd_context *ctx, fastd_queue *queue); +void fastd_queue_filter(fastd_context *ctx, fastd_queue *queue, bool (*pred)(void*, void*), void *extra); #endif /* _FASTD_QUEUE_H_ */ |