Tag broadcasted events with UUID and hop
[src/app-framework-binder.git] / bindings / samples / hello3.c
index 131e0e4..37da612 100644 (file)
@@ -424,7 +424,7 @@ static void broadcast(afb_req_t request)
                        afb_req_success(request, NULL, NULL);
                pthread_mutex_unlock(&mutex);
        } else if (name != NULL) {
-               if (0 > afb_daemon_broadcast_event(name, object))
+               if (0 > afb_daemon_broadcast_event(name, json_object_get(object)))
                        afb_req_fail(request, "failed", "broadcast error");
                else
                        afb_req_success(request, NULL, NULL);
@@ -627,7 +627,6 @@ static void in_after (afb_req_t request)
        char *te;
        double td;
        struct timespec t;
-       void (*calling)(afb_req_t);
 
        /* get the type */
        ty = afb_req_value(request, "type") ?: "call";