diff options
Diffstat (limited to 'src/include/gnunet_mq_lib.h')
-rw-r--r-- | src/include/gnunet_mq_lib.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/include/gnunet_mq_lib.h b/src/include/gnunet_mq_lib.h index f9ad6c913..b7f1eecaa 100644 --- a/src/include/gnunet_mq_lib.h +++ b/src/include/gnunet_mq_lib.h | |||
@@ -473,7 +473,6 @@ struct GNUNET_MQ_MessageHandler | |||
473 | */ | 473 | */ |
474 | struct GNUNET_MQ_Envelope * | 474 | struct GNUNET_MQ_Envelope * |
475 | GNUNET_MQ_msg_ (struct GNUNET_MessageHeader **mhp, | 475 | GNUNET_MQ_msg_ (struct GNUNET_MessageHeader **mhp, |
476 | |||
477 | uint16_t size, | 476 | uint16_t size, |
478 | uint16_t type); | 477 | uint16_t type); |
479 | 478 | ||
@@ -511,6 +510,17 @@ GNUNET_MQ_get_current_envelope (struct GNUNET_MQ_Handle *mq); | |||
511 | 510 | ||
512 | 511 | ||
513 | /** | 512 | /** |
513 | * Function to copy an envelope. The envelope must not yet | ||
514 | * be in any queue or have any options or callbacks set. | ||
515 | * | ||
516 | * @param env envelope to copy | ||
517 | * @return copy of @a env | ||
518 | */ | ||
519 | struct GNUNET_MQ_Envelope * | ||
520 | GNUNET_MQ_env_copy (struct GNUNET_MQ_Envelope *env); | ||
521 | |||
522 | |||
523 | /** | ||
514 | * Function to obtain the last envelope in the queue. | 524 | * Function to obtain the last envelope in the queue. |
515 | * | 525 | * |
516 | * @param mq message queue to interrogate | 526 | * @param mq message queue to interrogate |