aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/datastore.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/datastore/datastore.h')
-rw-r--r--src/datastore/datastore.h31
1 files changed, 9 insertions, 22 deletions
diff --git a/src/datastore/datastore.h b/src/datastore/datastore.h
index c2a20b9d3..b4a51dc02 100644
--- a/src/datastore/datastore.h
+++ b/src/datastore/datastore.h
@@ -11,12 +11,12 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19*/ 19 */
20 20
21/** 21/**
22 * @file datastore/datastore.h 22 * @file datastore/datastore.h
@@ -36,8 +36,7 @@ GNUNET_NETWORK_STRUCT_BEGIN
36 * Message from datastore service informing client about 36 * Message from datastore service informing client about
37 * the current size of the datastore. 37 * the current size of the datastore.
38 */ 38 */
39struct ReserveMessage 39struct ReserveMessage {
40{
41 /** 40 /**
42 * Type is GNUNET_MESSAGE_TYPE_DATASTORE_RESERVE. 41 * Type is GNUNET_MESSAGE_TYPE_DATASTORE_RESERVE.
43 */ 42 */
@@ -61,8 +60,7 @@ struct ReserveMessage
61 * This header is optionally followed by a variable-size, 60 * This header is optionally followed by a variable-size,
62 * 0-terminated error message. 61 * 0-terminated error message.
63 */ 62 */
64struct StatusMessage 63struct StatusMessage {
65{
66 /** 64 /**
67 * Type is GNUNET_MESSAGE_TYPE_DATASTORE_STATUS. 65 * Type is GNUNET_MESSAGE_TYPE_DATASTORE_STATUS.
68 */ 66 */
@@ -78,7 +76,6 @@ struct StatusMessage
78 * by the datacache at this time, zero for unknown or no limit. 76 * by the datacache at this time, zero for unknown or no limit.
79 */ 77 */
80 struct GNUNET_TIME_AbsoluteNBO min_expiration; 78 struct GNUNET_TIME_AbsoluteNBO min_expiration;
81
82}; 79};
83 80
84 81
@@ -87,8 +84,7 @@ struct StatusMessage
87 * the remainder of the reserved bytes can now be released 84 * the remainder of the reserved bytes can now be released
88 * for other requests. 85 * for other requests.
89 */ 86 */
90struct ReleaseReserveMessage 87struct ReleaseReserveMessage {
91{
92 /** 88 /**
93 * Type is GNUNET_MESSAGE_TYPE_DATASTORE_RELEASE_RESERVE. 89 * Type is GNUNET_MESSAGE_TYPE_DATASTORE_RELEASE_RESERVE.
94 */ 90 */
@@ -98,7 +94,6 @@ struct ReleaseReserveMessage
98 * Reservation id. 94 * Reservation id.
99 */ 95 */
100 int32_t rid GNUNET_PACKED; 96 int32_t rid GNUNET_PACKED;
101
102}; 97};
103 98
104 99
@@ -106,8 +101,7 @@ struct ReleaseReserveMessage
106 * Message to the datastore service asking about specific 101 * Message to the datastore service asking about specific
107 * content. 102 * content.
108 */ 103 */
109struct GetKeyMessage 104struct GetKeyMessage {
110{
111 /** 105 /**
112 * Type is #GNUNET_MESSAGE_TYPE_DATASTORE_GET_KEY. 106 * Type is #GNUNET_MESSAGE_TYPE_DATASTORE_GET_KEY.
113 */ 107 */
@@ -132,7 +126,6 @@ struct GetKeyMessage
132 * Desired key. 126 * Desired key.
133 */ 127 */
134 struct GNUNET_HashCode key; 128 struct GNUNET_HashCode key;
135
136}; 129};
137 130
138 131
@@ -140,8 +133,7 @@ struct GetKeyMessage
140 * Message to the datastore service asking about specific 133 * Message to the datastore service asking about specific
141 * content. 134 * content.
142 */ 135 */
143struct GetMessage 136struct GetMessage {
144{
145 /** 137 /**
146 * Type is #GNUNET_MESSAGE_TYPE_DATASTORE_GET. 138 * Type is #GNUNET_MESSAGE_TYPE_DATASTORE_GET.
147 */ 139 */
@@ -161,7 +153,6 @@ struct GetMessage
161 * If true return a random result 153 * If true return a random result
162 */ 154 */
163 uint32_t random GNUNET_PACKED; 155 uint32_t random GNUNET_PACKED;
164
165}; 156};
166 157
167 158
@@ -169,8 +160,7 @@ struct GetMessage
169 * Message to the datastore service asking about zero 160 * Message to the datastore service asking about zero
170 * anonymity content. 161 * anonymity content.
171 */ 162 */
172struct GetZeroAnonymityMessage 163struct GetZeroAnonymityMessage {
173{
174 /** 164 /**
175 * Type is GNUNET_MESSAGE_TYPE_DATASTORE_GET_ZERO_ANONYMITY. 165 * Type is GNUNET_MESSAGE_TYPE_DATASTORE_GET_ZERO_ANONYMITY.
176 */ 166 */
@@ -185,7 +175,6 @@ struct GetZeroAnonymityMessage
185 * UID at which to start the search 175 * UID at which to start the search
186 */ 176 */
187 uint64_t next_uid GNUNET_PACKED; 177 uint64_t next_uid GNUNET_PACKED;
188
189}; 178};
190 179
191 180
@@ -193,8 +182,7 @@ struct GetZeroAnonymityMessage
193 * Message transmitting content from or to the datastore 182 * Message transmitting content from or to the datastore
194 * service. 183 * service.
195 */ 184 */
196struct DataMessage 185struct DataMessage {
197{
198 /** 186 /**
199 * Type is either GNUNET_MESSAGE_TYPE_DATASTORE_PUT, 187 * Type is either GNUNET_MESSAGE_TYPE_DATASTORE_PUT,
200 * GNUNET_MESSAGE_TYPE_DATASTORE_REMOVE or 188 * GNUNET_MESSAGE_TYPE_DATASTORE_REMOVE or
@@ -255,7 +243,6 @@ struct DataMessage
255 * Key under which the item can be found. 243 * Key under which the item can be found.
256 */ 244 */
257 struct GNUNET_HashCode key; 245 struct GNUNET_HashCode key;
258
259}; 246};
260GNUNET_NETWORK_STRUCT_END 247GNUNET_NETWORK_STRUCT_END
261 248