2018-02-01 17:06:49 +00:00
|
|
|
#ifndef LLARP_DHT_H_
|
|
|
|
#define LLARP_DHT_H_
|
2018-05-25 09:17:08 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* dht.h
|
|
|
|
*
|
|
|
|
* DHT functions
|
|
|
|
*/
|
|
|
|
|
2018-02-01 17:06:49 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2018-02-01 17:07:01 +00:00
|
|
|
struct llarp_dht_context;
|
2018-02-01 17:06:49 +00:00
|
|
|
|
2018-05-25 09:17:08 +00:00
|
|
|
/// allocator
|
2018-05-22 15:54:19 +00:00
|
|
|
struct llarp_dht_context*
|
|
|
|
llarp_dht_context_new();
|
2018-05-25 09:17:08 +00:00
|
|
|
|
|
|
|
/// deallocator
|
2018-05-22 15:54:19 +00:00
|
|
|
void
|
|
|
|
llarp_dht_context_free(struct llarp_dht_context* dht);
|
2018-02-01 17:06:49 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|