diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-06-23 14:22:34 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-06-23 14:22:34 +0000 |
commit | 5742938289524f4c5fba7883742e4dd69cccf11d (patch) | |
tree | e16fea8b9d778f9825f897237b0c1880305776a0 /src/arm/arm_monitor_api.c | |
parent | f3edb5a8d6ba6f43f5df18f2e98bc1dae90c9d7a (diff) | |
download | gnunet-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.c | 13 |
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 | */ |
243 | struct GNUNET_ARM_MonitorHandle * | 244 | struct GNUNET_ARM_MonitorHandle * |
244 | GNUNET_ARM_monitor (const struct GNUNET_CONFIGURATION_Handle *cfg, | 245 | GNUNET_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 | */ |
268 | void | 269 | void |
269 | GNUNET_ARM_monitor_disconnect_and_free (struct GNUNET_ARM_MonitorHandle *h) | 270 | GNUNET_ARM_monitor_stop (struct GNUNET_ARM_MonitorHandle *h) |
270 | { | 271 | { |
271 | if (NULL != h->mq) | 272 | if (NULL != h->mq) |
272 | { | 273 | { |