diff options
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_ */ |