diff options
Diffstat (limited to 'src/include/gnunet_messenger_service.h')
-rw-r--r-- | src/include/gnunet_messenger_service.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/include/gnunet_messenger_service.h b/src/include/gnunet_messenger_service.h index c647272df..ad4151aed 100644 --- a/src/include/gnunet_messenger_service.h +++ b/src/include/gnunet_messenger_service.h | |||
@@ -42,6 +42,7 @@ extern "C" { | |||
42 | #include "gnunet_common.h" | 42 | #include "gnunet_common.h" |
43 | #include "gnunet_configuration_lib.h" | 43 | #include "gnunet_configuration_lib.h" |
44 | #include "gnunet_identity_service.h" | 44 | #include "gnunet_identity_service.h" |
45 | #include "gnunet_reclaim_lib.h" | ||
45 | #include "gnunet_scheduler_lib.h" | 46 | #include "gnunet_scheduler_lib.h" |
46 | #include "gnunet_time_lib.h" | 47 | #include "gnunet_time_lib.h" |
47 | #include "gnunet_util_lib.h" | 48 | #include "gnunet_util_lib.h" |
@@ -201,6 +202,11 @@ enum GNUNET_MESSENGER_MessageKind | |||
201 | GNUNET_MESSENGER_KIND_CONNECTION = 16, | 202 | GNUNET_MESSENGER_KIND_CONNECTION = 16, |
202 | 203 | ||
203 | /** | 204 | /** |
205 | * The ticket kind. The message contains a #GNUNET_MESSENGER_MessageTicket body. | ||
206 | */ | ||
207 | GNUNET_MESSENGER_KIND_TICKET = 17, | ||
208 | |||
209 | /** | ||
204 | * The unknown kind. The message contains an unknown body. | 210 | * The unknown kind. The message contains an unknown body. |
205 | */ | 211 | */ |
206 | GNUNET_MESSENGER_KIND_UNKNOWN = 0 | 212 | GNUNET_MESSENGER_KIND_UNKNOWN = 0 |
@@ -516,6 +522,20 @@ struct GNUNET_MESSENGER_MessageConnection | |||
516 | }; | 522 | }; |
517 | 523 | ||
518 | /** | 524 | /** |
525 | * A ticket message body | ||
526 | * This allows to exchange ticket identifiers with an audience. | ||
527 | * | ||
528 | * Message-body-size: 32 bytes | ||
529 | */ | ||
530 | struct GNUNET_MESSENGER_MessageTicket | ||
531 | { | ||
532 | /** | ||
533 | * The identifier of a RECLAIM ticket. | ||
534 | */ | ||
535 | struct GNUNET_RECLAIM_Identifier identifier; | ||
536 | }; | ||
537 | |||
538 | /** | ||
519 | * The unified body of a #GNUNET_MESSENGER_Message. | 539 | * The unified body of a #GNUNET_MESSENGER_Message. |
520 | */ | 540 | */ |
521 | struct GNUNET_MESSENGER_MessageBody | 541 | struct GNUNET_MESSENGER_MessageBody |
@@ -538,6 +558,7 @@ struct GNUNET_MESSENGER_MessageBody | |||
538 | struct GNUNET_MESSENGER_MessagePrivate privacy; | 558 | struct GNUNET_MESSENGER_MessagePrivate privacy; |
539 | struct GNUNET_MESSENGER_MessageDelete deletion; | 559 | struct GNUNET_MESSENGER_MessageDelete deletion; |
540 | struct GNUNET_MESSENGER_MessageConnection connection; | 560 | struct GNUNET_MESSENGER_MessageConnection connection; |
561 | struct GNUNET_MESSENGER_MessageTicket ticket; | ||
541 | }; | 562 | }; |
542 | }; | 563 | }; |
543 | 564 | ||