X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Fafb%2Fafb-request-itf.h;h=d9d9c835699e4742c5ada676c2b42ece947dd45f;hb=refs%2Ftags%2F4.99.4;hp=a5c3f82a2055a8c34f05fc8460d0d5bfcc5e829d;hpb=ce23b9e7ff8443c46ed21804277d8db90671a3b4;p=src%2Fapp-framework-binder.git diff --git a/include/afb/afb-request-itf.h b/include/afb/afb-request-itf.h index a5c3f82a..d9d9c835 100644 --- a/include/afb/afb-request-itf.h +++ b/include/afb/afb-request-itf.h @@ -28,6 +28,7 @@ struct json_object; struct afb_req; struct afb_event; struct afb_eventid; +struct afb_dynapi; struct afb_stored_req; /* @@ -42,9 +43,26 @@ struct afb_arg /* when the request is finalized this file is removed */ }; +/* + * structure for the request + */ struct afb_request { + /* interface for the request */ const struct afb_request_itf *itf; + + /* current dynapi (if any) */ + struct afb_dynapi *dynapi; + + /* closure associated with the callback processing the verb of the request + * as given at its declaration */ + void *vcbdata; + + /* the name of the called verb */ + const char *api; + + /* the name of the called verb */ + const char *verb; }; /* @@ -171,5 +189,17 @@ struct afb_request_itf int (*unsubscribe_eventid)( struct afb_request *request, struct afb_eventid *eventid); + + void (*subcall_request)( + struct afb_request *request, + const char *api, + const char *verb, + struct json_object *args, + void (*callback)(void*, int, struct json_object*, struct afb_request *request), + void *cb_closure); + + int (*get_uid)( + struct afb_request *request); + };