summaryrefslogtreecommitdiff
path: root/src/ipcpd/unicast/dir/dht.h
diff options
context:
space:
mode:
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;