diff options
Diffstat (limited to 'src/set/set.h')
-rw-r--r-- | src/set/set.h | 45 |
1 files changed, 15 insertions, 30 deletions
diff --git a/src/set/set.h b/src/set/set.h index 34b97736c..74c7ddda8 100644 --- a/src/set/set.h +++ b/src/set/set.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 | * @file set/set.h | 21 | * @file set/set.h |
22 | * @brief messages used for the set api | 22 | * @brief messages used for the set api |
@@ -37,8 +37,7 @@ GNUNET_NETWORK_STRUCT_BEGIN | |||
37 | * a new set to perform operations with. Includes the desired | 37 | * a new set to perform operations with. Includes the desired |
38 | * set operation type. | 38 | * set operation type. |
39 | */ | 39 | */ |
40 | struct GNUNET_SET_CreateMessage | 40 | struct GNUNET_SET_CreateMessage { |
41 | { | ||
42 | /** | 41 | /** |
43 | * Type: #GNUNET_MESSAGE_TYPE_SET_CREATE | 42 | * Type: #GNUNET_MESSAGE_TYPE_SET_CREATE |
44 | */ | 43 | */ |
@@ -56,8 +55,7 @@ struct GNUNET_SET_CreateMessage | |||
56 | * incoming requests to perform a certain type of set operation for a | 55 | * incoming requests to perform a certain type of set operation for a |
57 | * certain type of application. | 56 | * certain type of application. |
58 | */ | 57 | */ |
59 | struct GNUNET_SET_ListenMessage | 58 | struct GNUNET_SET_ListenMessage { |
60 | { | ||
61 | /** | 59 | /** |
62 | * Type: #GNUNET_MESSAGE_TYPE_SET_LISTEN | 60 | * Type: #GNUNET_MESSAGE_TYPE_SET_LISTEN |
63 | */ | 61 | */ |
@@ -72,7 +70,6 @@ struct GNUNET_SET_ListenMessage | |||
72 | * application id | 70 | * application id |
73 | */ | 71 | */ |
74 | struct GNUNET_HashCode app_id; | 72 | struct GNUNET_HashCode app_id; |
75 | |||
76 | }; | 73 | }; |
77 | 74 | ||
78 | 75 | ||
@@ -80,8 +77,7 @@ struct GNUNET_SET_ListenMessage | |||
80 | * Message sent by a listening client to the service to accept | 77 | * Message sent by a listening client to the service to accept |
81 | * performing the operation with the other peer. | 78 | * performing the operation with the other peer. |
82 | */ | 79 | */ |
83 | struct GNUNET_SET_AcceptMessage | 80 | struct GNUNET_SET_AcceptMessage { |
84 | { | ||
85 | /** | 81 | /** |
86 | * Type: #GNUNET_MESSAGE_TYPE_SET_ACCEPT | 82 | * Type: #GNUNET_MESSAGE_TYPE_SET_ACCEPT |
87 | */ | 83 | */ |
@@ -133,8 +129,7 @@ struct GNUNET_SET_AcceptMessage | |||
133 | * Message sent by a listening client to the service to reject | 129 | * Message sent by a listening client to the service to reject |
134 | * performing the operation with the other peer. | 130 | * performing the operation with the other peer. |
135 | */ | 131 | */ |
136 | struct GNUNET_SET_RejectMessage | 132 | struct GNUNET_SET_RejectMessage { |
137 | { | ||
138 | /** | 133 | /** |
139 | * Type: #GNUNET_MESSAGE_TYPE_SET_REJECT | 134 | * Type: #GNUNET_MESSAGE_TYPE_SET_REJECT |
140 | */ | 135 | */ |
@@ -144,15 +139,13 @@ struct GNUNET_SET_RejectMessage | |||
144 | * ID of the incoming request we want to reject. | 139 | * ID of the incoming request we want to reject. |
145 | */ | 140 | */ |
146 | uint32_t accept_reject_id GNUNET_PACKED; | 141 | uint32_t accept_reject_id GNUNET_PACKED; |
147 | |||
148 | }; | 142 | }; |
149 | 143 | ||
150 | 144 | ||
151 | /** | 145 | /** |
152 | * A request for an operation with another client. | 146 | * A request for an operation with another client. |
153 | */ | 147 | */ |
154 | struct GNUNET_SET_RequestMessage | 148 | struct GNUNET_SET_RequestMessage { |
155 | { | ||
156 | /** | 149 | /** |
157 | * Type: #GNUNET_MESSAGE_TYPE_SET_REQUEST. | 150 | * Type: #GNUNET_MESSAGE_TYPE_SET_REQUEST. |
158 | */ | 151 | */ |
@@ -179,8 +172,7 @@ struct GNUNET_SET_RequestMessage | |||
179 | * client (not as listener). A set (which determines the operation | 172 | * client (not as listener). A set (which determines the operation |
180 | * type) must already exist in association with this client. | 173 | * type) must already exist in association with this client. |
181 | */ | 174 | */ |
182 | struct GNUNET_SET_EvaluateMessage | 175 | struct GNUNET_SET_EvaluateMessage { |
183 | { | ||
184 | /** | 176 | /** |
185 | * Type: #GNUNET_MESSAGE_TYPE_SET_EVALUATE | 177 | * Type: #GNUNET_MESSAGE_TYPE_SET_EVALUATE |
186 | */ | 178 | */ |
@@ -243,8 +235,7 @@ struct GNUNET_SET_EvaluateMessage | |||
243 | * (set union) or part of the final result, depending on | 235 | * (set union) or part of the final result, depending on |
244 | * options specified for the operation. | 236 | * options specified for the operation. |
245 | */ | 237 | */ |
246 | struct GNUNET_SET_ResultMessage | 238 | struct GNUNET_SET_ResultMessage { |
247 | { | ||
248 | /** | 239 | /** |
249 | * Type: #GNUNET_MESSAGE_TYPE_SET_RESULT | 240 | * Type: #GNUNET_MESSAGE_TYPE_SET_RESULT |
250 | */ | 241 | */ |
@@ -279,8 +270,7 @@ struct GNUNET_SET_ResultMessage | |||
279 | * Message sent by client to the service to add or remove | 270 | * Message sent by client to the service to add or remove |
280 | * an element to/from the set. | 271 | * an element to/from the set. |
281 | */ | 272 | */ |
282 | struct GNUNET_SET_ElementMessage | 273 | struct GNUNET_SET_ElementMessage { |
283 | { | ||
284 | /** | 274 | /** |
285 | * Type: #GNUNET_MESSAGE_TYPE_SET_ADD or | 275 | * Type: #GNUNET_MESSAGE_TYPE_SET_ADD or |
286 | * #GNUNET_MESSAGE_TYPE_SET_REMOVE | 276 | * #GNUNET_MESSAGE_TYPE_SET_REMOVE |
@@ -305,8 +295,7 @@ struct GNUNET_SET_ElementMessage | |||
305 | * Sent to the service by the client | 295 | * Sent to the service by the client |
306 | * in order to cancel a set operation. | 296 | * in order to cancel a set operation. |
307 | */ | 297 | */ |
308 | struct GNUNET_SET_CancelMessage | 298 | struct GNUNET_SET_CancelMessage { |
309 | { | ||
310 | /** | 299 | /** |
311 | * Type: #GNUNET_MESSAGE_TYPE_SET_CANCEL | 300 | * Type: #GNUNET_MESSAGE_TYPE_SET_CANCEL |
312 | */ | 301 | */ |
@@ -323,8 +312,7 @@ struct GNUNET_SET_CancelMessage | |||
323 | * Set element transmitted by service to client in response to a set | 312 | * Set element transmitted by service to client in response to a set |
324 | * iteration request. | 313 | * iteration request. |
325 | */ | 314 | */ |
326 | struct GNUNET_SET_IterResponseMessage | 315 | struct GNUNET_SET_IterResponseMessage { |
327 | { | ||
328 | /** | 316 | /** |
329 | * Type: #GNUNET_MESSAGE_TYPE_SET_ITER_ELEMENT | 317 | * Type: #GNUNET_MESSAGE_TYPE_SET_ITER_ELEMENT |
330 | */ | 318 | */ |
@@ -349,8 +337,7 @@ struct GNUNET_SET_IterResponseMessage | |||
349 | /** | 337 | /** |
350 | * Client acknowledges receiving element in iteration. | 338 | * Client acknowledges receiving element in iteration. |
351 | */ | 339 | */ |
352 | struct GNUNET_SET_IterAckMessage | 340 | struct GNUNET_SET_IterAckMessage { |
353 | { | ||
354 | /** | 341 | /** |
355 | * Type: #GNUNET_MESSAGE_TYPE_SET_ITER_ACK | 342 | * Type: #GNUNET_MESSAGE_TYPE_SET_ITER_ACK |
356 | */ | 343 | */ |
@@ -366,8 +353,7 @@ struct GNUNET_SET_IterAckMessage | |||
366 | /** | 353 | /** |
367 | * Server responds to a lazy copy request. | 354 | * Server responds to a lazy copy request. |
368 | */ | 355 | */ |
369 | struct GNUNET_SET_CopyLazyResponseMessage | 356 | struct GNUNET_SET_CopyLazyResponseMessage { |
370 | { | ||
371 | /** | 357 | /** |
372 | * Type: #GNUNET_MESSAGE_TYPE_SET_COPY_LAZY_RESPONSE | 358 | * Type: #GNUNET_MESSAGE_TYPE_SET_COPY_LAZY_RESPONSE |
373 | */ | 359 | */ |
@@ -383,8 +369,7 @@ struct GNUNET_SET_CopyLazyResponseMessage | |||
383 | /** | 369 | /** |
384 | * Client connects to a lazily copied set. | 370 | * Client connects to a lazily copied set. |
385 | */ | 371 | */ |
386 | struct GNUNET_SET_CopyLazyConnectMessage | 372 | struct GNUNET_SET_CopyLazyConnectMessage { |
387 | { | ||
388 | /** | 373 | /** |
389 | * Type: #GNUNET_MESSAGE_TYPE_SET_COPY_LAZY_CONNECT | 374 | * Type: #GNUNET_MESSAGE_TYPE_SET_COPY_LAZY_CONNECT |
390 | */ | 375 | */ |