Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Files | Functions

Files

file  afw_action.h
 Functions for working with AdaptiveAction objects.
 

Functions

const afw_object_tafw_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...
 

Detailed Description

Provides action perform.

Function Documentation

◆ afw_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.

Parameters
requestis AdaptiveActions containing actions to perform.
response_content_typeto use or NULL for default (application/json).
responseis existing response object or if NULL, new one is created.
pused for result.
xctxof caller.
Returns
AdaptiveResponse object.

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.