/*
- * Copyright (C) 2016, 2017, 2018 "IoT.bzh"
+ * Copyright (C) 2016-2019 "IoT.bzh"
* Author José Bollo <jose.bollo@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
json_object_iter_next(&it);
}
} else if (json_object_is_type(spec, json_type_array)) {
- n = json_object_array_length(spec);
+ n = (int)json_object_array_length(spec);
for (i = 0 ; i < n ; i++)
get_verbosity_of(resu, json_object_get_string(json_object_array_get_idx(spec, i)));
} else if (json_object_is_type(spec, json_type_string)) {
json_object_iter_next(&it);
}
} else if (json_object_is_type(spec, json_type_array)) {
- n = json_object_array_length(spec);
+ n = (int)json_object_array_length(spec);
for (i = 0 ; i < n ; i++)
get_one_api(resu, json_object_get_string(json_object_array_get_idx(spec, i)), NULL);
} else if (json_object_is_type(spec, json_type_string)) {
afb_req_success(req, NULL, NULL);
}
+#if WITH_AFB_TRACE
static void *context_create(void *closure)
{
return afb_trace_create(_afb_binding_monitor.api, NULL);
end:
afb_apiset_update_hooks(target_set, NULL);
afb_evt_update_hooks();
+ return;
}
+#else
+static void f_trace(afb_req_t req)
+{
+ afb_req_reply(req, NULL, "not-available", NULL);
+}
+#endif
static void f_session(afb_req_t req)
{