Add 'noconcurrency' when creating dynamic API
[src/app-framework-binder.git] / src / afb-api-dyn.h
index ea184df..21626ee 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;
@@ -35,7 +36,13 @@ struct afb_api_dyn_verb
 
 struct afb_api_dyn;
 
-extern int afb_api_dyn_add(struct afb_apiset *apiset, const char *name, const char *info, int (*preinit)(void*, struct afb_dynapi*), void *closure);
+extern int afb_api_dyn_add(
+               struct afb_apiset *apiset,
+               const char *name,
+               const char *info,
+               int noconcurrency,
+               int (*preinit)(void*, struct afb_dynapi*),
+               void *closure);
 
 extern void afb_api_dyn_set_verbs_v2(
                struct afb_api_dyn *dynapi,
@@ -46,6 +53,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);