aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_psyc_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_psyc_service.h')
-rw-r--r--src/include/gnunet_psyc_service.h27
1 files changed, 19 insertions, 8 deletions
diff --git a/src/include/gnunet_psyc_service.h b/src/include/gnunet_psyc_service.h
index 16be33b15..d31f9c50a 100644
--- a/src/include/gnunet_psyc_service.h
+++ b/src/include/gnunet_psyc_service.h
@@ -311,7 +311,7 @@ struct GNUNET_PSYC_MessageModifier
311 uint16_t name_size GNUNET_PACKED; 311 uint16_t name_size GNUNET_PACKED;
312 312
313 /** 313 /**
314 * enum GNUNET_ENV_Operator 314 * enum GNUNET_PSYC_Operator
315 */ 315 */
316 uint8_t oper; 316 uint8_t oper;
317 317
@@ -533,8 +533,6 @@ struct GNUNET_PSYC_JoinHandle;
533 */ 533 */
534typedef void 534typedef void
535(*GNUNET_PSYC_MessageCallback) (void *cls, 535(*GNUNET_PSYC_MessageCallback) (void *cls,
536 uint64_t message_id,
537 uint32_t flags,
538 const struct GNUNET_PSYC_MessageHeader *msg); 536 const struct GNUNET_PSYC_MessageHeader *msg);
539 537
540 538
@@ -562,11 +560,8 @@ typedef void
562 */ 560 */
563typedef void 561typedef void
564(*GNUNET_PSYC_MessagePartCallback) (void *cls, 562(*GNUNET_PSYC_MessagePartCallback) (void *cls,
565 const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_pub_key, 563 const struct GNUNET_PSYC_MessageHeader *msg,
566 uint64_t message_id, 564 const struct GNUNET_MessageHeader *pmsg);
567 uint32_t flags,
568 uint64_t fragment_offset,
569 const struct GNUNET_MessageHeader *msg);
570 565
571 566
572/** 567/**
@@ -829,6 +824,22 @@ GNUNET_PSYC_master_transmit_cancel (struct GNUNET_PSYC_MasterTransmitHandle *th)
829 824
830 825
831/** 826/**
827 * Relay a message
828 *
829 * @param master Handle to the PSYC channel.
830 * @param method_name Which method should be invoked.
831 * @param notify_mod Function to call to obtain modifiers.
832 * @param notify_data Function to call to obtain fragments of the data.
833 * @param notify_cls Closure for @a notify_mod and @a notify_data.
834 * @param flags Flags for the message being transmitted.
835 * @return Transmission handle, NULL on error (i.e. more than one request queued).
836 */
837struct GNUNET_PSYC_MasterTransmitHandle *
838GNUNET_PSYC_master_relay (struct GNUNET_PSYC_Master *master,
839 uint64_t message_id);
840
841
842/**
832 * Stop a PSYC master channel. 843 * Stop a PSYC master channel.
833 * 844 *
834 * @param master 845 * @param master