WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
-
+
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
SPDX-License-Identifier: AGPL3.0-or-later
-*/
+ */
/**
* @file datastore/datastore.h
* Message from datastore service informing client about
* the current size of the datastore.
*/
-struct ReserveMessage
-{
+struct ReserveMessage {
/**
* Type is GNUNET_MESSAGE_TYPE_DATASTORE_RESERVE.
*/
* This header is optionally followed by a variable-size,
* 0-terminated error message.
*/
-struct StatusMessage
-{
+struct StatusMessage {
/**
* Type is GNUNET_MESSAGE_TYPE_DATASTORE_STATUS.
*/
* by the datacache at this time, zero for unknown or no limit.
*/
struct GNUNET_TIME_AbsoluteNBO min_expiration;
-
};
* the remainder of the reserved bytes can now be released
* for other requests.
*/
-struct ReleaseReserveMessage
-{
+struct ReleaseReserveMessage {
/**
* Type is GNUNET_MESSAGE_TYPE_DATASTORE_RELEASE_RESERVE.
*/
* Reservation id.
*/
int32_t rid GNUNET_PACKED;
-
};
* Message to the datastore service asking about specific
* content.
*/
-struct GetKeyMessage
-{
+struct GetKeyMessage {
/**
* Type is #GNUNET_MESSAGE_TYPE_DATASTORE_GET_KEY.
*/
* Desired key.
*/
struct GNUNET_HashCode key;
-
};
* Message to the datastore service asking about specific
* content.
*/
-struct GetMessage
-{
+struct GetMessage {
/**
* Type is #GNUNET_MESSAGE_TYPE_DATASTORE_GET.
*/
* If true return a random result
*/
uint32_t random GNUNET_PACKED;
-
};
* Message to the datastore service asking about zero
* anonymity content.
*/
-struct GetZeroAnonymityMessage
-{
+struct GetZeroAnonymityMessage {
/**
* Type is GNUNET_MESSAGE_TYPE_DATASTORE_GET_ZERO_ANONYMITY.
*/
* UID at which to start the search
*/
uint64_t next_uid GNUNET_PACKED;
-
};
* Message transmitting content from or to the datastore
* service.
*/
-struct DataMessage
-{
+struct DataMessage {
/**
* Type is either GNUNET_MESSAGE_TYPE_DATASTORE_PUT,
* GNUNET_MESSAGE_TYPE_DATASTORE_REMOVE or
* Key under which the item can be found.
*/
struct GNUNET_HashCode key;
-
};
GNUNET_NETWORK_STRUCT_END