summaryrefslogtreecommitdiffstats
path: root/src/task.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-02-27 21:28:40 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-02-27 21:28:40 +0100
commite2bcecad821f841ac40d0e0939f5805f8d142700 (patch)
tree9225c3b6d783f67043ac980bd01a8c13e8454fb4 /src/task.h
parent13306fc146b4839d511287f29df8572a80bf8914 (diff)
downloadfastd-e2bcecad821f841ac40d0e0939f5805f8d142700.tar
fastd-e2bcecad821f841ac40d0e0939f5805f8d142700.zip
Use custom buffers instead of struct iovec
Diffstat (limited to 'src/task.h')
-rw-r--r--src/task.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/task.h b/src/task.h
index 4c7bd65..d816de7 100644
--- a/src/task.h
+++ b/src/task.h
@@ -42,14 +42,14 @@ typedef struct _fastd_task_send {
fastd_task_type type;
const fastd_peer *peer;
uint8_t packet_type;
- struct iovec buffer;
+ fastd_buffer buffer;
} fastd_task_send;
typedef struct _fastd_task_handle_recv {
fastd_task_type type;
const fastd_peer *peer;
uint8_t packet_type;
- struct iovec buffer;
+ fastd_buffer buffer;
} fastd_task_handle_recv;
typedef union _fastd_task {
@@ -61,9 +61,9 @@ typedef union _fastd_task {
fastd_task* fastd_task_get(fastd_context *ctx);
-void fastd_task_put_send_handshake(fastd_context *ctx, const fastd_peer *peer, struct iovec buffer);
+void fastd_task_put_send_handshake(fastd_context *ctx, const fastd_peer *peer, fastd_buffer buffer);
-void fastd_task_put_send(fastd_context *ctx, const fastd_peer *peer, struct iovec buffer);
-void fastd_task_put_handle_recv(fastd_context *ctx, const fastd_peer *peer, struct iovec buffer);
+void fastd_task_put_send(fastd_context *ctx, const fastd_peer *peer, fastd_buffer buffer);
+void fastd_task_put_handle_recv(fastd_context *ctx, const fastd_peer *peer, fastd_buffer buffer);
#endif /* _FASTD_TASK_H_ */