From e2bcecad821f841ac40d0e0939f5805f8d142700 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 27 Feb 2012 21:28:40 +0100 Subject: Use custom buffers instead of struct iovec --- src/task.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/task.h') 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_ */ -- cgit v1.2.3