summaryrefslogtreecommitdiffstats
path: root/src/task.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-06 21:29:34 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-06 21:29:34 +0100
commit1d18f972554c8bad0f08b3ff6727c87586e97094 (patch)
treeae3fc39553ecd87ed85b22860640d2859e9aa092 /src/task.h
parentd4686dd79799c09faee49e1645f9b3c39ce1e993 (diff)
downloadfastd-1d18f972554c8bad0f08b3ff6727c87586e97094.tar
fastd-1d18f972554c8bad0f08b3ff6727c87586e97094.zip
Reorganized type definitions
Diffstat (limited to 'src/task.h')
-rw-r--r--src/task.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/task.h b/src/task.h
index b65e992..733b671 100644
--- a/src/task.h
+++ b/src/task.h
@@ -29,6 +29,7 @@
#define _FASTD_TASK_H_
#include "fastd.h"
+#include "packet.h"
#include <sys/uio.h>
@@ -73,7 +74,7 @@ typedef union _fastd_task {
fastd_task* fastd_task_get(fastd_context *ctx);
static inline int fastd_task_timeout(fastd_context *ctx) {
- return fastd_queue_timeout(&ctx->task_queue);
+ return fastd_queue_timeout(ctx, &ctx->task_queue);
}
void fastd_task_put_send_handshake(fastd_context *ctx, fastd_peer *peer, fastd_buffer buffer);