aboutsummaryrefslogtreecommitdiff
path: root/src/arm/arm_monitor_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-06-23 14:22:34 +0000
committerChristian Grothoff <christian@grothoff.org>2016-06-23 14:22:34 +0000
commit5742938289524f4c5fba7883742e4dd69cccf11d (patch)
treee16fea8b9d778f9825f897237b0c1880305776a0 /src/arm/arm_monitor_api.c
parentf3edb5a8d6ba6f43f5df18f2e98bc1dae90c9d7a (diff)
downloadgnunet-5742938289524f4c5fba7883742e4dd69cccf11d.tar.gz
gnunet-5742938289524f4c5fba7883742e4dd69cccf11d.zip
refactoring ARM api to use new MQ
Diffstat (limited to 'src/arm/arm_monitor_api.c')
-rw-r--r--src/arm/arm_monitor_api.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/arm/arm_monitor_api.c b/src/arm/arm_monitor_api.c
index 6d4129928..1f23c1dc5 100644
--- a/src/arm/arm_monitor_api.c
+++ b/src/arm/arm_monitor_api.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 Copyright (C) 2009, 2010, 2012, 2013 GNUnet e.V. 3 Copyright (C) 2009, 2010, 2012, 2013, 2016 GNUnet e.V.
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
@@ -21,7 +21,8 @@
21/** 21/**
22 * @file arm/arm_monitor_api.c 22 * @file arm/arm_monitor_api.c
23 * @brief API for monitoring the ARM service 23 * @brief API for monitoring the ARM service
24 * @author Christian Grothoff, LRN 24 * @author Christian Grothoff
25 * @author LRN
25 */ 26 */
26#include "platform.h" 27#include "platform.h"
27#include "gnunet_arm_service.h" 28#include "gnunet_arm_service.h"
@@ -241,9 +242,9 @@ reconnect_arm_monitor (struct GNUNET_ARM_MonitorHandle *h)
241 * @return context to use for further ARM monitor operations, NULL on error. 242 * @return context to use for further ARM monitor operations, NULL on error.
242 */ 243 */
243struct GNUNET_ARM_MonitorHandle * 244struct GNUNET_ARM_MonitorHandle *
244GNUNET_ARM_monitor (const struct GNUNET_CONFIGURATION_Handle *cfg, 245GNUNET_ARM_monitor_start (const struct GNUNET_CONFIGURATION_Handle *cfg,
245 GNUNET_ARM_ServiceStatusCallback cont, 246 GNUNET_ARM_ServiceStatusCallback cont,
246 void *cont_cls) 247 void *cont_cls)
247{ 248{
248 struct GNUNET_ARM_MonitorHandle *h; 249 struct GNUNET_ARM_MonitorHandle *h;
249 250
@@ -266,7 +267,7 @@ GNUNET_ARM_monitor (const struct GNUNET_CONFIGURATION_Handle *cfg,
266 * @param h the handle that was being used 267 * @param h the handle that was being used
267 */ 268 */
268void 269void
269GNUNET_ARM_monitor_disconnect_and_free (struct GNUNET_ARM_MonitorHandle *h) 270GNUNET_ARM_monitor_stop (struct GNUNET_ARM_MonitorHandle *h)
270{ 271{
271 if (NULL != h->mq) 272 if (NULL != h->mq)
272 { 273 {