Add a closure argument to dynamic verbs
[src/app-framework-binder.git] / src / afb-api-dyn.h
index ea184df..61180e2 100644 (file)
@@ -27,6 +27,7 @@ struct afb_verb_v2;
 struct afb_api_dyn_verb
 {
        void (*callback)(struct afb_request *request);
+       void *vcbdata;
        const struct afb_auth *auth;
        const char *info;
        int session;
@@ -46,6 +47,7 @@ extern int afb_api_dyn_add_verb(
                const char *verb,
                const char *info,
                void (*callback)(struct afb_request *request),
+               void *vcbdata,
                const struct afb_auth *auth,
                uint32_t session);