aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/gnunet_multicast_service.h21
-rw-r--r--src/include/gnunet_psyc_service.h18
-rw-r--r--src/include/gnunet_social_service.h4
3 files changed, 31 insertions, 12 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
diff --git a/src/include/gnunet_psyc_service.h b/src/include/gnunet_psyc_service.h
index 37b960c6b..14a8b6e09 100644
--- a/src/include/gnunet_psyc_service.h
+++ b/src/include/gnunet_psyc_service.h
@@ -343,10 +343,10 @@ GNUNET_PSYC_master_start (const struct GNUNET_CONFIGURATION_Handle *cfg,
343 * #GNUNET_YES if this completes the transmission (all data supplied) 343 * #GNUNET_YES if this completes the transmission (all data supplied)
344 */ 344 */
345typedef int 345typedef int
346(*GNUNET_PSYC_MasterReadyNotify)(void *cls, 346(*GNUNET_PSYC_MasterTransmitNotify)(void *cls,
347 uint64_t message_id, 347 uint64_t message_id,
348 size_t *data_size, 348 size_t *data_size,
349 void *data); 349 void *data);
350 350
351 351
352 352
@@ -396,7 +396,7 @@ struct GNUNET_PSYC_MasterTransmitHandle *
396GNUNET_PSYC_master_transmit (struct GNUNET_PSYC_Master *master, 396GNUNET_PSYC_master_transmit (struct GNUNET_PSYC_Master *master,
397 const char *method_name, 397 const char *method_name,
398 const struct GNUNET_ENV_Environment *env, 398 const struct GNUNET_ENV_Environment *env,
399 GNUNET_PSYC_MasterReadyNotify notify, 399 GNUNET_PSYC_MasterTransmitNotify notify,
400 void *notify_cls, 400 void *notify_cls,
401 enum GNUNET_PSYC_TransmitFlags flags); 401 enum GNUNET_PSYC_TransmitFlags flags);
402 402
@@ -499,9 +499,9 @@ GNUNET_PSYC_slave_part (struct GNUNET_PSYC_Slave *slave);
499 * #GNUNET_YES if this completes the transmission (all data supplied). 499 * #GNUNET_YES if this completes the transmission (all data supplied).
500 */ 500 */
501typedef int 501typedef int
502(*GNUNET_PSYC_SlaveReadyNotify) (void *cls, 502(*GNUNET_PSYC_SlaveTransmitNotify) (void *cls,
503 size_t *data_size, 503 size_t *data_size,
504 char *data); 504 char *data);
505 505
506 506
507/** 507/**
@@ -530,7 +530,7 @@ struct GNUNET_PSYC_SlaveTransmitHandle *
530GNUNET_PSYC_slave_transmit (struct GNUNET_PSYC_Slave *slave, 530GNUNET_PSYC_slave_transmit (struct GNUNET_PSYC_Slave *slave,
531 const char *method_name, 531 const char *method_name,
532 const struct GNUNET_ENV_Environment *env, 532 const struct GNUNET_ENV_Environment *env,
533 GNUNET_PSYC_SlaveReadyNotify notify, 533 GNUNET_PSYC_SlaveTransmitNotify notify,
534 void *notify_cls, 534 void *notify_cls,
535 enum GNUNET_PSYC_SlaveTransmitFlags flags); 535 enum GNUNET_PSYC_SlaveTransmitFlags flags);
536 536
diff --git a/src/include/gnunet_social_service.h b/src/include/gnunet_social_service.h
index b3a5ca236..47673ad15 100644
--- a/src/include/gnunet_social_service.h
+++ b/src/include/gnunet_social_service.h
@@ -299,13 +299,15 @@ GNUNET_SOCIAL_home_get_key (struct GNUNET_SOCIAL_Home *home,
299 * @param peers List of peers in the PLACE record that can be used to send join 299 * @param peers List of peers in the PLACE record that can be used to send join
300 * requests to. 300 * requests to.
301 * @param expiration_time Expiration time of the record, use 0 to remove the record. 301 * @param expiration_time Expiration time of the record, use 0 to remove the record.
302 * @param password Password used to encrypt the record.
302 */ 303 */
303void 304void
304GNUNET_SOCIAL_home_advertise (struct GNUNET_SOCIAL_Home *home, 305GNUNET_SOCIAL_home_advertise (struct GNUNET_SOCIAL_Home *home,
305 const char *name, 306 const char *name,
306 size_t peer_count, 307 size_t peer_count,
307 const struct GNUNET_PeerIdentity *peers, 308 const struct GNUNET_PeerIdentity *peers,
308 GNUNET_TIME_Relative expiration_time); 309 GNUNET_TIME_Relative expiration_time,
310 const char *password);
309 311
310 312
311/** 313/**