aboutsummaryrefslogtreecommitdiff
path: root/src/arm/arm_monitor_api.c
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-09-24 17:59:18 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-09-24 17:59:18 +0200
commit6aa35f62a80056f31ccd97133a0764a0950e1566 (patch)
tree1a42157c50d6cd3d3332e6b4554a94222bc6adb9 /src/arm/arm_monitor_api.c
parent2e2790e1b4a563ef471be1b604c6ebee55f89203 (diff)
downloadgnunet-6aa35f62a80056f31ccd97133a0764a0950e1566.tar.gz
gnunet-6aa35f62a80056f31ccd97133a0764a0950e1566.zip
implement extended status information for arm
Diffstat (limited to 'src/arm/arm_monitor_api.c')
-rw-r--r--src/arm/arm_monitor_api.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arm/arm_monitor_api.c b/src/arm/arm_monitor_api.c
index c6e1e2683..00faaaef1 100644
--- a/src/arm/arm_monitor_api.c
+++ b/src/arm/arm_monitor_api.c
@@ -61,7 +61,7 @@ struct GNUNET_ARM_MonitorHandle {
61 /** 61 /**
62 * Callback to invoke on status updates. 62 * Callback to invoke on status updates.
63 */ 63 */
64 GNUNET_ARM_ServiceStatusCallback service_status; 64 GNUNET_ARM_ServiceMonitorCallback service_status;
65 65
66 /** 66 /**
67 * Closure for @e service_status. 67 * Closure for @e service_status.
@@ -153,9 +153,9 @@ static void
153handle_monitor_notify(void *cls, const struct GNUNET_ARM_StatusMessage *res) 153handle_monitor_notify(void *cls, const struct GNUNET_ARM_StatusMessage *res)
154{ 154{
155 struct GNUNET_ARM_MonitorHandle *h = cls; 155 struct GNUNET_ARM_MonitorHandle *h = cls;
156 enum GNUNET_ARM_ServiceStatus status; 156 enum GNUNET_ARM_ServiceMonitorStatus status;
157 157
158 status = (enum GNUNET_ARM_ServiceStatus)ntohl(res->status); 158 status = (enum GNUNET_ARM_ServiceMonitorStatus)ntohl(res->status);
159 LOG(GNUNET_ERROR_TYPE_DEBUG, 159 LOG(GNUNET_ERROR_TYPE_DEBUG,
160 "Received notification from ARM for service `%s' with status %d\n", 160 "Received notification from ARM for service `%s' with status %d\n",
161 (const char *)&res[1], 161 (const char *)&res[1],
@@ -230,7 +230,7 @@ reconnect_arm_monitor(struct GNUNET_ARM_MonitorHandle *h)
230 */ 230 */
231struct GNUNET_ARM_MonitorHandle * 231struct GNUNET_ARM_MonitorHandle *
232GNUNET_ARM_monitor_start(const struct GNUNET_CONFIGURATION_Handle *cfg, 232GNUNET_ARM_monitor_start(const struct GNUNET_CONFIGURATION_Handle *cfg,
233 GNUNET_ARM_ServiceStatusCallback cont, 233 GNUNET_ARM_ServiceMonitorCallback cont,
234 void *cont_cls) 234 void *cont_cls)
235{ 235{
236 struct GNUNET_ARM_MonitorHandle *h; 236 struct GNUNET_ARM_MonitorHandle *h;