From 1a70d9f9ef81ac1b5e843ac71f3538f7845e03ae Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sat, 13 Apr 2024 00:47:29 +0200 Subject: First shot on chunked transfers --- ot_mutex.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ot_mutex.h') diff --git a/ot_mutex.h b/ot_mutex.h index fdb08a1..9eb17e5 100644 --- a/ot_mutex.h +++ b/ot_mutex.h @@ -54,9 +54,11 @@ typedef enum { TASK_DMEM = 0x0300, TASK_DONE = 0x0f00, + TASK_DONE_PARTIAL = 0x0f01, TASK_FLAG_GZIP = 0x1000, TASK_FLAG_BZIP2 = 0x2000, + TASK_FLAG_CHUNKED = 0x4000, TASK_TASK_MASK = 0x0fff, TASK_CLASS_MASK = 0x0f00, @@ -70,6 +72,7 @@ void mutex_workqueue_canceltask( int64 sock ); void mutex_workqueue_pushsuccess( ot_taskid taskid ); ot_taskid mutex_workqueue_poptask( ot_tasktype *tasktype ); int mutex_workqueue_pushresult( ot_taskid taskid, int iovec_entries, struct iovec *iovector ); -int64 mutex_workqueue_popresult( int *iovec_entries, struct iovec ** iovector ); +int mutex_workqueue_pushchunked(ot_taskid taskid, struct iovec *iovec); +int64 mutex_workqueue_popresult( int *iovec_entries, struct iovec ** iovector, int *is_partial ); #endif -- cgit v1.2.3