/**
* Adds a slave to the slave array
*
- * @param route the route to add
+ * @param slave the slave controller to add
*/
static void
slave_list_add (struct Slave *slave)
/**
* Adds a peer to the peer array
*
- * @param route the route to add
+ * @param peer the peer to add
*/
static void
peer_list_add (struct Peer *peer)
* Task to shutting down nicely
*
* @param cls NULL
- * @return tc the task context
+ * @param tc the task context
*/
static void
shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
/**
* Task to write to the standard out
*
- * @param
- * @return
+ * @param cls the WriteContext
+ * @param tc the TaskContext
*/
static void
write_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
* Task to read from stdin
*
* @param cls NULL
- * @return tc the task context
+ * @param tc the task context
*/
static void
read_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
* @param cproc the controller process handle
*/
void
-GNUNET_TESTBED_controller_stop (struct GNUNET_TESTBED_ControllerProc *cp)
+GNUNET_TESTBED_controller_stop (struct GNUNET_TESTBED_ControllerProc *cproc)
{
- if (NULL != cp->shandle)
- GNUNET_HELPER_send_cancel (cp->shandle);
- GNUNET_HELPER_stop (cp->helper);
- if (NULL != cp->cfg)
- GNUNET_CONFIGURATION_destroy (cp->cfg);
- GNUNET_free_non_null (cp->port);
- GNUNET_free_non_null (cp->dst);
- GNUNET_free (cp);
+ if (NULL != cproc->shandle)
+ GNUNET_HELPER_send_cancel (cproc->shandle);
+ GNUNET_HELPER_stop (cproc->helper);
+ if (NULL != cproc->cfg)
+ GNUNET_CONFIGURATION_destroy (cproc->cfg);
+ GNUNET_free_non_null (cproc->port);
+ GNUNET_free_non_null (cproc->dst);
+ GNUNET_free (cproc);
}
*/
/**
- * @file testbed/testbed_helper.c
+ * @file testbed/testbed_helper.h
* @brief Message formats for communication between testbed api and
* gnunet-testbed-helper process
* @author Sree Harsha Totakura <sreeharsha@totakura.in>