diff options
author | Simon Rettberg | 2020-07-28 17:49:17 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-07-28 17:49:17 +0200 |
commit | e4dec3562e6cab27e1a3f40165e4c0d9d0bf05c9 (patch) | |
tree | 4b9b9a2ddf0cec0188f64639ed18f18f437b7c74 /src/server/uplink.h | |
parent | Merge branch 'no-working-flag' into fuse_ll (diff) | |
download | dnbd3-e4dec3562e6cab27e1a3f40165e4c0d9d0bf05c9.tar.gz dnbd3-e4dec3562e6cab27e1a3f40165e4c0d9d0bf05c9.tar.xz dnbd3-e4dec3562e6cab27e1a3f40165e4c0d9d0bf05c9.zip |
[SERVER] Add FUSE mode
Still needs some cleanup and optimizations, variable naming sucks,
comments, etc.
Diffstat (limited to 'src/server/uplink.h')
-rw-r--r-- | src/server/uplink.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server/uplink.h b/src/server/uplink.h index 8f69b05..6cd69ea 100644 --- a/src/server/uplink.h +++ b/src/server/uplink.h @@ -10,9 +10,11 @@ uint64_t uplink_getTotalBytesReceived(); bool uplink_init(dnbd3_image_t *image, int sock, dnbd3_host_t *host, int version); -void uplink_removeClient(dnbd3_uplink_t *uplink, dnbd3_client_t *client); +void uplink_removeEntry(dnbd3_uplink_t *uplink, void *data, uplink_callback callback); -bool uplink_request(dnbd3_uplink_t *uplink, dnbd3_client_t *client, uint64_t handle, uint64_t start, uint32_t length, uint8_t hops); +bool uplink_requestClient(dnbd3_client_t *client, uplink_callback callback, uint64_t handle, uint64_t start, uint32_t length, uint8_t hops); + +bool uplink_request(dnbd3_image_t *image, void *data, uplink_callback callback, uint64_t handle, uint64_t start, uint32_t length); bool uplink_shutdown(dnbd3_image_t *image); |