18 impl_set_trace_flag_fields(
37 self->detail_flag_id =
44 self ->detail_flag_id, xctx);
47 self ->detail_flag_id,
55 "This produces a basic plus detail trace "
60 "trace:authorizationHandlerType:%" AFW_UTF8_FMT ":detail",
64 included_by_flag_id, xctx);
67 self->detail_flag_id, xctx);
74 self->trace_flag_id, xctx);
85 "This produces a basic trace of authorizationHandlerId %" AFW_UTF8_FMT ".",
93 included_by_flag_id, xctx);
96 self->detail_flag_id, xctx);
99 self->trace_flag_id, xctx);
132 properties, &afw_s_authorizationHandlerType, xctx);
136 properties, &afw_s_sourceLocation, xctx);
137 if (!self->source_location) {
138 self->source_location = &afw_s_authorization_handler;
143 &afw_s_authorizationHandlerId, p, xctx);
159 "Authorization handler id %" AFW_UTF8_FMT " read/write lock",
162 "Read/write lock used internally by authorization_handler id %"
175 &afw_s_priority, &found, xctx);
177 self->priority = 9999;
182 &afw_s_allowDenyOverride, &found, xctx);
184 &afw_s_allowPermitOverride, &found, xctx);
186 &afw_s_required, &found, xctx);
189 impl_set_trace_flag_fields(
self, xctx);
193 "authorizationHandlerId %" AFW_UTF8_FMT " is being created",
AFW_DEFINE(const afw_object_t *)
Adaptive Framework Core Internal.
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.
#define afw_object_old_get_property_as_boolean(object, property_name, found, xctx)
Get property function for data type boolean value.
#define afw_object_old_get_property_as_integer(object, property_name, found, xctx)
Get property function for data type integer value.
#define afw_object_old_get_property_as_string(object, property_name, xctx)
Get property function for data type string value.
#define AFW_UTF8_FMT_ARG(A_STRING)
Convenience Macro for use with AFW_UTF8_FMT to specify arg.
#define AFW_UTF8_FMT
Format string specifier used for afw_utf8_t.
apr_size_t afw_size_t
size_t.
const afw_object_t * afw_environment_prepare_conf_type_properties(const afw_object_t *properties, afw_xctx_t *xctx)
Prepare properties for a conf type.
#define afw_environment_register_flag(flag_id, brief, description, included_by_flag_id, xctx)
Register a flag.
const afw_lock_t * afw_environment_get_lock(const afw_utf8_t *log_type, afw_xctx_t *xctx)
Get the lock instance associated a lock id.
const afw_flag_t * afw_environment_get_flag(const afw_utf8_t *flag_id, afw_xctx_t *xctx)
Get the flag instance associated with flag_id.
#define AFW_THROW_ERROR_FZ(code, xctx, format_z,...)
Macro used to set error and 0 rv in xctx and throw it.
void afw_flag_add_included_by(const afw_utf8_t *flag_id, const afw_utf8_t *included_by_flag_id, afw_xctx_t *xctx)
Add another include_by flag to a registered flag.
afw_lock_create_rw_and_register(const afw_utf8_t *lock_id, const afw_utf8_t *brief, const afw_utf8_t *description, afw_xctx_t *xctx)
Create a read/write lock and register in environment.
#define afw_memory_copy(to, from)
Copy to preallocated memory of same type.
afw_object_old_get_property_as_utf8(const afw_object_t *instance, const afw_utf8_t *property_name, const afw_pool_t *p, afw_xctx_t *xctx)
Get an object's property value as a string in specified pool.
#define afw_pool_calloc(instance, size, xctx)
Call method calloc of interface afw_pool.
#define afw_trace_fz(trace_level, flag_index, instance, xctx, format_z,...)
If applicable, write trace using a printf style format.
const afw_utf8_t * afw_utf8_clone(const afw_utf8_t *string, const afw_pool_t *p, afw_xctx_t *xctx)
Clone a utf-8 string into a specific pool.
afw_utf8_printf(const afw_pool_t *p, afw_xctx_t *xctx, const afw_utf8_z_t *format,...)
Create a utf-8 string using a c format string in specified pool.
Interface afw_authorization_handler_inf_s struct.
Interface afw_authorization_handler public struct.
const afw_pool_t * p
Pool used to hold environment.
Struct used for a registered flag.
afw_size_t flag_index
Index of this flag in flags array.
Interface afw_object public struct.
Interface afw_pool public struct.
NFC normalized UTF-8 string.
Interface afw_xctx public struct.