Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
afb-apiset: refactor access to apis
[src/app-framework-binder.git]
/
src
/
afb-ditf.c
diff --git
a/src/afb-ditf.c
b/src/afb-ditf.c
index
66bdb9d
..
3fc09e9
100644
(file)
--- 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)
{
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);
}
/**********************************************
}
/**********************************************