diff options
Diffstat (limited to 'src/queue.h')
-rw-r--r-- | src/queue.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/queue.h b/src/queue.h index e26946b..f132d1d 100644 --- a/src/queue.h +++ b/src/queue.h @@ -28,6 +28,7 @@ #ifndef _FASTD_QUEUE_H_ #define _FASTD_QUEUE_H_ +#include <stdbool.h> #include <stdlib.h> #include <time.h> @@ -48,5 +49,6 @@ typedef struct _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); #endif /* _FASTD_QUEUE_H_ */ |