aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_multicast_service.h
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2013-08-15 16:43:35 +0000
committerGabor X Toth <*@tg-x.net>2013-08-15 16:43:35 +0000
commit69df430616757d929288064ccddf28f48a403c45 (patch)
tree22f122d1594f96d8de6a252cfb394cc9a4c44452 /src/include/gnunet_multicast_service.h
parentb8aa1ee671e76abc13d9c5ce7d82e9f710ff7d89 (diff)
downloadgnunet-69df430616757d929288064ccddf28f48a403c45.tar.gz
gnunet-69df430616757d929288064ccddf28f48a403c45.zip
multicast/psyc: transmit callbacks; social: password for home_advertise()
Diffstat (limited to 'src/include/gnunet_multicast_service.h')
-rw-r--r--src/include/gnunet_multicast_service.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/include/gnunet_multicast_service.h b/src/include/gnunet_multicast_service.h
index 09d5cc4f2..66b17c6e3 100644
--- a/src/include/gnunet_multicast_service.h
+++ b/src/include/gnunet_multicast_service.h
@@ -518,6 +518,14 @@ GNUNET_MULTICAST_origin_start (const struct GNUNET_CONFIGURATION_Handle *cfg,
518 GNUNET_MULTICAST_MessageCallback message_cb, 518 GNUNET_MULTICAST_MessageCallback message_cb,
519 void *cls); 519 void *cls);
520 520
521/**
522 * Function called to provide data for a transmission from the origin to all members.
523 */
524typedef int
525(*GNUNET_MULTICAST_OriginTransmitNotify)(void *cls,
526 size_t *data_size,
527 void *data);
528
521 529
522/** 530/**
523 * Handle for a request to send a message to all multicast group members 531 * Handle for a request to send a message to all multicast group members
@@ -544,7 +552,7 @@ GNUNET_MULTICAST_origin_to_all (struct GNUNET_MULTICAST_Origin *origin,
544 uint64_t message_id, 552 uint64_t message_id,
545 uint64_t group_generation, 553 uint64_t group_generation,
546 size_t size, 554 size_t size,
547 GNUNET_CONNECTION_TransmitReadyNotify notify, 555 GNUNET_MULTICAST_OriginTransmitNotify notify,
548 void *notify_cls); 556 void *notify_cls);
549 557
550 558
@@ -684,6 +692,15 @@ void
684GNUNET_MULTICAST_member_part (struct GNUNET_MULTICAST_Member *member); 692GNUNET_MULTICAST_member_part (struct GNUNET_MULTICAST_Member *member);
685 693
686 694
695/**
696 * Function called to provide data for a transmission from a member to the origin.
697 */
698typedef int
699(*GNUNET_MULTICAST_MemberTransmitNotify)(void *cls,
700 size_t *data_size,
701 void *data);
702
703
687/** 704/**
688 * Handle for a message to be delivered from a member to the origin. 705 * Handle for a message to be delivered from a member to the origin.
689 */ 706 */
@@ -704,7 +721,7 @@ struct GNUNET_MULTICAST_MemberRequestHandle *
704GNUNET_MULTICAST_member_to_origin (struct GNUNET_MULTICAST_Member *member, 721GNUNET_MULTICAST_member_to_origin (struct GNUNET_MULTICAST_Member *member,
705 uint64_t message_id, 722 uint64_t message_id,
706 size_t size, 723 size_t size,
707 GNUNET_CONNECTION_TransmitReadyNotify notify, 724 GNUNET_MULTICAST_MemberTransmitNotify notify,
708 void *notify_cls); 725 void *notify_cls);
709 726
710 727