*/
/**
- * @file datastore/datastore.hc
+ * @file datastore/datastore.h
* @brief structs for communication between datastore service and API
* @author Christian Grothoff
*/
#ifndef DATASTORE_H
#define DATASTORE_H
+#define DEBUG_DATASTORE GNUNET_NO
+
#include "gnunet_util_lib.h"
/**
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 amount GNUNET_PACKED;
-
- /**
- * Number of items to reserve.
- */
- uint64_t entries GNUNET_PACKED;
};
struct GNUNET_MessageHeader header;
/**
- * Desired content type.
+ * Desired content type. (actually an enum GNUNET_BLOCK_Type)
*/
uint32_t type GNUNET_PACKED;
};
+/**
+ * Message to the datastore service asking about zero
+ * anonymity content.
+ */
+struct GetZeroAnonymityMessage
+{
+ /**
+ * Type is GNUNET_MESSAGE_TYPE_DATASTORE_GET_ZERO_ANONYMITY.
+ */
+ struct GNUNET_MessageHeader header;
+
+ /**
+ * Desired content type (actually an enum GNUNET_BLOCK_Type)
+ */
+ uint32_t type GNUNET_PACKED;
+
+};
+
+
/**
* Message to the datastore service requesting an update
* to the priority or expiration for some content.
uint32_t size GNUNET_PACKED;
/**
- * Type of the item (NBO), zero for remove.
+ * Type of the item (NBO), zero for remove, (actually an enum GNUNET_BLOCK_Type)
*/
uint32_t type GNUNET_PACKED;