projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
travelhacking
[oweals/gnunet.git]
/
src
/
datastore
/
datastore.h
diff --git
a/src/datastore/datastore.h
b/src/datastore/datastore.h
index 92a2889d82363fce67d9f08c2ab0e404a539d719..aa2646c0a7b04ad166be11dea91eda16552d3800 100644
(file)
--- a/
src/datastore/datastore.h
+++ b/
src/datastore/datastore.h
@@
-19,7
+19,7
@@
*/
/**
*/
/**
- * @file datastore/datastore.h
c
+ * @file datastore/datastore.h
* @brief structs for communication between datastore service and API
* @author Christian Grothoff
*/
* @brief structs for communication between datastore service and API
* @author Christian Grothoff
*/
@@
-27,6
+27,8
@@
#ifndef DATASTORE_H
#define DATASTORE_H
#ifndef DATASTORE_H
#define DATASTORE_H
+#define DEBUG_DATASTORE GNUNET_NO
+
#include "gnunet_util_lib.h"
/**
#include "gnunet_util_lib.h"
/**
@@
-41,19
+43,14
@@
struct ReserveMessage
struct GNUNET_MessageHeader header;
/**
struct GNUNET_MessageHeader header;
/**
- *
Always zero
.
+ *
Number of items to reserve
.
*/
*/
- uint32_t
reserved
GNUNET_PACKED;
+ uint32_t
entries
GNUNET_PACKED;
/**
* Number of bytes to reserve.
*/
/**
* Number of bytes to reserve.
*/
- uint64_t size GNUNET_PACKED;
-
- /**
- * Number of items to reserve.
- */
- uint64_t items GNUNET_PACKED;
+ uint64_t amount GNUNET_PACKED;
};
};
@@
-71,7
+68,7
@@
struct StatusMessage
struct GNUNET_MessageHeader header;
/**
struct GNUNET_MessageHeader header;
/**
- * Status code.
+ * Status code
, -1 for errors
.
*/
int32_t status GNUNET_PACKED;
*/
int32_t status GNUNET_PACKED;
@@
-194,7
+191,10
@@
struct DataMessage
uint32_t anonymity GNUNET_PACKED;
/**
uint32_t anonymity GNUNET_PACKED;
/**
- * Unique ID for the content (can be used for UPDATE).
+ * Unique ID for the content (can be used for UPDATE);
+ * can be zero for remove (which indicates that
+ * the datastore should use whatever UID matches
+ * the key and content).
*/
uint64_t uid;
*/
uint64_t uid;