aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_mq_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_mq_lib.h')
-rw-r--r--src/include/gnunet_mq_lib.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/include/gnunet_mq_lib.h b/src/include/gnunet_mq_lib.h
index 38ebf6b17..4630fa35a 100644
--- a/src/include/gnunet_mq_lib.h
+++ b/src/include/gnunet_mq_lib.h
@@ -268,12 +268,12 @@ struct GNUNET_MQ_MessageHandler
268 /** 268 /**
269 * Callback to validate a message of the specified @e type. 269 * Callback to validate a message of the specified @e type.
270 * The closure given to @e mv will be this struct (not @e ctx). 270 * The closure given to @e mv will be this struct (not @e ctx).
271 * Using NULL means only size-validation using 271 * Using NULL means only size-validation using
272 * @e expected_size. In this case, @e expected_size must 272 * @e expected_size. In this case, @e expected_size must
273 * be non-zero. 273 * be non-zero.
274 */ 274 */
275 GNUNET_MQ_MessageValidationCallback mv; 275 GNUNET_MQ_MessageValidationCallback mv;
276 276
277 /** 277 /**
278 * Callback, called every time a new message of 278 * Callback, called every time a new message of
279 * the specified @e type has been receied. 279 * the specified @e type has been receied.
@@ -285,7 +285,7 @@ struct GNUNET_MQ_MessageHandler
285 * Closure for @e mv and @e cb. 285 * Closure for @e mv and @e cb.
286 */ 286 */
287 void *cls; 287 void *cls;
288 288
289 /** 289 /**
290 * Type of the message this handler covers, in host byte order. 290 * Type of the message this handler covers, in host byte order.
291 */ 291 */
@@ -317,14 +317,14 @@ struct GNUNET_MQ_MessageHandler
317 * The macro is to be used as follows: 317 * The macro is to be used as follows:
318 * <code> 318 * <code>
319 * struct GNUNET_MessageTest { ... }; // must be fixed size 319 * struct GNUNET_MessageTest { ... }; // must be fixed size
320 * GNUNET_MQ_hd_fixed_size(test_message,
321 * GNUNET_MESSAGE_TYPE_TEST,
322 * struct GNUNET_MessageTest);
323 * static void 320 * static void
324 * handle_test_message (void *cls, // the struct GNUNET_MQ_MessageHandler 321 * handle_test_message (void *cls,
325 * const struct GNUNET_MessageTest *msg) 322 * const struct GNUNET_MessageTest *msg)
326 * { ... } 323 * { ... }
327 * 324 *
325 * GNUNET_MQ_hd_fixed_size(test_message,
326 * GNUNET_MESSAGE_TYPE_TEST,
327 * struct GNUNET_MessageTest);
328 * struct GNUNET_MQ_MessageHandler handlers[] = { 328 * struct GNUNET_MQ_MessageHandler handlers[] = {
329 * make_test_message_handler (), 329 * make_test_message_handler (),
330 * GNUNET_MQ_handler_end() 330 * GNUNET_MQ_handler_end()
@@ -355,8 +355,8 @@ struct GNUNET_MQ_MessageHandler
355 * The macro is to be used as follows: 355 * The macro is to be used as follows:
356 * <code> 356 * <code>
357 * struct GNUNET_MessageTest { ... }; // can be variable size 357 * struct GNUNET_MessageTest { ... }; // can be variable size
358 * GNUNET_MQ_hd_var_size(test_message, 358 * GNUNET_MQ_hd_var_size(test_message,
359 * GNUNET_MESSAGE_TYPE_TEST, 359 * GNUNET_MESSAGE_TYPE_TEST,
360 * struct GNUNET_MessageTest); 360 * struct GNUNET_MessageTest);
361 * static int 361 * static int
362 * check_test (void *cls, 362 * check_test (void *cls,
@@ -373,8 +373,8 @@ struct GNUNET_MQ_MessageHandler
373 * const char *ctx = cls; 373 * const char *ctx = cls;
374 * GNUNET_assert (0 == strcmp ("context", ctx)); 374 * GNUNET_assert (0 == strcmp ("context", ctx));
375 * // ... 375 * // ...
376 * } 376 * }
377 * 377 *
378 * struct GNUNET_MQ_MessageHandler handlers[] = { 378 * struct GNUNET_MQ_MessageHandler handlers[] = {
379 * make_test_message_handler ("context"), 379 * make_test_message_handler ("context"),
380 * GNUNET_MQ_handler_end() 380 * GNUNET_MQ_handler_end()