Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add a closure argument to dynamic verbs
[src/app-framework-binder.git]
/
src
/
afb-api-dyn.h
diff --git
a/src/afb-api-dyn.h
b/src/afb-api-dyn.h
index
ea184df
..
61180e2
100644
(file)
--- a/
src/afb-api-dyn.h
+++ b/
src/afb-api-dyn.h
@@
-27,6
+27,7
@@
struct afb_verb_v2;
struct afb_api_dyn_verb
{
void (*callback)(struct afb_request *request);
struct afb_api_dyn_verb
{
void (*callback)(struct afb_request *request);
+ void *vcbdata;
const struct afb_auth *auth;
const char *info;
int session;
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),
const char *verb,
const char *info,
void (*callback)(struct afb_request *request),
+ void *vcbdata,
const struct afb_auth *auth,
uint32_t session);
const struct afb_auth *auth,
uint32_t session);