* @param cls closure
* @param success GNUNET_YES if we think the service is running
* GNUNET_NO if we think the service is stopped
- * GNUNET_SYSERR if we think ARM was not running
+ * GNUNET_SYSERR if we think ARM was not running or
+ * if the service status is unknown
*/
typedef void (*GNUNET_ARM_Callback) (void *cls, int success);
*/
void
GNUNET_ARM_start_service (const char *service_name,
- struct GNUNET_CONFIGURATION_Handle *cfg,
+ const struct GNUNET_CONFIGURATION_Handle *cfg,
struct GNUNET_SCHEDULER_Handle *sched,
struct GNUNET_TIME_Relative timeout,
GNUNET_ARM_Callback cb, void *cb_cls);
*/
void
GNUNET_ARM_stop_service (const char *service_name,
- struct GNUNET_CONFIGURATION_Handle *cfg,
+ const struct GNUNET_CONFIGURATION_Handle *cfg,
struct GNUNET_SCHEDULER_Handle *sched,
struct GNUNET_TIME_Relative timeout,
GNUNET_ARM_Callback cb, void *cb_cls);