X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-binder.git;a=blobdiff_plain;f=bindings%2Fsamples%2Fhello3.c;h=3a6c9ad92077c3f785b4080bba7bfb974abd0576;hp=ff7da61a9c2d1f287fb96b9b60398d35d66df0d4;hb=65353dce81a629e042800bb7b86fcd869a76727e;hpb=a1e6d2c08445030fc35e98f5b97dd1a10024fe62 diff --git a/bindings/samples/hello3.c b/bindings/samples/hello3.c index ff7da61a..3a6c9ad9 100644 --- a/bindings/samples/hello3.c +++ b/bindings/samples/hello3.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015-2019 "IoT.bzh" + * Copyright (C) 2015-2020 "IoT.bzh" * Author "Fulup Ar Foll" * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -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);