56 for (i = 0, count = x->
xctx->flags_count;
57 i < count && x->xctx->env->flag_by_index[i];
60 if (x->
xctx->flags[i]) {
169 if (env_internal->default_flag_ids) {
170 for (flag_id = env_internal->default_flag_ids; *flag_id; flag_id++)
234 const void *
internal;
243 add = set_to_value->internal;
246 for (iterator = NULL;;)
249 list_value->internal,
255 if (!
internal)
break;
262 internal, x->
p, x->
xctx);
366 const void *
internal;
375 set_to = set_to_value->internal;
378 for (iterator = NULL;;)
381 list_value->internal,
387 if (!
internal)
break;
394 internal, x->
p, x->
xctx);
449 afw_environemnt_registry_type_extension,
450 &extension_id->internal, x->
xctx))
457 &extension_id->internal, NULL, NULL, x->
xctx);
507 NULL, &module_path->internal, NULL, x->
xctx);
508 extension_id = (extension)
509 ? &extension->extension_id
573 load_extension =
false;
577 load_extension = load_extension_value->internal;
581 ®istry_type_value->internal, load_extension, x->
xctx);
583 if (!registry_type) {
587 else if (load_extension) {
590 registry_type->number, &key_value->internal, x->
xctx))
596 registry_type->number, &key_value->internal, x->
xctx))
Adaptive Framework Core Internal.
afw_value_create_list(const afw_list_t *internal, const afw_pool_t *p, afw_xctx_t *xctx)
Create function for unmanaged data type list value.
afw_value_create_object(const afw_object_t *internal, const afw_pool_t *p, afw_xctx_t *xctx)
Create function for unmanaged data type object value.
afw_value_create_string(const afw_utf8_t *internal, const afw_pool_t *p, afw_xctx_t *xctx)
Create function for unmanaged data type string value.
afw_data_type_string
Data type struct for string.
#define afw_data_type_is_string(A_DATA_TYPE)
Macro to determine if data type is string.
struct afw_iterator_s afw_iterator_t
apr_size_t afw_size_t
size_t.
#define afw_data_type_internal_to_utf8(instance, from_internal, p, xctx)
Call method internal_to_utf8 of interface afw_data_type.
const afw_environment_registry_type_t * afw_environment_get_registry_type_by_id(const afw_utf8_t *registry_type_id, afw_boolean_t load_extension, afw_xctx_t *xctx)
Get the registry type associated with a registry type id.
afw_environment_registry_key_exists(int type_number, const afw_utf8_t *key, afw_xctx_t *xctx)
Check to see if a key exists.
afw_environment_load_extension(const afw_utf8_t *extension_id, const afw_utf8_t *module_path, const afw_object_t *properties, afw_xctx_t *xctx)
Load and initialize environment extension.
afw_environment_registry_get(int type_number, const afw_utf8_t *key, afw_xctx_t *xctx)
Get the value associated with a key for a registry type.
#define AFW_THROW_ERROR_Z(code, message_z, xctx)
Macro used to set error and 0 rv in xctx and throw it.
afw_flag_set_default(const afw_utf8_t *flag_id, afw_boolean_t set_to, afw_xctx_t *xctx)
Set the default value of a flag.
afw_flag_set_default_flag_ids(const afw_list_t *default_flag_ids, afw_xctx_t *xctx)
Set a new default flags list.
afw_flag_set(const afw_utf8_t *flag_id, afw_boolean_t set_to, afw_xctx_t *xctx)
Set a flag in xctx.
#define AFW_FUNCTION_EVALUATE_DATA_TYPE_PARAMETER(A_RESULT, A_N, A_TYPE)
Evaluate an arg for a particular data type.
#define AFW_FUNCTION_EVALUATE_REQUIRED_DATA_TYPE_PARAMETER(A_RESULT, A_N, A_TYPE)
Evaluate an arg for a particular data type.
#define AFW_FUNCTION_PARAMETER_IS_PRESENT(A_N)
Determine if a specific parameter value is present.
const afw_value_t * afw_function_execute_service_stop(afw_function_execute_t *x)
Adaptive Function service_stop
const afw_value_t * afw_function_execute_flag_replace_defaults(afw_function_execute_t *x)
Adaptive Function flag_replace_defaults
const afw_value_t * afw_function_execute_flag_get_active(afw_function_execute_t *x)
Adaptive Function flag_get_active
const afw_value_t * afw_function_execute_flag_modify_defaults(afw_function_execute_t *x)
Adaptive Function flag_modify_defaults
const afw_value_t * afw_function_execute_service_get(afw_function_execute_t *x)
Adaptive Function service_get
const afw_value_t * afw_function_execute_flag_set(afw_function_execute_t *x)
Adaptive Function flag_set
const afw_value_t * afw_function_execute_extension_load_by_module_path(afw_function_execute_t *x)
Adaptive Function extension_load_by_module_path
const afw_value_t * afw_function_execute_service_start(afw_function_execute_t *x)
Adaptive Function service_start
const afw_value_t * afw_function_execute_flag_get_active_defaults(afw_function_execute_t *x)
Adaptive Function flag_get_active_defaults
const afw_value_t * afw_function_execute_registry_key_check(afw_function_execute_t *x)
Adaptive Function registry_key_check
const afw_value_t * afw_function_execute_service_restart(afw_function_execute_t *x)
Adaptive Function service_restart
const afw_value_t * afw_function_execute_flag_get_defaults(afw_function_execute_t *x)
Adaptive Function flag_get_defaults
const afw_value_t * afw_function_execute_extension_load(afw_function_execute_t *x)
Adaptive Function extension_load
#define afw_list_get_next_internal(instance, iterator, data_type, internal, xctx)
Call method get_next_internal of interface afw_list.
afw_list_add_internal(const afw_list_t *instance, const afw_data_type_t *data_type, const void *internal, afw_xctx_t *xctx)
Call method add of interface afw_list_setter.
const afw_list_t * afw_list_create_with_options(int options, const afw_data_type_t *data_type, const afw_pool_t *p, afw_xctx_t *xctx)
Create an list in memory with options.
#define AFW_LOCK_BEGIN(instance)
Macro to begin a lock section.
#define AFW_LOCK_END
Macro to end a lock section.
afw_service_restart(const afw_utf8_t *service_id, afw_xctx_t *xctx)
Restart a service.
afw_service_stop(const afw_utf8_t *service_id, afw_xctx_t *xctx)
Stop a service.
const afw_object_t * afw_service_get_object(const afw_utf8_t *service_id, const afw_pool_t *p, afw_xctx_t *xctx)
Get a service object by service id.
afw_service_start(const afw_utf8_t *service_id, afw_boolean_t manual_start, afw_xctx_t *xctx)
Start a service.
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_value_false
Adaptive value false.
afw_value_null
Adaptive value null.
afw_value_true
Adaptive value true.
Interface afw_data_type public struct.
AFW_ATOMIC const afw_boolean_t * default_flags
Default flags array indexed by flag_index.
const afw_flag_t *AFW_ATOMIC const * flag_by_index
Flag struct indexed by flag_index.
AFW_ATOMIC afw_size_t flags_count_registered
The number of flags registered.
Interface afw_extension public struct.
const afw_utf8_t * flag_id
objectId of this flag.
Function execute parameter.
afw_xctx_t * xctx
The execution context (xctx) of caller.
const afw_pool_t * p
Pool for result.
Interface afw_list public struct.
Interface afw_object public struct.
NFC normalized UTF-8 string.
struct for data type boolean values.
struct for data type list values.
Interface afw_value public struct.
struct for data type string values.
Interface afw_xctx public struct.