aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_dht_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_dht_service.h')
-rw-r--r--src/include/gnunet_dht_service.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/include/gnunet_dht_service.h b/src/include/gnunet_dht_service.h
index ca1bebe09..a95cfafe6 100644
--- a/src/include/gnunet_dht_service.h
+++ b/src/include/gnunet_dht_service.h
@@ -28,6 +28,7 @@
28#define GNUNET_DHT_SERVICE_H 28#define GNUNET_DHT_SERVICE_H
29 29
30#include "gnunet_util_lib.h" 30#include "gnunet_util_lib.h"
31#include "gnunet_block_lib.h"
31#include "gnunet_hello_lib.h" 32#include "gnunet_hello_lib.h"
32 33
33#ifdef __cplusplus 34#ifdef __cplusplus
@@ -112,7 +113,7 @@ GNUNET_DHT_disconnect (struct GNUNET_DHT_Handle *handle);
112void 113void
113GNUNET_DHT_put (struct GNUNET_DHT_Handle *handle, 114GNUNET_DHT_put (struct GNUNET_DHT_Handle *handle,
114 const GNUNET_HashCode * key, 115 const GNUNET_HashCode * key,
115 uint32_t type, 116 enum GNUNET_BLOCK_Type type,
116 uint32_t size, 117 uint32_t size,
117 const char *data, 118 const char *data,
118 struct GNUNET_TIME_Absolute exp, 119 struct GNUNET_TIME_Absolute exp,
@@ -133,11 +134,11 @@ GNUNET_DHT_put (struct GNUNET_DHT_Handle *handle,
133 * @param data pointer to the result data 134 * @param data pointer to the result data
134 */ 135 */
135typedef void (*GNUNET_DHT_GetIterator)(void *cls, 136typedef void (*GNUNET_DHT_GetIterator)(void *cls,
136 struct GNUNET_TIME_Absolute exp, 137 struct GNUNET_TIME_Absolute exp,
137 const GNUNET_HashCode * key, 138 const GNUNET_HashCode * key,
138 uint32_t type, 139 enum GNUNET_BLOCK_Type type,
139 uint32_t size, 140 uint32_t size,
140 const void *data); 141 const void *data);
141 142
142 143
143 144
@@ -147,7 +148,7 @@ typedef void (*GNUNET_DHT_GetIterator)(void *cls,
147 * @param handle handle to the DHT service 148 * @param handle handle to the DHT service
148 * @param timeout timeout for this request to be sent to the 149 * @param timeout timeout for this request to be sent to the
149 * service (this is NOT a timeout for receiving responses) 150 * service (this is NOT a timeout for receiving responses)
150 * @param type expected type of the response object (GNUNET_BLOCK_TYPE_*) 151 * @param type expected type of the response object (GNUNET_BLOCK_TYPE_FS_*)
151 * @param key the key to look up 152 * @param key the key to look up
152 * @param iter function to call on each result 153 * @param iter function to call on each result
153 * @param iter_cls closure for iter 154 * @param iter_cls closure for iter
@@ -160,7 +161,7 @@ typedef void (*GNUNET_DHT_GetIterator)(void *cls,
160struct GNUNET_DHT_GetHandle * 161struct GNUNET_DHT_GetHandle *
161GNUNET_DHT_get_start (struct GNUNET_DHT_Handle *handle, 162GNUNET_DHT_get_start (struct GNUNET_DHT_Handle *handle,
162 struct GNUNET_TIME_Relative timeout, 163 struct GNUNET_TIME_Relative timeout,
163 uint32_t type, 164 enum GNUNET_BLOCK_Type type,
164 const GNUNET_HashCode * key, 165 const GNUNET_HashCode * key,
165 GNUNET_DHT_GetIterator iter, 166 GNUNET_DHT_GetIterator iter,
166 void *iter_cls, 167 void *iter_cls,