X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-monitor.c;h=15dd1a495fc6aa638c17c31633597e592c447a84;hb=a2cf84e;hp=92399b0184f60706eb7ac097c5b856b93d29ed2d;hpb=5011060f04181acbb18babcc2017a2f0b6cfb853;p=src%2Fapp-framework-binder.git diff --git a/src/afb-monitor.c b/src/afb-monitor.c index 92399b01..15dd1a49 100644 --- a/src/afb-monitor.c +++ b/src/afb-monitor.c @@ -326,6 +326,7 @@ static void f_set(afb_req_t req) 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); @@ -360,7 +361,14 @@ static void f_trace(afb_req_t req) 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) {