Adaptive Framework
0.9.0
|
Files | |
file | afw_environment.h |
Header for adaptive framework environment. | |
Data Structures | |
struct | afw_environment_default_register_additional_s |
Default register_additional object struct. More... | |
struct | afw_environment_registry_type_s |
struct | afw_environment_conf_type_s |
Struct for afw environment conf type. More... | |
Macros | |
#define | AFW_ENVIRONMENT_REGISTRY_TYPE_MAP(XX) |
Environment Core Registry Type Map. More... | |
#define | AFW_ENVIRONMENT_Q_EXTENSION_INSTANCE "afw_environment_extension_instance" |
environment extension instance quoted string. | |
#define | AFW_ENVIRONMENT_DEFINE_EXTENSION_IMPL() |
Macro to put in each afw_extension implementation. More... | |
#define | AFW_ENVIRONMENT_CREATE(xctx, argc, argv, environment_create_error) |
Call afw_environment_create() supplying version compiled with. More... | |
#define | afw_environment_register_flag(flag_id, brief, description, included_by_flag_id, xctx) |
Register a flag. More... | |
Typedefs | |
typedef struct afw_environment_default_register_additional_s | afw_environment_default_register_additional_t |
Default register_additional object struct. | |
typedef void(* | afw_environment_conf_type_create_cede_p_t) (const afw_utf8_t *type, const afw_object_t *conf, const afw_utf8_t *source_location, const afw_pool_t *p, afw_xctx_t *xctx) |
Typedef for afw conf type create functions. More... | |
typedef void *(* | afw_environment_auto_register_cb_t) (const afw_utf8_t *registry_type_id, const afw_utf8_t *key, afw_xctx_t *xctx) |
Auto register callback function. More... | |
typedef void(* | afw_environment_register_additional_cb_t) (const afw_utf8_t *registry_type_id, int type_number, const afw_utf8_t *key, const void *value, const void *register_additional_param, const void **register_additional_use, afw_xctx_t *xctx) |
Additional register callback function. More... | |
typedef const afw_utf8_z_t *(* | afw_environment_error_rv_decoder_z_t) (int rv, afw_utf8_z_t *wa, afw_size_t wa_size) |
Typedef for error rv decoder functions. More... | |
typedef afw_boolean_t(* | afw_environment_foreach_cb_t) (int type_number, void *data, const afw_utf8_octet_t *key_s, afw_size_t key_len, void *value, const afw_pool_t *p, afw_xctx_t *xctx) |
Callback function typedef for afw_environment_foreach(). More... | |
Enumerations | |
enum | afw_environment_registry_type_enum_t { afw_environemnt_registry_type_max_core_type } |
Enum for the core registry types. | |
Functions | |
afw_xctx_t * | afw_environment_create (unsigned int version, int argc, const char *const *argv, const afw_error_t **environment_create_error) |
Create the Adaptive Framework core environment and return base xctx. More... | |
void | afw_environment_release (afw_xctx_t *xctx) |
Create the Adaptive Framework core environment and return base xctx. More... | |
afw_environment_registry_object_get_current (afw_xctx_t *xctx) | |
Get current environment registry object. More... | |
void | afw_environment_configure_with_object (const afw_object_t *conf, const afw_utf8_t *source_location, afw_xctx_t *xctx) |
Configure environment with a configuration entry. More... | |
void | afw_environment_configure_with_object_list (const afw_list_t *entry_list, const afw_utf8_t *source_location, afw_xctx_t *xctx) |
Configure environment with list of configuration entries. More... | |
const afw_object_t * | afw_environment_create_environment_variables_object (afw_boolean_t preload_variables, afw_xctx_t *xctx) |
Create a readonly object for accessing environment variables. More... | |
const afw_extension_t * | 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. More... | |
void | afw_environment_foreach (int type_number, afw_environment_foreach_cb_t callback, void *data, const afw_pool_t *p, afw_xctx_t *xctx) |
Call a callback function for each entry of a registry type. More... | |
int | afw_environment_create_registry_type (const afw_utf8_t *registry_type_id, const afw_utf8_t *property_name, const afw_utf8_t *object_type_id, const afw_utf8_t *description, afw_boolean_t allow_reregister, afw_environment_auto_register_cb_t auto_register, afw_environment_register_additional_cb_t register_additional, void *register_additional_param, afw_xctx_t *xctx) |
Create a new registry type. More... | |
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. More... | |
const afw_environment_registry_type_t * | afw_environment_get_registry_type_by_number (int registry_type_number, afw_xctx_t *xctx) |
Get the registry type associated with a registry type number. More... | |
void | afw_environment_registry_register (int type_number, const afw_utf8_t *key, const void *value, afw_xctx_t *xctx) |
Register a value by key for a registry type. More... | |
afw_boolean_t | afw_environment_registry_key_exists (int type_number, const afw_utf8_t *key, afw_xctx_t *xctx) |
Check to see if a key exists. More... | |
void * | 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. More... | |
void * | afw_environment_registry_get_without_xctx (const afw_environment_t *env, int type_number, const afw_utf8_t *key) |
Limited get the value associated with a key for a registry type. More... | |
const afw_environment_registry_type_t * | afw_environment_get_registry_type (const afw_utf8_t *property_name, afw_xctx_t *xctx) |
Get the registry type associated with property name. More... | |
void | afw_environment_register_singleton (const afw_utf8_t *singleton_key, const void *void_ptr, afw_xctx_t *xctx) |
Register an singleton. More... | |
void * | afw_environment_get_singleton (const afw_utf8_t *singleton_key, afw_xctx_t *xctx) |
Get the singleton value. More... | |
afw_environment_register_adaptor_type (const afw_utf8_t *adaptor_type, const afw_adaptor_factory_t *adaptor_factory, afw_xctx_t *xctx) | |
Register an adaptor factory. More... | |
const afw_adaptor_factory_t * | afw_environment_get_adaptor_type (const afw_utf8_t *adaptor_type, afw_xctx_t *xctx) |
Get the adaptor factory instance associated with adaptor type. More... | |
void | afw_environment_register_adaptor_id (const afw_utf8_t *adaptor_id, const afw_adaptor_id_anchor_t *anchor, afw_xctx_t *xctx) |
Register an adaptor id anchor. More... | |
const afw_adaptor_id_anchor_t * | afw_environment_get_adaptor_id (const afw_utf8_t *adaptor_id, afw_xctx_t *xctx) |
Get the adaptor id anchor associated with adaptor id. More... | |
afw_environment_register_authorization_handler_type (const afw_utf8_t *authorization_handler_type, const afw_authorization_handler_factory_t *authorization_handler_factory, afw_xctx_t *xctx) | |
Register an authorization handler factory. More... | |
const afw_authorization_handler_factory_t * | afw_environment_get_authorization_handler_type (const afw_utf8_t *authorization_handler_type, afw_xctx_t *xctx) |
Get the authorization_handler factory instance associated with authorization handler type. More... | |
void | afw_environment_register_authorization_handler_id (const afw_utf8_t *authorization_handler_id, const afw_authorization_handler_id_anchor_t *anchor, afw_xctx_t *xctx) |
Register an authorization handler id anchor. More... | |
const afw_authorization_handler_id_anchor_t * | afw_environment_get_authorization_handler_id (const afw_utf8_t *authorization_handler_id, afw_xctx_t *xctx) |
Get the authorization handler id anchor associated with authorization handler id. More... | |
void | afw_environment_create_and_register_conf_type (const afw_utf8_t *conf_type_id, afw_environment_conf_type_create_cede_p_t create, const afw_utf8_t *title, const afw_utf8_t *description, const afw_utf8_t *id_property_name, const afw_utf8_t *id_registry_type_id, const afw_utf8_t *id_runtime_object_type_id, const afw_utf8_t *subtype_property_name, const afw_utf8_t *subtype_registry_type_id, const afw_utf8_t *subtype_runtime_object_type_id, afw_boolean_t is_unique, afw_xctx_t *xctx) |
Create and register a configuration (conf) type. More... | |
const afw_environment_conf_type_t * | afw_environment_get_conf_type (const afw_utf8_t *type, afw_xctx_t *xctx) |
Get the conf_type associated with type. More... | |
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. More... | |
void | afw_environment_register_content_type (const afw_utf8_t *type, const afw_content_type_t *content_type, afw_xctx_t *xctx) |
Register an content type. More... | |
const afw_content_type_t * | afw_environment_get_content_type (const afw_utf8_t *type, afw_xctx_t *xctx) |
Get the afw_content_type struct associated with a content type. More... | |
void | afw_environment_register_context_type (const afw_utf8_t *context_type_id, const afw_object_t *context_type_object, afw_xctx_t *xctx) |
Register an context type. More... | |
const afw_object_t * | afw_environment_get_context_type (const afw_utf8_t *context_type_id, afw_xctx_t *xctx) |
Get the afw_environment_context_type struct associated with a context type. More... | |
void | afw_environment_register_data_type (const afw_utf8_t *data_type_id, const afw_data_type_t *data_type, afw_xctx_t *xctx) |
Register a data type. More... | |
void | afw_environment_register_data_types (const afw_data_type_t *const *data_types, afw_xctx_t *xctx) |
Register a NULL terminated list of data types. More... | |
const afw_data_type_t * | afw_environment_get_data_type (const afw_utf8_t *type, afw_xctx_t *xctx) |
Get the data_type associated with configuration entry type. More... | |
void | afw_environment_register_error_rv_decoder (const afw_utf8_t *rv_source_id, afw_environment_error_rv_decoder_z_t rv_decoder, afw_xctx_t *xctx) |
Register an error rv decoder. More... | |
afw_environment_error_rv_decoder_z_t | afw_environment_get_error_rv_decoder (const afw_utf8_t *rv_source_id, afw_xctx_t *xctx) |
Get the error rv decoder function associated with rv_source_id. More... | |
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. More... | |
void | afw_environment_register_function (const afw_utf8_t *function_id, const afw_value_function_definition_t *function, afw_xctx_t *xctx) |
Register a function. More... | |
void | afw_environment_register_functions (const afw_value_function_definition_t **functions, afw_xctx_t *xctx) |
Register a NULL terminated list of functions. More... | |
const afw_value_function_definition_t * | afw_environment_get_function (const afw_utf8_t *function_id, afw_xctx_t *xctx) |
Get the function instance associated with function id. More... | |
const afw_value_function_definition_t * | afw_environment_get_qualified_function (const afw_utf8_t *qualifier, const afw_utf8_t *name, afw_xctx_t *xctx) |
Get the qualified function instance. More... | |
const afw_value_function_definition_t * | afw_environment_registry_get_data_type_method (const afw_data_type_t *data_type, afw_integer_t dataTypeMethodNumber, afw_xctx_t *xctx) |
Get the function associated with a data type method. More... | |
void | afw_environment_register_lock (const afw_utf8_t *lock_id, const afw_lock_t *lock, afw_xctx_t *xctx) |
Register an lock. More... | |
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. More... | |
void | afw_environment_register_log_type (const afw_utf8_t *log_type, const afw_log_factory_t *log_factory, afw_xctx_t *xctx) |
Register an log factory. More... | |
const afw_log_factory_t * | afw_environment_get_log_type (const afw_utf8_t *log_type, afw_xctx_t *xctx) |
Get the log factory instance associated with log type. More... | |
void | afw_environment_register_log (const afw_utf8_t *log_id, const afw_log_t *log, afw_xctx_t *xctx) |
Register a log. More... | |
const afw_log_t * | afw_environment_get_log (const afw_utf8_t *log_id, afw_xctx_t *xctx) |
Get the log instance associated with log id. More... | |
void | afw_environment_register_policy_combining_algorithm (const afw_utf8_t *policy_combining_algorithm_id, const afw_value_function_definition_t *function, afw_xctx_t *xctx) |
Register a policy combining algorithm function. More... | |
const afw_value_function_definition_t * | afw_environment_get_policy_combining_algorithm (const afw_utf8_t *policy_combining_algorithm_id, afw_xctx_t *xctx) |
Get the function instance associated with a policy combining algorithm id. More... | |
void | afw_environment_register_request_handler_type (const afw_utf8_t *handler_type, const afw_request_handler_factory_t *request_handler_factory, afw_xctx_t *xctx) |
Register a request_handler factory. More... | |
const afw_request_handler_factory_t * | afw_environment_get_request_handler_type (const afw_utf8_t *handler_type, afw_xctx_t *xctx) |
Get the request_handler factory instance associated with handler type. More... | |
void | afw_environment_register_rule_combining_algorithm (const afw_utf8_t *rule_combining_algorithm_id, const afw_value_function_definition_t *function, afw_xctx_t *xctx) |
Register a rule combining algorithm function. More... | |
const afw_value_function_definition_t * | afw_environment_get_rule_combining_algorithm (const afw_utf8_t *rule_combining_algorithm_id, afw_xctx_t *xctx) |
Get the function instance associated with a rule combining algorithm id. More... | |
void | afw_environment_register_runtime_custom (const afw_utf8_t *object_type_id, const afw_runtime_custom_t *custom, afw_xctx_t *xctx) |
Register afw_runtime_custom_t for a custom handled runtime object type. More... | |
const afw_runtime_custom_t * | afw_environment_get_runtime_custom (const afw_utf8_t *object_type_id, afw_xctx_t *xctx) |
Get afw_runtime_custom_t for a custom handled runtime object type. More... | |
void | afw_environment_register_runtime_object_map_inf (const afw_utf8_t *object_type_id, const afw_object_inf_t *inf, afw_xctx_t *xctx) |
Register a runtime object map interface. More... | |
const afw_object_inf_t * | afw_environment_get_runtime_object_map_inf (const afw_utf8_t *object_type_id, afw_xctx_t *xctx) |
Get the interface associated with a runtime object map. More... | |
void | afw_environment_register_runtime_value_accessor (const afw_utf8_t *accessor_name, afw_runtime_value_accessor_t function, afw_xctx_t *xctx) |
Register a runtime value accessor function. More... | |
afw_runtime_value_accessor_t | afw_environment_get_runtime_value_accessor (const afw_utf8_t *accessor_name, afw_xctx_t *xctx) |
Get the interface associated with a runtime object map. More... | |
void | afw_environment_register_service (const afw_utf8_t *service_id, afw_service_t *service, afw_xctx_t *xctx) |
Register a service. More... | |
afw_service_t * | afw_environment_get_service (const afw_utf8_t *service_id, afw_xctx_t *xctx) |
Get the service instance associated with service_id. More... | |
void | afw_environment_register_service_type (const afw_utf8_t *service_type_id, const afw_service_type_t *service_type, afw_xctx_t *xctx) |
Register a service type. More... | |
const afw_service_type_t * | afw_environment_get_service_type (const afw_utf8_t *service_type_id, afw_xctx_t *xctx) |
Get the service type instance associated with service_type_id. More... | |
void | afw_environment_register_value_inf (const afw_utf8_t *value_inf_id, const afw_value_inf_t *value_inf, afw_xctx_t *xctx) |
Register a value inf. More... | |
const afw_value_inf_t * | afw_environment_get_value_inf (const afw_utf8_t *value_inf_id, afw_xctx_t *xctx) |
Get the value inf associated with a value inf id. More... | |
void | afw_environment_set_debug_fd (FILE *fd, afw_xctx_t *xctx) |
Override fd used for debug. More... | |
void | afw_environment_set_stderr_fd (FILE *fd, afw_xctx_t *xctx) |
Override fd used for stderr. More... | |
void | afw_environment_set_stdout_fd (FILE *fd, afw_xctx_t *xctx) |
Override fd used for stdout. More... | |
Adaptive Framework Environment
#define AFW_ENVIRONMENT_CREATE | ( | xctx, | |
argc, | |||
argv, | |||
environment_create_error | |||
) |
Call afw_environment_create() supplying version compiled with.
xctx | set to base xctx or NULL if returned_error points to an error. |
argc | |
argv | |
returned_error | place if error occurs while creating environment. |
parent_p | Parent pool or NULL if there is not one. |
This macro calls AFW_VERSION_ABORT_IF_NOT_COMPATIBLE() to check for compatibility. If you want to handle this situation differently, use AFW_VERSION_CHECK before AFW_ENVIRONMENT_CREATE().
Definition at line 519 of file afw_environment.h.
#define AFW_ENVIRONMENT_DEFINE_EXTENSION_IMPL | ( | ) |
Macro to put in each afw_extension implementation.
Put this after #include "afw_extension_impl_declares.h" in an implementation of the afw_extension interface. It provides the symbol used by afw_environment_load_extension() to determine the extensions id and version information.
Definition at line 277 of file afw_environment.h.
#define afw_environment_register_flag | ( | flag_id, | |
brief, | |||
description, | |||
included_by_flag_id, | |||
xctx | |||
) |
Register a flag.
flag_id. | |
brief. | |
description. | |
included_by_flag_id | or NULL (afw_flag_add_included_by() adds more) |
log_priority | to be used if this flag triggers a log message. |
xctx | of caller. |
Definition at line 1300 of file afw_environment.h.
#define AFW_ENVIRONMENT_REGISTRY_TYPE_MAP | ( | XX | ) |
Environment Core Registry Type Map.
id | of registry type |
register_additional | custom callback function or NULL |
allow_reregister | true/false |
property_name | in AdaptiveEnvironmentRegistry |
object_type_id | in afw adaptor of registered keys of this registry type |
description | of this registry type |
There must be and afw_s_ with each name in map.
The register_additional function must be defined as a static function in afw_environment.c. If register_additional is NULL, a afw_environment_registry_entry_t is created and a runtime object of the specified object_type_id is set.
These are just the core registry type. Other types can be created by calling afw_environment_create_registry_type() in an extension.
Definition at line 48 of file afw_environment.h.
typedef void*(* afw_environment_auto_register_cb_t) (const afw_utf8_t *registry_type_id, const afw_utf8_t *key, afw_xctx_t *xctx) |
Auto register callback function.
registry_type_id | |
key | |
xctx | of caller. |
A function of this type can be specified on afw_environment_create_registry_type() as auto_register parameter.
Definition at line 321 of file afw_environment.h.
typedef void(* afw_environment_conf_type_create_cede_p_t) (const afw_utf8_t *type, const afw_object_t *conf, const afw_utf8_t *source_location, const afw_pool_t *p, afw_xctx_t *xctx) |
Typedef for afw conf type create functions.
type | of conf (same as "conf" property in conf). |
conf | object. |
source_location | indicating the source of conf. |
p | ceded to handler. |
xctx | of caller. |
The p should be a multithreaded pool whose control is ceded to the thing being created. For example, for type=adaptor, the adaptor should destroy this pool when the adaptor's use count goes to zero.
Definition at line 305 of file afw_environment.h.
typedef const afw_utf8_z_t*(* afw_environment_error_rv_decoder_z_t) (int rv, afw_utf8_z_t *wa, afw_size_t wa_size) |
Typedef for error rv decoder functions.
rv | to decode. |
wa | work area that can be used to build return value. |
wa_size | work area size. |
IMPORTANT Implementation of this function must not do anything that might throw an error or change xctx->error or a recursive error producing a stack overflow will occur.
Definition at line 439 of file afw_environment.h.
typedef afw_boolean_t(* afw_environment_foreach_cb_t) (int type_number, void *data, const afw_utf8_octet_t *key_s, afw_size_t key_len, void *value, const afw_pool_t *p, afw_xctx_t *xctx) |
Callback function typedef for afw_environment_foreach().
type_number | is registry type number. |
data | passed to call of afw_environment_foreach(). |
key_s | is key->s. |
key_len | is key->len. |
value | to cast as appropriate for type_number. |
p | to use. |
xctx | of caller. |
The purpose of returning true from a callback function is to short circuit the foreach when the callback has determined that it is "complete". Unless the callback has a special purpose like this, it should always return false so that it will continue to called until the end.
Definition at line 648 of file afw_environment.h.
typedef void(* afw_environment_register_additional_cb_t) (const afw_utf8_t *registry_type_id, int type_number, const afw_utf8_t *key, const void *value, const void *register_additional_param, const void **register_additional_use, afw_xctx_t *xctx) |
Additional register callback function.
registry_type_id | |
key | |
xctx | of caller. |
A function of this type can be specified on afw_environment_create_registry_type() as register_additional parameter.
Definition at line 337 of file afw_environment.h.
void afw_environment_configure_with_object | ( | const afw_object_t * | conf, |
const afw_utf8_t * | source_location, | ||
afw_xctx_t * | xctx | ||
) |
Configure environment with a configuration entry.
conf | object. |
source_location | to associate with this entry. |
xctx | MUST be base xctx. |
Parameter source_location default to the path of the entry object.
Definition at line 21 of file afw_environment_configuration.c.
void afw_environment_configure_with_object_list | ( | const afw_list_t * | entry_list, |
const afw_utf8_t * | source_location, | ||
afw_xctx_t * | xctx | ||
) |
Configure environment with list of configuration entries.
entry_list | configuration entry list. |
source_location | to associate with this list of entries. |
xctx | MUST be base xctx. |
Parameter entry_list must contain mutable objects and persist for life of environment.
Parameter source_location default to "Configuration".
Definition at line 65 of file afw_environment_configuration.c.
afw_xctx_t* afw_environment_create | ( | unsigned int | version, |
int | argc, | ||
const char *const * | argv, | ||
const afw_error_t ** | environment_create_error | ||
) |
Create the Adaptive Framework core environment and return base xctx.
version | of Adaptive Framework core caller is compiled against. |
argc | |
argv | |
returned_error | place if error occurs while creating environment. |
Call this function once in an Adaptive Framework application to initialize the Adaptive Framework environment and create the initial base xctx. All core capabilities will be registered. See afw_environment_register_core.c for more detail.
The following are important snippets for an Adaptive Framework application that establishes an Adaptive Framework core environment and insures that it will be released.
int main(int argc, char * const * argv) { ... Only used on afw_environment_create() call ... const afw_error_t *create_error;
... xctx returned from AFW_ENVIRONMENT_CREATE() call ... afw_xctx_t *xctx;
... Create Adaptive Framework environment using helper macro ... AFW_ENVIRONMENT_CREATE(xctx, argc, argv, &create_error); if (!xctx) { afw_error_print(xctx->env->stderr_fd, create_error); return -1; }
... Body of app protected by AFW_TRY ... AFW_TRY { ... Adaptive Framework application code ... ... Use break to leave AFW_TRY, not goto or return. }
... Catch other errors that need special handling ...
... Print any other errors. ... AFW_CATCH_UNHANDLED{ afw_error_print(xctx->env->stderr_fd, AFW_ERROR_THROWN); rv = -1; }
... Makes sure environment is released ... AFW_FINALLY { afw_environment_release(xctx);
... Special case: xctx is gone, so return before AFW_ENDTRY. ... return rv; }
AFW_ENDTRY; }
Definition at line 222 of file afw_environment.c.
void afw_environment_create_and_register_conf_type | ( | const afw_utf8_t * | conf_type_id, |
afw_environment_conf_type_create_cede_p_t | create, | ||
const afw_utf8_t * | title, | ||
const afw_utf8_t * | description, | ||
const afw_utf8_t * | id_property_name, | ||
const afw_utf8_t * | id_registry_type_id, | ||
const afw_utf8_t * | id_runtime_object_type_id, | ||
const afw_utf8_t * | subtype_property_name, | ||
const afw_utf8_t * | subtype_registry_type_id, | ||
const afw_utf8_t * | subtype_runtime_object_type_id, | ||
afw_boolean_t | is_unique, | ||
afw_xctx_t * | xctx | ||
) |
Create and register a configuration (conf) type.
conf_type_id | of configuration tpe. |
create | function to call. @parm id_property_name for instances of this conf type. @parm id_registry_type_id for instances of this conf type. @parm id_runtime_object_type_id for instances of this conf type. @parm subtype_property_name for instances of this conf type. @parm subtype_registry_type_id for instances of this conf type. @parm subtype_runtime_object_type_id for instances of this conf type |
related_object_type_id | |
id_property_name | of the id property for this type or NULL. |
subtype_property_name | of the subtype property for this type or NULL. |
title | of configuration type. |
description | of configuration type. |
is_unique | indicate this type can only occur once. |
xctx | of caller. |
For adaptor, id_property_name is "adaptorId' and subtype_property_name is "adaptor_type".
If related_object_type_id is not NULL, the uri of the related object will be /afw/<related_object_type_id>/<id_property_name
value>
Definition at line 867 of file afw_environment.c.
const afw_object_t* afw_environment_create_environment_variables_object | ( | afw_boolean_t | preload_variables, |
afw_xctx_t * | xctx | ||
) |
Create a readonly object for accessing environment variables.
preload_variables | should be true if using threads or false otherwise. |
xctx | of caller. |
If not using threads, preload_variables false is better since the property associated with each environment variable is only create if accessed. If threads are being using, make sure preload_variables is true because the object is not threadsafe otherwise.
Definition at line 76 of file afw_environment_variables_object.c.
int afw_environment_create_registry_type | ( | const afw_utf8_t * | registry_type_id, |
const afw_utf8_t * | property_name, | ||
const afw_utf8_t * | object_type_id, | ||
const afw_utf8_t * | description, | ||
afw_boolean_t | allow_reregister, | ||
afw_environment_auto_register_cb_t | auto_register, | ||
afw_environment_register_additional_cb_t | register_additional, | ||
void * | register_additional_param, | ||
afw_xctx_t * | xctx | ||
) |
Create a new registry type.
registry_type_id | name. |
property_name | is a unique name for this type associated with key. |
description | of registry type. |
object_type_id | of objects in afw adaptor for entries of this type. |
allow_reregister | of a key by replacing value. |
auto_register | is function to call if key is not already registered. |
register_additional | function pointer or NULL. Required if |
register_additional_param | or NULL. |
xctx | of caller. |
Create a new registry type and return its number.
Definition at line 451 of file afw_environment.c.
void afw_environment_foreach | ( | int | type_number, |
afw_environment_foreach_cb_t | callback, | ||
void * | data, | ||
const afw_pool_t * | p, | ||
afw_xctx_t * | xctx | ||
) |
Call a callback function for each entry of a registry type.
type_number | is registry type number. |
callback | function. |
data | to pass to callback. |
p | to pass to callback. |
xctx | of caller. |
Definition at line 824 of file afw_environment.c.
const afw_adaptor_id_anchor_t* afw_environment_get_adaptor_id | ( | const afw_utf8_t * | adaptor_id, |
afw_xctx_t * | xctx | ||
) |
Get the adaptor id anchor associated with adaptor id.
adaptor_id. | |
xctx | of caller. |
Definition at line 919 of file afw_environment.h.
const afw_adaptor_factory_t* afw_environment_get_adaptor_type | ( | const afw_utf8_t * | adaptor_type, |
afw_xctx_t * | xctx | ||
) |
Get the adaptor factory instance associated with adaptor type.
adaptor_type | of adaptor factory instance. |
xctx | of caller. |
Definition at line 881 of file afw_environment.h.
const afw_authorization_handler_id_anchor_t* afw_environment_get_authorization_handler_id | ( | const afw_utf8_t * | authorization_handler_id, |
afw_xctx_t * | xctx | ||
) |
Get the authorization handler id anchor associated with authorization handler id.
authorization_handler_id. | |
xctx | of caller. |
Definition at line 999 of file afw_environment.h.
const afw_authorization_handler_factory_t* afw_environment_get_authorization_handler_type | ( | const afw_utf8_t * | authorization_handler_type, |
afw_xctx_t * | xctx | ||
) |
Get the authorization_handler factory instance associated with authorization handler type.
authorization_handler_type | of authorization handler factory instance. |
xctx | of caller. |
Definition at line 957 of file afw_environment.h.
const afw_environment_conf_type_t* afw_environment_get_conf_type | ( | const afw_utf8_t * | type, |
afw_xctx_t * | xctx | ||
) |
Get the conf_type associated with type.
type | is conf type. |
xctx | of caller. |
Definition at line 1059 of file afw_environment.h.
const afw_content_type_t* afw_environment_get_content_type | ( | const afw_utf8_t * | type, |
afw_xctx_t * | xctx | ||
) |
Get the afw_content_type struct associated with a content type.
type | configuration entry type. |
xctx | of caller. |
Definition at line 1156 of file afw_environment.h.
const afw_object_t* afw_environment_get_context_type | ( | const afw_utf8_t * | context_type_id, |
afw_xctx_t * | xctx | ||
) |
Get the afw_environment_context_type struct associated with a context type.
context_type_id. | |
xctx | of caller. |
Definition at line 1196 of file afw_environment.h.
const afw_data_type_t* afw_environment_get_data_type | ( | const afw_utf8_t * | type, |
afw_xctx_t * | xctx | ||
) |
Get the data_type associated with configuration entry type.
type | configuration entry type. |
xctx | of caller. |
Definition at line 1241 of file afw_environment.h.
afw_environment_error_rv_decoder_z_t afw_environment_get_error_rv_decoder | ( | const afw_utf8_t * | rv_source_id, |
afw_xctx_t * | xctx | ||
) |
Get the error rv decoder function associated with rv_source_id.
rv_source_id | see rv_source_id_z in afw_error_t. |
xctx | of caller. |
Definition at line 1280 of file afw_environment.h.
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.
flag_id | of flag. |
xctx | of caller. |
Definition at line 1314 of file afw_environment.h.
const afw_value_function_definition_t* afw_environment_get_function | ( | const afw_utf8_t * | function_id, |
afw_xctx_t * | xctx | ||
) |
Get the function instance associated with function id.
function_id | of function instance. |
xctx | of caller. |
Definition at line 1361 of file afw_environment.h.
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.
lock_id | of the lock. |
xctx | of caller. |
Definition at line 1427 of file afw_environment.h.
const afw_log_t* afw_environment_get_log | ( | const afw_utf8_t * | log_id, |
afw_xctx_t * | xctx | ||
) |
Get the log instance associated with log id.
log_id | of log instance. |
xctx | of caller. |
Definition at line 1508 of file afw_environment.h.
const afw_log_factory_t* afw_environment_get_log_type | ( | const afw_utf8_t * | log_type, |
afw_xctx_t * | xctx | ||
) |
Get the log factory instance associated with log type.
log_type | of log factory instance. |
xctx | of caller. |
Definition at line 1466 of file afw_environment.h.
const afw_value_function_definition_t* afw_environment_get_policy_combining_algorithm | ( | const afw_utf8_t * | policy_combining_algorithm_id, |
afw_xctx_t * | xctx | ||
) |
Get the function instance associated with a policy combining algorithm id.
policy_combining_algorithm_id | of function instance. |
xctx | of caller. |
Definition at line 1549 of file afw_environment.h.
const afw_value_function_definition_t* afw_environment_get_qualified_function | ( | const afw_utf8_t * | qualifier, |
const afw_utf8_t * | name, | ||
afw_xctx_t * | xctx | ||
) |
Get the qualified function instance.
qualifier | or NULL. |
name | of function/method. |
xctx | of caller. |
Definition at line 1462 of file afw_environment.c.
const afw_environment_registry_type_t* afw_environment_get_registry_type | ( | const afw_utf8_t * | property_name, |
afw_xctx_t * | xctx | ||
) |
Get the registry type associated with property name.
property_name | associated with registry type. |
xctx | of caller. |
Gets the registry type number assigned to a registry type name.
Definition at line 806 of file afw_environment.h.
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.
registry_type_id. | |
load_extension | if needed. |
xctx | of caller. |
Gets the registry type number assigned to a registry type name.
Definition at line 513 of file afw_environment.c.
const afw_environment_registry_type_t* afw_environment_get_registry_type_by_number | ( | int | registry_type_number, |
afw_xctx_t * | xctx | ||
) |
Get the registry type associated with a registry type number.
registry_type_number. | |
xctx | of caller. |
Gets the registry type number assigned to a registry type name.
Definition at line 549 of file afw_environment.c.
const afw_request_handler_factory_t* afw_environment_get_request_handler_type | ( | const afw_utf8_t * | handler_type, |
afw_xctx_t * | xctx | ||
) |
Get the request_handler factory instance associated with handler type.
request_handler_type | of request_handler factory instance. |
xctx | of caller. |
Definition at line 1591 of file afw_environment.h.
const afw_value_function_definition_t* afw_environment_get_rule_combining_algorithm | ( | const afw_utf8_t * | rule_combining_algorithm_id, |
afw_xctx_t * | xctx | ||
) |
Get the function instance associated with a rule combining algorithm id.
rule_combining_algorithm_id | of function instance. |
xctx | of caller. |
Definition at line 1633 of file afw_environment.h.
const afw_runtime_custom_t* afw_environment_get_runtime_custom | ( | const afw_utf8_t * | object_type_id, |
afw_xctx_t * | xctx | ||
) |
Get afw_runtime_custom_t for a custom handled runtime object type.
object_type_id | of the afw object type. |
xctx | of caller. |
Definition at line 1673 of file afw_environment.h.
const afw_object_inf_t* afw_environment_get_runtime_object_map_inf | ( | const afw_utf8_t * | object_type_id, |
afw_xctx_t * | xctx | ||
) |
Get the interface associated with a runtime object map.
object_type_id | used to identify interface. |
xctx | of caller. |
Definition at line 1713 of file afw_environment.h.
afw_runtime_value_accessor_t afw_environment_get_runtime_value_accessor | ( | const afw_utf8_t * | accessor_name, |
afw_xctx_t * | xctx | ||
) |
Get the interface associated with a runtime object map.
accessor_name | used to identify accessor. |
xctx | of caller. |
Definition at line 1751 of file afw_environment.h.
afw_service_t* afw_environment_get_service | ( | const afw_utf8_t * | service_id, |
afw_xctx_t * | xctx | ||
) |
Get the service instance associated with service_id.
service_id | of service instance. |
xctx | of caller. |
Definition at line 1790 of file afw_environment.h.
const afw_service_type_t* afw_environment_get_service_type | ( | const afw_utf8_t * | service_type_id, |
afw_xctx_t * | xctx | ||
) |
Get the service type instance associated with service_type_id.
service_type_id | of service type instance. |
xctx | of caller. |
Definition at line 1831 of file afw_environment.h.
void* afw_environment_get_singleton | ( | const afw_utf8_t * | singleton_key, |
afw_xctx_t * | xctx | ||
) |
Get the singleton value.
singleton_key | used to identify the singleton. |
xctx | of caller. |
Definition at line 848 of file afw_environment.h.
const afw_value_inf_t* afw_environment_get_value_inf | ( | const afw_utf8_t * | value_inf_id, |
afw_xctx_t * | xctx | ||
) |
Get the value inf associated with a value inf id.
value_inf_id | of interface implementation. |
xctx | of caller. |
Definition at line 1872 of file afw_environment.h.
const afw_extension_t* 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.
extension_id | id of extension or NULL. |
module_path | Path to extension dso or NULL. |
properties | object. |
xctx | of caller. |
extension | interface |
The properties object can supply extension_id with the "extensionId" property and module_path with the modulePath property. If either is supplied in the object as well as parameters, their values much match.
Either extension_id or module_path must be available.
If module_path is NULL and there is not a "modulePath" property in properties, the extension path must be registered for the extension_id.
After the DSO is loaded, the environment extension initialize method is called.
Extensions are normally loaded by afw_environment_configure_with_object_list().
If properties is not specified, one is created. The extensionId and modulePath properties are set. The path of the properties object is set to /afw/_AdaptiveExtension_/<extension_id>
and set as a run time object.
Definition at line 922 of file afw_environment.c.
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.
properties | to prepare. |
xctx | of caller. |
This function should be called by the create function of the conf_type. It validates, normalizes, and compiles properties based on the appropriate object type.
The p of properties is used for the result.
The "type" parameter in properties is used to call afw_environment_get_conf_type() to get the conf_type.
The object type used is:
/afw/_AdaptiveObjectType_/_AdaptiveConf_<type>[_<subtype>]
Where:
<type>
is the value of properties.type
[_<subtype>]
is present if conf_type has a subtype_property_name, in which case, <subtype>
will be the value of the subtype_property_name in properties.
The returned object will be an entity with a path of:
/afw/<object type>/<id>
Where:
<object type> is object type described above.
<id>
is the value of the id_property_name for the conf_type from properties.
Several properties in the properties parameter object may be changed plus return in the result:
1) If sourceLocation is not already set in properties, one will be set in the properties that includes the available type, subtype, and id.
2) If a type expects an id but it is not provided, it will be set to the subtype in properties.
Other than these 2, the result will be a new object that may reuse values from properties, but will have validated, normalized, and compiled values.
Definition at line 156 of file afw_environment_configuration.c.
void afw_environment_register_adaptor_id | ( | const afw_utf8_t * | adaptor_id, |
const afw_adaptor_id_anchor_t * | anchor, | ||
afw_xctx_t * | xctx | ||
) |
Register an adaptor id anchor.
adaptor_id | being registered. |
anchor | instance to register. |
xctx | of caller. |
Definition at line 899 of file afw_environment.h.
afw_environment_register_adaptor_type | ( | const afw_utf8_t * | adaptor_type, |
const afw_adaptor_factory_t * | adaptor_factory, | ||
afw_xctx_t * | xctx | ||
) |
Register an adaptor factory.
adaptor_type | used to identify adaptor factory being registered. |
adaptor_factory | instance to register. |
xctx | of caller. |
This also registers flag trace:adaptor_type:<adaptor_type>
where <adaptor_type>
is the supplied adaptor_type.
Definition at line 1577 of file afw_environment.c.
void afw_environment_register_authorization_handler_id | ( | const afw_utf8_t * | authorization_handler_id, |
const afw_authorization_handler_id_anchor_t * | anchor, | ||
afw_xctx_t * | xctx | ||
) |
Register an authorization handler id anchor.
authorization_handler_id | being registered. |
anchor | instance to register. |
xctx | of caller. |
Definition at line 977 of file afw_environment.h.
afw_environment_register_authorization_handler_type | ( | const afw_utf8_t * | authorization_handler_type, |
const afw_authorization_handler_factory_t * | authorization_handler_factory, | ||
afw_xctx_t * | xctx | ||
) |
Register an authorization handler factory.
authorization_handler_type | used to identify authorization handler factory being registered. |
authorization_handler_factory | instance to register. |
xctx | of caller. |
This also registers flag trace:authorization_handler_type:<authorization_handler_type>
where <authorization_handler_type>
is the supplied authorization_handler_type.
Definition at line 1636 of file afw_environment.c.
void afw_environment_register_content_type | ( | const afw_utf8_t * | type, |
const afw_content_type_t * | content_type, | ||
afw_xctx_t * | xctx | ||
) |
Register an content type.
type | content type |
Content | type struct. |
xctx | of caller. |
Definition at line 1135 of file afw_environment.h.
void afw_environment_register_context_type | ( | const afw_utf8_t * | context_type_id, |
const afw_object_t * | context_type_object, | ||
afw_xctx_t * | xctx | ||
) |
Register an context type.
context_type_id. | |
context | type object. |
xctx | of caller. |
Definition at line 1174 of file afw_environment.h.
void afw_environment_register_data_type | ( | const afw_utf8_t * | data_type_id, |
const afw_data_type_t * | data_type, | ||
afw_xctx_t * | xctx | ||
) |
Register a data type.
data_type_id | Data type id. |
data_type | Data type instance. |
xctx | of caller. |
Definition at line 1149 of file afw_environment.c.
void afw_environment_register_data_types | ( | const afw_data_type_t *const * | data_types, |
afw_xctx_t * | xctx | ||
) |
Register a NULL terminated list of data types.
data_types | NULL terminated list of afw_data_type_t *. |
xctx | of caller. |
Definition at line 1546 of file afw_environment.c.
void afw_environment_register_error_rv_decoder | ( | const afw_utf8_t * | rv_source_id, |
afw_environment_error_rv_decoder_z_t | rv_decoder, | ||
afw_xctx_t * | xctx | ||
) |
Register an error rv decoder.
rv_source_id | see rv_source_id_z in afw_error_t. |
rv_decoder | function. |
xctx | of caller. |
Definition at line 1259 of file afw_environment.h.
void afw_environment_register_function | ( | const afw_utf8_t * | function_id, |
const afw_value_function_definition_t * | function, | ||
afw_xctx_t * | xctx | ||
) |
Register a function.
function_id | used to identify function being registered. |
function | instance to register. |
xctx | of caller. |
If function->inf is NULL, a copy of the function will be created with with inf and data_type supplied.
Definition at line 1295 of file afw_environment.c.
void afw_environment_register_functions | ( | const afw_value_function_definition_t ** | functions, |
afw_xctx_t * | xctx | ||
) |
Register a NULL terminated list of functions.
functions | NULL terminated list of afw_value_function_definition_t *. |
xctx | of caller. |
Definition at line 1562 of file afw_environment.c.
void afw_environment_register_lock | ( | const afw_utf8_t * | lock_id, |
const afw_lock_t * | lock, | ||
afw_xctx_t * | xctx | ||
) |
Register an lock.
lock_id | of the lock. |
lock | instance to register. |
xctx | of caller. |
Definition at line 1407 of file afw_environment.h.
void afw_environment_register_log | ( | const afw_utf8_t * | log_id, |
const afw_log_t * | log, | ||
afw_xctx_t * | xctx | ||
) |
Register a log.
log_id | used to identify log being registered. |
log | instance to register. |
xctx | of caller. |
If you want this log to be called for all environment log requests, call afw_log_add_to_environment() instead.
Definition at line 1487 of file afw_environment.h.
void afw_environment_register_log_type | ( | const afw_utf8_t * | log_type, |
const afw_log_factory_t * | log_factory, | ||
afw_xctx_t * | xctx | ||
) |
Register an log factory.
log_type | used to identify log factory being registered. |
log_factory | instance to register. |
xctx | of caller. |
Definition at line 1445 of file afw_environment.h.
void afw_environment_register_policy_combining_algorithm | ( | const afw_utf8_t * | policy_combining_algorithm_id, |
const afw_value_function_definition_t * | function, | ||
afw_xctx_t * | xctx | ||
) |
Register a policy combining algorithm function.
policy_combining_algorithm_id | used to identify algorithm. |
function | struct to register. |
xctx | of caller. |
Definition at line 1527 of file afw_environment.h.
void afw_environment_register_request_handler_type | ( | const afw_utf8_t * | handler_type, |
const afw_request_handler_factory_t * | request_handler_factory, | ||
afw_xctx_t * | xctx | ||
) |
Register a request_handler factory.
handler_type | used to identify request_handler factory being registered. |
request_handler_factory | instance to register. |
xctx | of caller. |
Definition at line 1569 of file afw_environment.h.
void afw_environment_register_rule_combining_algorithm | ( | const afw_utf8_t * | rule_combining_algorithm_id, |
const afw_value_function_definition_t * | function, | ||
afw_xctx_t * | xctx | ||
) |
Register a rule combining algorithm function.
rule_combining_algorithm_id | used to identify algorithm. |
function | struct to register. |
xctx | of caller. |
Definition at line 1611 of file afw_environment.h.
void afw_environment_register_runtime_custom | ( | const afw_utf8_t * | object_type_id, |
const afw_runtime_custom_t * | custom, | ||
afw_xctx_t * | xctx | ||
) |
Register afw_runtime_custom_t for a custom handled runtime object type.
object_type_id | of the afw object type being registered. |
custom | handling information. |
xctx | of caller. |
Definition at line 1653 of file afw_environment.h.
void afw_environment_register_runtime_object_map_inf | ( | const afw_utf8_t * | object_type_id, |
const afw_object_inf_t * | inf, | ||
afw_xctx_t * | xctx | ||
) |
Register a runtime object map interface.
object_type_id | used to identify interface being registered. |
inf | pointer associated with object map. |
xctx | of caller. |
Definition at line 1693 of file afw_environment.h.
void afw_environment_register_runtime_value_accessor | ( | const afw_utf8_t * | accessor_name, |
afw_runtime_value_accessor_t | function, | ||
afw_xctx_t * | xctx | ||
) |
Register a runtime value accessor function.
accessor_name | used to identify accessor being registered. |
function | associated with this accessor. |
xctx | of caller. |
Definition at line 1731 of file afw_environment.h.
void afw_environment_register_service | ( | const afw_utf8_t * | service_id, |
afw_service_t * | service, | ||
afw_xctx_t * | xctx | ||
) |
Register a service.
service_id | used to identify service being registered. |
service | instance. |
xctx | of caller. |
Definition at line 1770 of file afw_environment.h.
void afw_environment_register_service_type | ( | const afw_utf8_t * | service_type_id, |
const afw_service_type_t * | service_type, | ||
afw_xctx_t * | xctx | ||
) |
Register a service type.
service_type_id | used to identify service type being registered. |
service_type | instance. |
xctx | of caller. |
Definition at line 1809 of file afw_environment.h.
void afw_environment_register_singleton | ( | const afw_utf8_t * | singleton_key, |
const void * | void_ptr, | ||
afw_xctx_t * | xctx | ||
) |
Register an singleton.
singleton_key | used to identify the singleton being registered. |
void_ptr | void pointer to singleton value. |
xctx | of caller. |
Singletons are useful for associating a name with a major struct or object that needs to be accessed across an AFW application.
Definition at line 828 of file afw_environment.h.
void afw_environment_register_value_inf | ( | const afw_utf8_t * | value_inf_id, |
const afw_value_inf_t * | value_inf, | ||
afw_xctx_t * | xctx | ||
) |
Register a value inf.
value_inf_id | used to identify the value inf being registered. |
value_inf | pointer to value inf. |
xctx | of caller. |
value_inf_id should be the same as inf->rti->implementation_id
Definition at line 1852 of file afw_environment.h.
void* 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.
type_number | registry type number. |
key | associated with value. |
xctx | of caller. |
Definition at line 742 of file afw_environment.c.
const afw_value_function_definition_t* afw_environment_registry_get_data_type_method | ( | const afw_data_type_t * | data_type, |
afw_integer_t | dataTypeMethodNumber, | ||
afw_xctx_t * | xctx | ||
) |
Get the function associated with a data type method.
data_type | to check. |
dataTypeMethodNumber | to retrieve. |
xctx | of caller. |
Definition at line 1508 of file afw_environment.c.
void* afw_environment_registry_get_without_xctx | ( | const afw_environment_t * | env, |
int | type_number, | ||
const afw_utf8_t * | key | ||
) |
Limited get the value associated with a key for a registry type.
env | pointer to environment. |
type_number | registry type number. |
key | associated with value. |
The is a limited version of afw_environment_registry_get() and should only be used when xctx is not available. It will return NULL on any error condition and will not check for extensions that might provide support for the type_number or do auto register.
afw_boolean_t afw_environment_registry_key_exists | ( | int | type_number, |
const afw_utf8_t * | key, | ||
afw_xctx_t * | xctx | ||
) |
Check to see if a key exists.
type_number | registry type number. |
key | associated with value. |
xctx | of caller. |
Definition at line 709 of file afw_environment.c.
afw_environment_registry_object_get_current | ( | afw_xctx_t * | xctx | ) |
Get current environment registry object.
xctx | of caller. |
Definition at line 52 of file afw_environment_registry_object.c.
void afw_environment_registry_register | ( | int | type_number, |
const afw_utf8_t * | key, | ||
const void * | value, | ||
afw_xctx_t * | xctx | ||
) |
Register a value by key for a registry type.
type_number | registry type number. |
key | to associate with value. |
value | to associate with key. |
xctx | of caller. |
Definition at line 574 of file afw_environment.c.
void afw_environment_release | ( | afw_xctx_t * | xctx | ) |
Create the Adaptive Framework core environment and return base xctx.
xctx | returned from afw_environment_create(). |
Definition at line 442 of file afw_environment.c.
void afw_environment_set_debug_fd | ( | FILE * | fd, |
afw_xctx_t * | xctx | ||
) |
Override fd used for debug.
fd | to use. |
xctx | of caller. |
If not set, stderr is used.
Definition at line 1694 of file afw_environment.c.
void afw_environment_set_stderr_fd | ( | FILE * | fd, |
afw_xctx_t * | xctx | ||
) |
Override fd used for stderr.
fd | to use. |
xctx | of caller. |
If not set, stderr is used.
Definition at line 1704 of file afw_environment.c.
void afw_environment_set_stdout_fd | ( | FILE * | fd, |
afw_xctx_t * | xctx | ||
) |
Override fd used for stdout.
fd | to use. |
xctx | of caller. |
If not set, stdout is used.
Definition at line 1714 of file afw_environment.c.