diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-03-19 12:44:06 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-03-19 12:44:06 +0000 |
commit | a3a4802b287a6ebe45f93920fae6343070168d4f (patch) | |
tree | b7449d1f32630f82889f0f09b77ac2b002b1ea68 /src/include/gnunet_dht_service.h | |
parent | 0c996c9a9e418c21c7e063d443f4fa1846b9448e (diff) | |
download | gnunet-a3a4802b287a6ebe45f93920fae6343070168d4f.tar.gz gnunet-a3a4802b287a6ebe45f93920fae6343070168d4f.zip |
api definition changes
Diffstat (limited to 'src/include/gnunet_dht_service.h')
-rw-r--r-- | src/include/gnunet_dht_service.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/include/gnunet_dht_service.h b/src/include/gnunet_dht_service.h index 9e2e5d163..097062164 100644 --- a/src/include/gnunet_dht_service.h +++ b/src/include/gnunet_dht_service.h | |||
@@ -52,7 +52,7 @@ typedef void (*GNUNET_DHT_MessageCallback)(void *cls, | |||
52 | 52 | ||
53 | /** | 53 | /** |
54 | * Initialize the connection with the DHT service. | 54 | * Initialize the connection with the DHT service. |
55 | * | 55 | * |
56 | * @param cfg configuration to use | 56 | * @param cfg configuration to use |
57 | * @param sched scheduler to use | 57 | * @param sched scheduler to use |
58 | * @param ht_len size of the internal hash table to use for | 58 | * @param ht_len size of the internal hash table to use for |
@@ -87,7 +87,7 @@ GNUNET_DHT_disconnect (struct GNUNET_DHT_Handle *h); | |||
87 | * @param exp desired expiration time for the value | 87 | * @param exp desired expiration time for the value |
88 | * @param timeout when to abort with an error if we fail to get | 88 | * @param timeout when to abort with an error if we fail to get |
89 | * a confirmation for the PUT from the local DHT service | 89 | * a confirmation for the PUT from the local DHT service |
90 | * @param cont continuation to call when done; | 90 | * @param cont continuation to call when done; |
91 | * reason will be TIMEOUT on error, | 91 | * reason will be TIMEOUT on error, |
92 | * reason will be PREREQ_DONE on success | 92 | * reason will be PREREQ_DONE on success |
93 | * @param cont_cls closure for cont | 93 | * @param cont_cls closure for cont |
@@ -95,12 +95,12 @@ GNUNET_DHT_disconnect (struct GNUNET_DHT_Handle *h); | |||
95 | void | 95 | void |
96 | GNUNET_DHT_put (struct GNUNET_DHT_Handle *handle, | 96 | GNUNET_DHT_put (struct GNUNET_DHT_Handle *handle, |
97 | const GNUNET_HashCode * key, | 97 | const GNUNET_HashCode * key, |
98 | uint32_t type, | 98 | uint32_t type, |
99 | uint32_t size, | 99 | uint32_t size, |
100 | const char *data, | 100 | const char *data, |
101 | struct GNUNET_TIME_Absolute exp, | 101 | struct GNUNET_TIME_Absolute exp, |
102 | struct GNUNET_TIME_Relative timeout, | 102 | struct GNUNET_TIME_Relative timeout, |
103 | GNUNET_DHT_MessageCallback cont, | 103 | GNUNET_SCHEDULER_Task cont, |
104 | void *cont_cls); | 104 | void *cont_cls); |
105 | 105 | ||
106 | 106 | ||
@@ -127,7 +127,7 @@ typedef void (*GNUNET_DHT_GetIterator)(void *cls, | |||
127 | uint32_t type, | 127 | uint32_t type, |
128 | uint32_t size, | 128 | uint32_t size, |
129 | const void *data); | 129 | const void *data); |
130 | 130 | ||
131 | 131 | ||
132 | 132 | ||
133 | /** | 133 | /** |
@@ -140,6 +140,9 @@ typedef void (*GNUNET_DHT_GetIterator)(void *cls, | |||
140 | * @param key the key to look up | 140 | * @param key the key to look up |
141 | * @param iter function to call on each result | 141 | * @param iter function to call on each result |
142 | * @param iter_cls closure for iter | 142 | * @param iter_cls closure for iter |
143 | * @param cont continuation to call once message sent | ||
144 | * @param cont_cls closure for continuation | ||
145 | * | ||
143 | * @return handle to stop the async get, NULL on error | 146 | * @return handle to stop the async get, NULL on error |
144 | */ | 147 | */ |
145 | struct GNUNET_DHT_RouteHandle * | 148 | struct GNUNET_DHT_RouteHandle * |
@@ -148,7 +151,9 @@ GNUNET_DHT_get_start (struct GNUNET_DHT_Handle *h, | |||
148 | uint32_t type, | 151 | uint32_t type, |
149 | const GNUNET_HashCode * key, | 152 | const GNUNET_HashCode * key, |
150 | GNUNET_DHT_GetIterator iter, | 153 | GNUNET_DHT_GetIterator iter, |
151 | void *iter_cls); | 154 | void *iter_cls, |
155 | GNUNET_SCHEDULER_Task cont, | ||
156 | void *cont_cls); | ||
152 | 157 | ||
153 | /** | 158 | /** |
154 | * Stop async DHT-get. Frees associated resources. | 159 | * Stop async DHT-get. Frees associated resources. |
@@ -229,7 +234,7 @@ GNUNET_DHT_route_start (struct GNUNET_DHT_Handle *handle, | |||
229 | struct GNUNET_TIME_Relative timeout, | 234 | struct GNUNET_TIME_Relative timeout, |
230 | GNUNET_DHT_ReplyProcessor iter, | 235 | GNUNET_DHT_ReplyProcessor iter, |
231 | void *iter_cls, | 236 | void *iter_cls, |
232 | GNUNET_DHT_MessageCallback cont, | 237 | GNUNET_SCHEDULER_Task cont, |
233 | void *cont_cls); | 238 | void *cont_cls); |
234 | 239 | ||
235 | void | 240 | void |
@@ -244,5 +249,5 @@ GNUNET_DHT_route_stop (struct GNUNET_DHT_RouteHandle *fph); | |||
244 | #endif | 249 | #endif |
245 | 250 | ||
246 | 251 | ||
247 | #endif | 252 | #endif |
248 | /* gnunet_dht_service.h */ | 253 | /* gnunet_dht_service.h */ |