From e4dec3562e6cab27e1a3f40165e4c0d9d0bf05c9 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 28 Jul 2020 17:49:17 +0200 Subject: [SERVER] Add FUSE mode Still needs some cleanup and optimizations, variable naming sucks, comments, etc. --- src/server/uplink.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/server/uplink.h') 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); -- cgit v1.2.3-55-g7522