diff options
Diffstat (limited to 'src/fuse/connection.h')
-rw-r--r-- | src/fuse/connection.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/fuse/connection.h b/src/fuse/connection.h index b869ac6..b22e3ce 100644 --- a/src/fuse/connection.h +++ b/src/fuse/connection.h @@ -12,6 +12,7 @@ #include <fuse_lowlevel.h> + extern atomic_bool keepRunning; struct _dnbd3_async; @@ -21,15 +22,23 @@ typedef struct _dnbd3_async { uint64_t offset; uint32_t length; fuse_req_t fuse_req; - char buffer[]; // Must be last member! } dnbd3_async_t; +typedef struct _dnbd3_async_parent { + dnbd3_async_t request; + char buffer[]; // Must be last member! +} dnbd3_async_parent_t; + bool connection_init( const char *hosts, const char *image, const uint16_t rid, const bool learnNewServers ); bool connection_initThreads(); uint64_t connection_getImageSize(); +char * connection_getImageName(); + +uint16_t connection_getImageRID(); + bool connection_read( dnbd3_async_t *request ); void connection_close(); |