void (*success)(void *req_closure, struct json_object *obj, const char *info);
void (*fail)(void *req_closure, const char *status, const char *info);
const char *(*raw)(void *req_closure, size_t *size);
void (*success)(void *req_closure, struct json_object *obj, const char *info);
void (*fail)(void *req_closure, const char *status, const char *info);
const char *(*raw)(void *req_closure, size_t *size);
int (*session_create)(void *req_closure);
int (*session_check)(void *req_closure, int refresh);
void (*session_close)(void *req_closure);
int (*session_create)(void *req_closure);
int (*session_check)(void *req_closure, int refresh);
void (*session_close)(void *req_closure);
static inline struct afb_arg afb_req_get(struct afb_req req, const char *name)
{
return req.itf->get(req.req_closure, name);
static inline struct afb_arg afb_req_get(struct afb_req req, const char *name)
{
return req.itf->get(req.req_closure, name);
-static inline void afb_req_context_set(struct afb_req req, void *context, void (*free_context)(void*))
+static inline void afb_req_context_set(struct afb_req req, void *value, void (*free_value)(void*))