aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-06-15 04:46:53 +0000
committerChristian Grothoff <christian@grothoff.org>2009-06-15 04:46:53 +0000
commit7e3df72d6b8a32b15b02110b54c77f77e28928a2 (patch)
treee63f4a89dc35c0f019e6fe44c2a623f51634e472 /src
parentf90483fc8b2a7ee72c0c5f82e714b3de1dd26a71 (diff)
downloadgnunet-7e3df72d6b8a32b15b02110b54c77f77e28928a2.tar.gz
gnunet-7e3df72d6b8a32b15b02110b54c77f77e28928a2.zip
mtypes
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_datastore_service.h8
-rw-r--r--src/include/gnunet_protocols.h50
2 files changed, 53 insertions, 5 deletions
diff --git a/src/include/gnunet_datastore_service.h b/src/include/gnunet_datastore_service.h
index ed0fd0856..2f7fce6d8 100644
--- a/src/include/gnunet_datastore_service.h
+++ b/src/include/gnunet_datastore_service.h
@@ -155,9 +155,9 @@ GNUNET_DATASTORE_get (struct GNUNET_DATASTORE_Handle *h,
155 * Get a random value from the datastore. 155 * Get a random value from the datastore.
156 * 156 *
157 * @param h handle to the datastore 157 * @param h handle to the datastore
158 * @param iter function to call on each matching value; 158 * @param iter function to call on a random value; it
159 * will be called exactly once; if no values 159 * will be called once with a value (if available)
160 * are available, the value will be NULL. 160 * and always once with a value of NULL.
161 * @param iter_cls closure for iter 161 * @param iter_cls closure for iter
162 */ 162 */
163void 163void
@@ -175,7 +175,7 @@ GNUNET_DATASTORE_get_random (struct GNUNET_DATASTORE_Handle *h,
175 */ 175 */
176void 176void
177GNUNET_DATASTORE_remove (struct GNUNET_DATASTORE_Handle *h, 177GNUNET_DATASTORE_remove (struct GNUNET_DATASTORE_Handle *h,
178 const GNUNET_HashCode * key, 178 const GNUNET_HashCode *key,
179 uint32_t size, const void *data); 179 uint32_t size, const void *data);
180 180
181 181
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h
index 342014ae1..04bfe2a4f 100644
--- a/src/include/gnunet_protocols.h
+++ b/src/include/gnunet_protocols.h
@@ -303,11 +303,59 @@ extern "C"
303#define GNUNET_MESSAGE_TYPE_CORE_HANGUP 84 303#define GNUNET_MESSAGE_TYPE_CORE_HANGUP 84
304 304
305 305
306/**
307 * Message sent by datastore client on join.
308 */
309#define GNUNET_MESSAGE_TYPE_DATASTORE_INIT 92
310
311/**
312 * Message sent by datastore to client informing about size.
313 * (in response to JOIN, PUT and REMOVE requests).
314 */
315#define GNUNET_MESSAGE_TYPE_DATASTORE_SIZE 93
316
317/**
318 * Message sent by datastore client to store data.
319 */
320#define GNUNET_MESSAGE_TYPE_DATASTORE_PUT 94
321
322/**
323 * Message sent by datastore client to get data.
324 */
325#define GNUNET_MESSAGE_TYPE_DATASTORE_GET 95
326
327/**
328 * Message sent by datastore client to get random data.
329 */
330#define GNUNET_MESSAGE_TYPE_DATASTORE_GET_RANDOM 96
331
332/**
333 * Message sent by datastore to client providing requested data
334 * (in response to GET or GET_RANDOM request).
335 */
336#define GNUNET_MESSAGE_TYPE_DATASTORE_DATA 97
337
338/**
339 * Message sent by datastore to client signaling end of matching data.
340 * This message will also be sent for "GET_RANDOM", even though
341 * "GET_RANDOM" returns at most one data item.
342 */
343#define GNUNET_MESSAGE_TYPE_DATASTORE_DATA_END 98
344
345/**
346 * Message sent by datastore client to remove data.
347 */
348#define GNUNET_MESSAGE_TYPE_DATASTORE_REMOVE 99
349
350/**
351 * Message sent by datastore client to drop the database.
352 */
353#define GNUNET_MESSAGE_TYPE_DATASTORE_DROP 100
354
306/* 355/*
307 TODO: 356 TODO:
308 - DV 357 - DV
309 - DHT 358 - DHT
310 - datastores
311 - applications (FS, VPN, CHAT, TRACEKIT, TBENCH) 359 - applications (FS, VPN, CHAT, TRACEKIT, TBENCH)
312*/ 360*/
313 361