diff options
Diffstat (limited to 'src/task.h')
-rw-r--r-- | src/task.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -41,14 +41,14 @@ typedef enum _fastd_task_type { typedef struct _fastd_task_send { fastd_task_type type; - const fastd_peer *peer; + fastd_peer *peer; uint8_t packet_type; fastd_buffer buffer; } fastd_task_send; typedef struct _fastd_task_handle_recv { fastd_task_type type; - const fastd_peer *peer; + fastd_peer *peer; uint8_t packet_type; fastd_buffer buffer; } fastd_task_handle_recv; @@ -71,10 +71,10 @@ static inline int fastd_task_timeout(fastd_context *ctx) { return fastd_queue_timeout(&ctx->task_queue); } -void fastd_task_put_send_handshake(fastd_context *ctx, const fastd_peer *peer, fastd_buffer buffer); +void fastd_task_put_send_handshake(fastd_context *ctx, fastd_peer *peer, fastd_buffer 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); +void fastd_task_put_send(fastd_context *ctx, fastd_peer *peer, fastd_buffer buffer); +void fastd_task_put_handle_recv(fastd_context *ctx, fastd_peer *peer, fastd_buffer buffer); void fastd_task_schedule_handshake(fastd_context *ctx, fastd_peer *peer, int timeout); |