Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Fields
afw_environment_s Struct Reference

Struct for typedef afw_environment_t defined in afw_common.h. More...

#include <afw_common.h>

Data Fields

const afw_pool_tp
 Pool used to hold environment.
 
union {
   afw_utf8_t   program_name
 
   const afw_utf8_z_t *   program_name_z
 
}; 
 Program name.
 
const afw_object_tinitial_environment_variables
 Environment variables at environment create.
 
const afw_adaptor_tafw_adaptor
 Adaptive framework core adaptor.
 
const afw_adaptor_tconf_adaptor
 Adaptor for application.confAdaptorId or NULL.
 
afw_utf8_t application_id
 The id of the application.
 
const afw_object_tapplication_object
 Application object - /afw/_AdaptiveApplication_/current.
 
const afw_object_tapplication_qualified_variables
 
const afw_object_troot_file_paths
 rootFilePaths - /afw/_AdaptiveApplication_/current/rootFilePaths.
 
const afw_utf8_tlayout_adaptor_id
 Custom layout adaptor or NULL.
 
const afw_log_tlog
 Director log. This log will direct to other logs.
 
FILE * debug_fd
 Open file descriptor used for debug writes. Default stderr.
 
FILE * stderr_fd
 Open file descriptor used for writing error output. Default stderr.
 
FILE * stdout_fd
 Open file descriptor used for writing standard output. Default stdout.
 
afw_double_t infinity
 Double infinity.
 
const afw_value_tinfinity_value
 Double infinity value.
 
afw_double_t minus_infinity
 Double minus infinity.
 
const afw_value_tminus_infinity_value
 Double minus infinity value.
 
afw_double_t NaN
 Double NaN.
 
const afw_value_tNaN_value
 Double NaN value.
 
const afw_authorization_control_tauthorization_control
 Used by authorization.
 
const afw_function_environment_tfunction_environment
 Used by function execution.
 
afw_size_t evaluation_stack_initial_count
 initial_count used to create xctx's evaluation stack.
 
afw_size_t evaluation_stack_maximum_count
 maximum_count used to create xctx's evaluation stack.
 
afw_log_priority_mask_t log_mask
 Copy of director log's mask for short circuit tests.
 
AFW_ATOMIC afw_integer_t pool_number
 Used to give unique number for pool.
 
afw_boolean_t terminating
 Indicates that environment is terminating.
 
const afw_lock_tenvironment_lock
 Lock for whole environment.
 
const afw_lock_tmultithreaded_pool_lock
 Lock used internal to afw_pool.c.
 
const afw_lock_tadaptor_id_anchor_lock
 Lock for protecting changes to adaptor id anchors.
 
const afw_lock_rw_tauthorization_handler_id_anchor_rw_lock
 Lock for protecting changes to authorization handler id anchors. More...
 
const afw_lock_tactive_log_list_lock
 Lock for protecting changes to active log list.
 
const afw_lock_tflags_lock
 Lock for protecting changes to flags (internal to afw_flag.c).
 
AFW_ATOMIC afw_size_t flags_count_allocated
 The number of flags allocated in global_flags.
 
AFW_ATOMIC afw_size_t flags_count_registered
 The number of flags registered.
 
AFW_ATOMIC const afw_boolean_tdefault_flags
 Default flags array indexed by flag_index. More...
 
const afw_flag_t *AFW_ATOMIC const * flag_by_index
 Flag struct indexed by flag_index. More...
 
afw_size_t flag_index_debug_function_active
 Flag index of debug:function_active.
 
afw_size_t flag_index_debug_function_active_detail
 Flag index of debug:function_active:detail.
 
afw_size_t flag_index_debug_pool
 Flag index of debug:pool.
 
afw_size_t flag_index_debug_pool_detail
 Flag index of debug:pool:detail.
 
afw_size_t flag_index_response_error_backtrace
 Flag index of response:error:backtrace.
 
afw_size_t flag_index_response_error_backtraceEvaluation
 Flag index of response:error:backtraceEvaluation.
 
afw_size_t flag_index_response_error_contextual
 Flag index of response:error:contextual.
 
afw_size_t flag_index_response_error_hasAdditionalDetail
 Flag index of response:error:hasAdditionalDetail.
 
afw_size_t flag_index_trace_authorization_check
 Flag index of trace:authorization:check.
 
afw_size_t flag_index_trace_authorization_check_bypass
 Flag index of trace:authorization:check:bypass.
 
afw_size_t flag_index_trace_authorization_check_detail
 Flag index of trace:authorization:check:detail.
 
afw_size_t flag_index_trace_authorization_decision
 Flag index of trace:authorization:decision.
 
afw_size_t flag_index_trace_authorization_decision_detail
 Flag index of trace:authorization:decision:detail.
 
afw_size_t flag_index_trace_evaluation_detail
 Flag index of trace:evaluation:detail.
 
afw_size_t flag_index_trace_request
 Flag index of trace:request.
 
afw_size_t flag_index_trace_request_detail
 Flag index of trace:request:detail.
 

Detailed Description

Struct for typedef afw_environment_t defined in afw_common.h.

Definition at line 1383 of file afw_common.h.

Field Documentation

◆ application_qualified_variables

const afw_object_t* application_qualified_variables

brief Application qualified variables objects of compiled variables.

Definition at line 1410 of file afw_common.h.

◆ authorization_handler_id_anchor_rw_lock

const afw_lock_rw_t* authorization_handler_id_anchor_rw_lock

Lock for protecting changes to authorization handler id anchors.

Read/write lock is needed because anchor chain can be reordered while processing handlers.

Definition at line 1488 of file afw_common.h.

◆ default_flags

AFW_ATOMIC const afw_boolean_t* default_flags

Default flags array indexed by flag_index.

Always get a copy of flag_count_registered and/or flag_count_allocated first. This may change to a larger set of flags if allocated is not large enough to hold a new flag registration.

Normally this will not be accessed directly since this pointer is copied to xctx->flags.

Definition at line 1519 of file afw_common.h.

◆ flag_by_index

const afw_flag_t* AFW_ATOMIC const* flag_by_index

Flag struct indexed by flag_index.

Always get a copy of flag_count_registered and/or flag_count_allocated first. This may change to a larger set of flags if allocated is not large enough to hold a new flag registration.

Definition at line 1528 of file afw_common.h.


The documentation for this struct was generated from the following file: