X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Fafb-req-itf.h;h=9ced7630d129d2593f49daf66242152137d56d58;hb=911df9d068b3e259dcab970ded4132a7397f565f;hp=a9b768db0aecf2d012100322d588a6f364d1489d;hpb=11d36a9f7e16aa9992835f8ce06f0e1e5297b131;p=src%2Fapp-framework-binder.git diff --git a/include/afb-req-itf.h b/include/afb-req-itf.h index a9b768db..9ced7630 100644 --- a/include/afb-req-itf.h +++ b/include/afb-req-itf.h @@ -20,8 +20,8 @@ struct json_object; struct afb_arg { const char *name; const char *value; + const char *path; size_t size; - int is_file; }; struct afb_req_itf { @@ -37,7 +37,7 @@ struct afb_req_itf { struct afb_req { const struct afb_req_itf *itf; void *data; - void *context; + void **context; }; static inline struct afb_arg afb_req_get(struct afb_req req, const char *name) @@ -50,9 +50,9 @@ static inline const char *afb_req_argument(struct afb_req req, const char *name) return afb_req_get(req, name).value; } -static inline int afb_req_is_argument_file(struct afb_req req, const char *name) +static inline const char *afb_req_path(struct afb_req req, const char *name) { - return afb_req_get(req, name).is_file; + return afb_req_get(req, name).path; } static inline void afb_req_iterate(struct afb_req req, int (*iterator)(void *closure, struct afb_arg arg), void *closure)