diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-02-27 21:28:40 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-02-27 21:28:40 +0100 |
commit | e2bcecad821f841ac40d0e0939f5805f8d142700 (patch) | |
tree | 9225c3b6d783f67043ac980bd01a8c13e8454fb4 /src/task.h | |
parent | 13306fc146b4839d511287f29df8572a80bf8914 (diff) | |
download | fastd-e2bcecad821f841ac40d0e0939f5805f8d142700.tar fastd-e2bcecad821f841ac40d0e0939f5805f8d142700.zip |
Use custom buffers instead of struct iovec
Diffstat (limited to 'src/task.h')
-rw-r--r-- | src/task.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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_ */ |