summaryrefslogtreecommitdiff
path: root/src/ipcpd/unicast/dir/dht.h
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2021-12-27 12:57:50 +0100
committerSander Vrijders <sander@ouroboros.rocks>2021-12-29 09:12:20 +0100
commitebf1b0c7415f394712c8dd71ae8c8e6821fd5fa3 (patch)
tree8a976b5541b97617b7edece8329754acaa5ed48c /src/ipcpd/unicast/dir/dht.h
parent0a0c244b9939059b86d304dd127763fed7d10af4 (diff)
downloadouroboros-ebf1b0c7415f394712c8dd71ae8c8e6821fd5fa3.tar.gz
ouroboros-ebf1b0c7415f394712c8dd71ae8c8e6821fd5fa3.zip
ipcpd: Allow creation of multiple directories
To allow merging large network layers, a situation will arise where multiple directories need to coexist within the layer. This reverts commit 9422e6be94ac1007e8115a920379fd545055e531. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd/unicast/dir/dht.h')
-rw-r--r--src/ipcpd/unicast/dir/dht.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/ipcpd/unicast/dir/dht.h b/src/ipcpd/unicast/dir/dht.h
index c34cf1c4..a6e9c2c8 100644
--- a/src/ipcpd/unicast/dir/dht.h
+++ b/src/ipcpd/unicast/dir/dht.h
@@ -30,19 +30,22 @@
#include <stdint.h>
#include <sys/types.h>
-int dht_init(void);
+void * dht_create(void);
-int dht_bootstrap(void);
+void dht_destroy(void * dir);
-void dht_fini(void);
+int dht_bootstrap(void * dir);
-int dht_reg(const uint8_t * key);
+int dht_reg(void * dir,
+ const uint8_t * key);
-int dht_unreg(const uint8_t * key);
+int dht_unreg(void * dir,
+ const uint8_t * key);
-uint64_t dht_query(const uint8_t * key);
+uint64_t dht_query(void * dir,
+ const uint8_t * key);
-int dht_wait_running(void);
+int dht_wait_running(void * dir);
extern struct dir_ops dht_dir_ops;