diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-22 16:49:08 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-22 16:49:08 +0100 |
commit | 85088f7eedd1146890a5ce9af05fff934a5b1b8d (patch) | |
tree | d344906e3022c6c80aa373b989f4bb26f18dc00e /src/include | |
parent | 633bed1b616820d351b4ed3216273138a28587f2 (diff) | |
download | gnunet-85088f7eedd1146890a5ce9af05fff934a5b1b8d.tar.gz gnunet-85088f7eedd1146890a5ce9af05fff934a5b1b8d.zip |
converting 'pt' to new CADET API, not tested/testable, as exit/vpn are not converted yet
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_cadet_service.h | 4 | ||||
-rw-r--r-- | src/include/gnunet_mq_lib.h | 12 |
2 files changed, 13 insertions, 3 deletions
diff --git a/src/include/gnunet_cadet_service.h b/src/include/gnunet_cadet_service.h index 4d13606ef..fd838df8d 100644 --- a/src/include/gnunet_cadet_service.h +++ b/src/include/gnunet_cadet_service.h | |||
@@ -740,9 +740,9 @@ typedef void | |||
740 | * #GNUNET_CADET_ConnectEventHandler, also with a non-zero value. | 740 | * #GNUNET_CADET_ConnectEventHandler, also with a non-zero value. |
741 | * | 741 | * |
742 | * @param cls Channel closure. | 742 | * @param cls Channel closure. |
743 | * @param channel Connection to the other end (henceforth invalid). | 743 | * @param channel Connection to the other end --- FIXME: drop? |
744 | * @param window_size New window size. If the is more messages than buffer size | 744 | * @param window_size New window size. If the is more messages than buffer size |
745 | * this value will be negative.. | 745 | * this value will be negative. -- FIXME: make unsigned, we never call negative? |
746 | */ | 746 | */ |
747 | typedef void | 747 | typedef void |
748 | (*GNUNET_CADET_WindowSizeEventHandler) (void *cls, | 748 | (*GNUNET_CADET_WindowSizeEventHandler) (void *cls, |
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 |