X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-ditf.c;h=3fc09e924ecaafae3306ee0866a1b7145999742a;hb=2e83db0375d44c0b05742e787f6abd4127e2aac8;hp=66bdb9df146ec0fab4876a29049535437c506011;hpb=859aa04ec2ee66709261a62d7f002d6a01c97a81;p=src%2Fapp-framework-binder.git diff --git a/src/afb-ditf.c b/src/afb-ditf.c index 66bdb9df..3fc09e92 100644 --- a/src/afb-ditf.c +++ b/src/afb-ditf.c @@ -112,8 +112,7 @@ static struct afb_req unstore_req_cb(void *closure, struct afb_stored_req *sreq) static int require_api_cb(void *closure, const char *name, int initialized) { - struct afb_api a; - return (initialized ? afb_apiset_get_started : afb_apiset_get)(main_apiset, name, &a); + return -!(initialized ? afb_apiset_lookup_started : afb_apiset_lookup)(main_apiset, name, 1); } /**********************************************