X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdatastore%2Fdatastore.h;h=aa2646c0a7b04ad166be11dea91eda16552d3800;hb=b80e650bad570e01b5600aab2a667d177fc17770;hp=92a2889d82363fce67d9f08c2ab0e404a539d719;hpb=adb7f45adb8eff27515519f05042fc6ec616b38e;p=oweals%2Fgnunet.git diff --git a/src/datastore/datastore.h b/src/datastore/datastore.h index 92a2889d8..aa2646c0a 100644 --- a/src/datastore/datastore.h +++ b/src/datastore/datastore.h @@ -19,7 +19,7 @@ */ /** - * @file datastore/datastore.hc + * @file datastore/datastore.h * @brief structs for communication between datastore service and API * @author Christian Grothoff */ @@ -27,6 +27,8 @@ #ifndef DATASTORE_H #define DATASTORE_H +#define DEBUG_DATASTORE GNUNET_NO + #include "gnunet_util_lib.h" /** @@ -41,19 +43,14 @@ struct ReserveMessage 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. */ - 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; /** - * Status code. + * Status code, -1 for errors. */ int32_t status GNUNET_PACKED; @@ -194,7 +191,10 @@ struct DataMessage 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;