X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-xreq.h;h=77f843fa68868226814ef83c4f6d0e46e4d1cdc2;hb=3e56dc3fc7ce31cb932fbd86e78eea02049d0b7e;hp=a37b6bfd72008aa25db12f8cf56836a0a033d2db;hpb=a86967decc0ff9b139f412fffccc7914e27a80a9;p=src%2Fapp-framework-binder.git diff --git a/src/afb-xreq.h b/src/afb-xreq.h index a37b6bfd..77f843fa 100644 --- a/src/afb-xreq.h +++ b/src/afb-xreq.h @@ -27,13 +27,15 @@ struct afb_apiset; struct afb_event; struct afb_verb_desc_v1; struct afb_verb_v2; +struct afb_req; +struct afb_stored_req; struct afb_xreq_query_itf { struct json_object *(*json)(struct afb_xreq *xreq); struct afb_arg (*get)(struct afb_xreq *xreq, const char *name); void (*success)(struct afb_xreq *xreq, struct json_object *obj, const char *info); void (*fail)(struct afb_xreq *xreq, const char *status, const char *info); - void (*reply)(struct afb_xreq *xreq, int iserror, struct json_object *obj); + void (*reply)(struct afb_xreq *xreq, int status, struct json_object *obj); void (*unref)(struct afb_xreq *xreq); int (*subscribe)(struct afb_xreq *xreq, struct afb_event event); int (*unsubscribe)(struct afb_xreq *xreq, struct afb_event event); @@ -85,6 +87,7 @@ struct afb_xreq #define CONTAINER_OF_XREQ(type,x) CONTAINER_OF(type,xreq,x) /* req wrappers for xreq */ +extern struct afb_req afb_xreq_unstore(struct afb_stored_req *sreq); extern void afb_xreq_addref(struct afb_xreq *xreq); extern void afb_xreq_unref(struct afb_xreq *xreq);