gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r8577 - gnunet/src/include


From: gnunet
Subject: [GNUnet-SVN] r8577 - gnunet/src/include
Date: Sun, 14 Jun 2009 22:46:53 -0600

Author: grothoff
Date: 2009-06-14 22:46:53 -0600 (Sun, 14 Jun 2009)
New Revision: 8577

Modified:
   gnunet/src/include/gnunet_datastore_service.h
   gnunet/src/include/gnunet_protocols.h
Log:
mtypes

Modified: gnunet/src/include/gnunet_datastore_service.h
===================================================================
--- gnunet/src/include/gnunet_datastore_service.h       2009-06-15 04:46:35 UTC 
(rev 8576)
+++ gnunet/src/include/gnunet_datastore_service.h       2009-06-15 04:46:53 UTC 
(rev 8577)
@@ -155,9 +155,9 @@
  * Get a random value from the datastore.
  *
  * @param h handle to the datastore
- * @param iter function to call on each matching value;
- *        will be called exactly once; if no values
- *        are available, the value will be NULL.
+ * @param iter function to call on a random value; it
+ *        will be called once with a value (if available)
+ *        and always once with a value of NULL.
  * @param iter_cls closure for iter
  */
 void
@@ -175,7 +175,7 @@
  */
 void
 GNUNET_DATASTORE_remove (struct GNUNET_DATASTORE_Handle *h,
-                         const GNUNET_HashCode * key,
+                         const GNUNET_HashCode *key,
                          uint32_t size, const void *data);
 
 

Modified: gnunet/src/include/gnunet_protocols.h
===================================================================
--- gnunet/src/include/gnunet_protocols.h       2009-06-15 04:46:35 UTC (rev 
8576)
+++ gnunet/src/include/gnunet_protocols.h       2009-06-15 04:46:53 UTC (rev 
8577)
@@ -303,11 +303,59 @@
 #define GNUNET_MESSAGE_TYPE_CORE_HANGUP 84
 
 
+/**
+ * Message sent by datastore client on join.
+ */
+#define GNUNET_MESSAGE_TYPE_DATASTORE_INIT 92
+
+/**
+ * Message sent by datastore to client informing about size.
+ * (in response to JOIN, PUT and REMOVE requests).
+ */
+#define GNUNET_MESSAGE_TYPE_DATASTORE_SIZE 93
+
+/**
+ * Message sent by datastore client to store data.
+ */
+#define GNUNET_MESSAGE_TYPE_DATASTORE_PUT 94
+
+/**
+ * Message sent by datastore client to get data.
+ */
+#define GNUNET_MESSAGE_TYPE_DATASTORE_GET 95
+
+/**
+ * Message sent by datastore client to get random data.
+ */
+#define GNUNET_MESSAGE_TYPE_DATASTORE_GET_RANDOM 96
+
+/**
+ * Message sent by datastore to client providing requested data
+ * (in response to GET or GET_RANDOM request).
+ */
+#define GNUNET_MESSAGE_TYPE_DATASTORE_DATA 97
+
+/**
+ * Message sent by datastore to client signaling end of matching data.
+ * This message will also be sent for "GET_RANDOM", even though
+ * "GET_RANDOM" returns at most one data item.
+ */
+#define GNUNET_MESSAGE_TYPE_DATASTORE_DATA_END 98
+
+/**
+ * Message sent by datastore client to remove data.
+ */
+#define GNUNET_MESSAGE_TYPE_DATASTORE_REMOVE 99
+
+/**
+ * Message sent by datastore client to drop the database.
+ */
+#define GNUNET_MESSAGE_TYPE_DATASTORE_DROP 100
+
 /*
   TODO:
   - DV
   - DHT
-  - datastores
   - applications (FS, VPN, CHAT, TRACEKIT, TBENCH)
 */
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]