multicast/psyc: use start/stop naming for master/origin
authorGabor X Toth <*@tg-x.net>
Tue, 23 Jul 2013 05:38:33 +0000 (05:38 +0000)
committerGabor X Toth <*@tg-x.net>
Tue, 23 Jul 2013 05:38:33 +0000 (05:38 +0000)
src/include/gnunet_multicast_service.h
src/include/gnunet_psyc_service.h

index 88a8dba47cab1545f264c69dc5a7487776869be5..58f5c4fbe512b5f2cb4cf49251cf972c4d40a209 100644 (file)
@@ -556,12 +556,12 @@ GNUNET_MULTICAST_origin_to_all_cancel (struct GNUNET_MULTICAST_OriginMessageHand
 
 
 /** 
- * End a multicast group.
+ * Stop a multicast group.
  *
- * @param origin multicast group to terminate
+ * @param origin Multicast group to stop.
  */
 void
-GNUNET_MULTICAST_origin_end (struct GNUNET_MULTICAST_Origin *origin);
+GNUNET_MULTICAST_origin_stop (struct GNUNET_MULTICAST_Origin *origin);
 
 
 /** 
index d5257b26eca8481c1098b29c21d206d28fccd7a7..b2b370cf9b80cc5328eb8ce06a17ee81702691f2 100644 (file)
@@ -255,9 +255,9 @@ struct GNUNET_PSYC_Master;
 
 
 /** 
- * Create a PSYC channel master.
+ * Start a PSYC master channel.
  *
- * Will create a multicast group identified by the given ECC key.  Messages
+ * Will start a multicast group identified by the given ECC key.  Messages
  * received from group members will be given to the respective handler methods.
  * If a new member wants to join a group, the "join" method handler will be
  * invoked; the join handler must then generate a "join" message to approve the
@@ -284,13 +284,13 @@ struct GNUNET_PSYC_Master;
  * @return Handle for the channel master, NULL on error.
  */
 struct GNUNET_PSYC_Master *
-GNUNET_PSYC_master_create (const struct GNUNET_CONFIGURATION_Handle *cfg,
-                           const struct GNUNET_CRYPTO_EccPrivateKey *priv_key,
-                           enum GNUNET_MULTICAST_JoinPolicy join_policy,
-                           GNUNET_PSYC_Method method_cb,
-                           GNUNET_PSYC_JoinCallback join_cb,
-                           GNUNET_PSYC_PartCallback part_cb,
-                           void *cls);
+GNUNET_PSYC_master_start (const struct GNUNET_CONFIGURATION_Handle *cfg,
+                          const struct GNUNET_CRYPTO_EccPrivateKey *priv_key,
+                          enum GNUNET_MULTICAST_JoinPolicy join_policy,
+                          GNUNET_PSYC_Method method_cb,
+                          GNUNET_PSYC_JoinCallback join_cb,
+                          GNUNET_PSYC_PartCallback part_cb,
+                          void *cls);
 
 
 /** 
@@ -302,7 +302,7 @@ GNUNET_PSYC_master_create (const struct GNUNET_CONFIGURATION_Handle *cfg,
  * @param cls Closure.
  * @param message_id Set to the unique message ID that was generated for
  *        this message.
- * @param data_size[in,out] Initially set to the number of bytes available in @a data,
+ * @param[in,out] data_size Initially set to the number of bytes available in @a data,
  *        should be set to the number of bytes written to data (IN/OUT).
  * @param[out] data Where to write the body of the message to give to the method;
  *        function must copy at most @a *data_size bytes to @a data.
@@ -355,12 +355,12 @@ GNUNET_PSYC_master_transmit_cancel (struct GNUNET_PSYC_MasterTransmitHandle *th)
 
 
 /** 
- * Destroy a PSYC channel master.
+ * Stop a PSYC master channel.
  *
- * @param master PSYC channel master to terminate.
+ * @param master PSYC channel master to stop.
  */
 tvoid
-GNUNET_PSYC_master_destroy (struct GNUNET_PSYC_Master *master);
+GNUNET_PSYC_master_stop (struct GNUNET_PSYC_Master *master);
 
 
 /** 
@@ -431,7 +431,7 @@ GNUNET_PSYC_slave_part (struct GNUNET_PSYC_Slave *slave,
  * invalidates the respective transmission handle.
  *
  * @param cls Closure.
- * @param data_size[in,out] Initially set to the number of bytes available in @a data,
+ * @param[in,out] data_size Initially set to the number of bytes available in @a data,
  *        should be set to the number of bytes written to data (IN/OUT).
  * @param[out] data Where to write the body of the message to give to the method;
  *        function must copy at most @a *data_size bytes to @a data.