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-config: Add traceses for tracing sessions
[src/app-framework-binder.git]
/
src
/
afb-api-so-v1.c
diff --git
a/src/afb-api-so-v1.c
b/src/afb-api-so-v1.c
index
d7429ef
..
c77ab72
100644
(file)
--- a/
src/afb-api-so-v1.c
+++ b/
src/afb-api-so-v1.c
@@
-67,7
+67,8
@@
static void call_cb(void *closure, struct afb_xreq *xreq)
const struct afb_verb_desc_v1 *verb;
struct api_so_v1 *desc = closure;
const struct afb_verb_desc_v1 *verb;
struct api_so_v1 *desc = closure;
- verb = search(desc, xreq->verb);
+ xreq->request.dynapi = (void*)desc->export; /* hack: this avoids to export afb_export structure */
+ verb = search(desc, xreq->request.verb);
afb_xreq_call_verb_v1(xreq, verb);
}
afb_xreq_call_verb_v1(xreq, verb);
}
@@
-238,7
+239,7
@@
int afb_api_so_v1_add(const char *path, void *handle, struct afb_apiset *apiset)
ERROR("binding [%s] bad prefix...", path);
goto error;
}
ERROR("binding [%s] bad prefix...", path);
goto error;
}
- if (!afb_api_is_valid_name(desc->binding->v1.prefix)) {
+ if (!afb_api_is_valid_name(desc->binding->v1.prefix
, 1
)) {
ERROR("binding [%s] invalid prefix...", path);
goto error;
}
ERROR("binding [%s] invalid prefix...", path);
goto error;
}