summaryrefslogtreecommitdiffstats
path: root/src/queue.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-02 20:12:59 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-02 20:12:59 +0100
commitebd9d98fd7a2c08f57b1187a7b9efafbfbb63fe7 (patch)
tree707d1bfe6c1da4032f3859ee2b514ff5927a72c2 /src/queue.h
parent3a4964f5e8c07943474036e594698b313a73d502 (diff)
downloadfastd-ebd9d98fd7a2c08f57b1187a7b9efafbfbb63fe7.tar
fastd-ebd9d98fd7a2c08f57b1187a7b9efafbfbb63fe7.zip
Delete pending tasks for deleted peers
Diffstat (limited to 'src/queue.h')
-rw-r--r--src/queue.h2
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_ */