summaryrefslogtreecommitdiffstats
path: root/src/fuse/connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fuse/connection.h')
-rw-r--r--src/fuse/connection.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/fuse/connection.h b/src/fuse/connection.h
index cae554c..c04d75b 100644
--- a/src/fuse/connection.h
+++ b/src/fuse/connection.h
@@ -6,18 +6,22 @@
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
+#define FUSE_USE_VERSION 30
+#include <fuse_lowlevel.h>
+
+#define NO_SPLICE 0
+#define SPLICE 1
struct _dnbd3_async;
typedef struct _dnbd3_async {
struct _dnbd3_async *next; // Next in this linked list (provate field, not set by caller)
- dnbd3_signal_t* signal; // Used to signal the caller
char* buffer; // Caller-provided buffer to be filled
ticks time; // When request was put on wire, 0 if not measuring
uint64_t offset;
uint32_t length;
- bool finished; // Will be set to true if the request has been handled
- bool success; // Will be set to true if the request succeeded
+ int mode; // 0 splice off, 1 splice on, ...
+ fuse_req_t *fuse_req;
} dnbd3_async_t;
bool connection_init(const char *hosts, const char *image, const uint16_t rid, const bool learnNewServers);