Adaptive Framework
0.9.0
|
Files | |
file | afw_action.h |
Functions for working with AdaptiveAction objects. | |
Functions | |
const afw_object_t * | afw_action_perform (const afw_object_t *request, const afw_content_type_t *response_content_type, const afw_object_t *response, const afw_pool_t *p, afw_xctx_t *xctx) |
Perform actions(s) specified in AdaptiveActions object. More... | |
Provides action perform.
const afw_object_t* afw_action_perform | ( | const afw_object_t * | request, |
const afw_content_type_t * | response_content_type, | ||
const afw_object_t * | response, | ||
const afw_pool_t * | p, | ||
afw_xctx_t * | xctx | ||
) |
Perform actions(s) specified in AdaptiveActions object.
request | is AdaptiveActions containing actions to perform. |
response_content_type | to use or NULL for default (application/json). |
response | is existing response object or if NULL, new one is created. |
p | used for result. |
xctx | of caller. |
Request object can have a "function" parameter for a single function call or an "actions" parameter with a list for objects for mutiple function calls.
These parameters for the function call are specified as properties with the name of the parameter. In the case of multiple actions, the root request object will be checked for missing parameters.
Definition at line 228 of file afw_action.c.