aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_psyc_service.h
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2016-01-12 23:26:47 +0000
committerGabor X Toth <*@tg-x.net>2016-01-12 23:26:47 +0000
commit50eaf8d7de763d25b7dae7ffdee8d7c6b5fe71ea (patch)
treea8023bdb9c9446a45792d7100303265c78713a50 /src/include/gnunet_psyc_service.h
parent3cbdbe18dbd56def00c0014381ff90b4ee664904 (diff)
downloadgnunet-50eaf8d7de763d25b7dae7ffdee8d7c6b5fe71ea.tar.gz
gnunet-50eaf8d7de763d25b7dae7ffdee8d7c6b5fe71ea.zip
psycutil reorg: message, env, slicer
Diffstat (limited to 'src/include/gnunet_psyc_service.h')
-rw-r--r--src/include/gnunet_psyc_service.h47
1 files changed, 27 insertions, 20 deletions
diff --git a/src/include/gnunet_psyc_service.h b/src/include/gnunet_psyc_service.h
index de31fe216..526a70f01 100644
--- a/src/include/gnunet_psyc_service.h
+++ b/src/include/gnunet_psyc_service.h
@@ -92,7 +92,6 @@ extern "C"
92#endif 92#endif
93 93
94#include "gnunet_util_lib.h" 94#include "gnunet_util_lib.h"
95#include "gnunet_env_lib.h"
96#include "gnunet_multicast_service.h" 95#include "gnunet_multicast_service.h"
97//Mingw work around 96//Mingw work around
98#ifdef MINGW 97#ifdef MINGW
@@ -917,33 +916,41 @@ enum GNUNET_PSYC_SlaveJoinFlags
917 * notification on failure (as the channel may simply take days to approve, 916 * notification on failure (as the channel may simply take days to approve,
918 * and disapproval is simply being ignored). 917 * and disapproval is simply being ignored).
919 * 918 *
920 * @param cfg Configuration to use. 919 * @param cfg
921 * @param channel_key ECC public key that identifies the channel we wish to join. 920 * Configuration to use.
922 * @param slave_key ECC private-public key pair that identifies the slave, and 921 * @param channel_pub_key
922 * ECC public key that identifies the channel we wish to join.
923 * @param slave_key
924 * ECC private-public key pair that identifies the slave, and
923 * used by multicast to sign the join request and subsequent unicast 925 * used by multicast to sign the join request and subsequent unicast
924 * requests sent to the master. 926 * requests sent to the master.
925 * @param origin Peer identity of the origin. 927 * @param flags
926 * @param relay_count Number of peers in the @a relays array. 928 * Join flags.
927 * @param relays Peer identities of members of the multicast group, which serve 929 * @param origin
930 * Peer identity of the origin.
931 * @param relay_count
932 * Number of peers in the @a relays array.
933 * @param relays
934 * Peer identities of members of the multicast group, which serve
928 * as relays and used to join the group at. 935 * as relays and used to join the group at.
929 * @param message_cb Function to invoke on message parts received from the 936 * @param message_cb
930 * channel, typically at least contains method handlers for @e join and 937 * Function to invoke on message fragments received from the channel.
931 * @e part. 938 * @param message_part_cb
932 * @param slave_connect_cb Function invoked once we have connected to the 939 * Function to invoke on message parts received from the channel.
933 * PSYC service. 940 * @param slave_connect_cb
934 * @param join_decision_cb Function invoked once we have received a join 941 * Function invoked once we have connected to the PSYC service.
935 * decision. 942 * @param join_decision_cb
936 * @param cls Closure for @a message_cb and @a slave_joined_cb. 943 * Function invoked once we have received a join decision.
937 * @param method_name Method name for the join request. 944 * @param cls
938 * @param env Environment containing transient variables for the request, or NULL. 945 * Closure for @a message_cb and @a slave_joined_cb.
939 * @param data Payload for the join message. 946 * @param join_msg
940 * @param data_size Number of bytes in @a data. 947 * Join message.
941 * 948 *
942 * @return Handle for the slave, NULL on error. 949 * @return Handle for the slave, NULL on error.
943 */ 950 */
944struct GNUNET_PSYC_Slave * 951struct GNUNET_PSYC_Slave *
945GNUNET_PSYC_slave_join (const struct GNUNET_CONFIGURATION_Handle *cfg, 952GNUNET_PSYC_slave_join (const struct GNUNET_CONFIGURATION_Handle *cfg,
946 const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, 953 const struct GNUNET_CRYPTO_EddsaPublicKey *channel_pub_key,
947 const struct GNUNET_CRYPTO_EcdsaPrivateKey *slave_key, 954 const struct GNUNET_CRYPTO_EcdsaPrivateKey *slave_key,
948 enum GNUNET_PSYC_SlaveJoinFlags flags, 955 enum GNUNET_PSYC_SlaveJoinFlags flags,
949 const struct GNUNET_PeerIdentity *origin, 956 const struct GNUNET_PeerIdentity *origin,