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

Files

file  afw_authorization_impl.h
 Adaptive Framework authorization implementation support.
 

Functions

afw_authorization_handler_tafw_authorization_handler_impl_create_cede_p (const afw_authorization_handler_inf_t *inf, afw_size_t instance_size, const afw_object_t *properties, const afw_pool_t *p, afw_xctx_t *xctx)
 Developers should call this in all create functions for a afw_authorization_handler. More...
 

Detailed Description

Helpers for afw_authorization_helper implementations.

Function Documentation

◆ afw_authorization_handler_impl_create_cede_p()

afw_authorization_handler_t* afw_authorization_handler_impl_create_cede_p ( const afw_authorization_handler_inf_t inf,
afw_size_t  instance_size,
const afw_object_t properties,
const afw_pool_t p,
afw_xctx_t xctx 
)

Developers should call this in all create functions for a afw_authorization_handler.

Parameters
infafw_authorization_handler_inf_t pointer for implementation.
instance_size0 or size greater than sizeof(afw_authorization_handler_t).
propertiesconfig object.
startis function to call to start authorization_handler.
stopis function to call to stop authorization_handler.
pto use as parent when creating authorization_handler pool.
xctxof caller.
Returns
instance of afw_authorization_handler_t, optionally with extra memory based on instance_size parameter.

This function creates and initializes an afw_authorization_handler instance. After calling this function, the caller should do additional authorization_handler type specific processing. The instance_size parameter can be specified to get a larger instance size than sizeof(afw_authorization_handler_t) for authorization_handler type specific use.

A new pool is created in the callings xctx's pool for use by the authorization_handler.

This function validates and normalizes the authorization_handler properties based on /afw/_AdaptiveObjectType_/ ... _AdaptiveConf_authorization_handler_<type>, where <type> is the value of the authorization_handlerType property.

All properties from /afw/_AdaptiveObjectType_/_AdaptiveConf_authorization_handler are processed.

Some additional properties are processed if they pass validation. Properties isModelLocation and isPolicyLocation cause the appropriate core object types to be supported.

See afw_authorization_handler_impl_s for more information on how on how common authorization_handler code uses this information.

Definition at line 107 of file afw_authorization_impl.c.