Classes | |
struct | axis2_environment |
Axis2 Environment struct. More... | |
Defines | |
#define | AXIS2_LOG(env, message) axis2_env_write_log (env,message) |
#define | AXIS2_ENV_CHECK(env, error_return) |
Typedefs | |
typedef axis2_environment | axis2_env_t |
Axis2 Environment struct. | |
Functions | |
axis2_env_t * | axis2_env_create (axis2_allocator_t *allocator) |
axis2_env_t * | axis2_env_create_with_error_stream (axis2_allocator_t *allocator, axis2_error_t *error, axis2_stream_t *stream) |
axis2_env_t * | axis2_env_create_with_error_stream_log (axis2_allocator_t *allocator, axis2_error_t *error, axis2_stream_t *stream, axis2_log_t *log) |
axis2_status_t | axis2_env_free (axis2_env_t *env) |
axis2_status_t | axis2_env_enable_log (axis2_env_t **env, axis2_bool_t enable) |
axis2_status_t | axis2_env_check_status (axis2_env_t **env) |
axis2_status_t | axis2_env_write_log (axis2_env_t **env, const char *message) |
|
Value: if(!env || !(*env)) \ { \ axis2_allocator_t *allocator = axis2_allocator_init (NULL); \ *env = axis2_env_create (allocator); \ AXIS2_ERROR_SET_STATUS_CODE((*env)->error, AXIS2_CRTICAL_FAILURE); \ AXIS2_ERROR_SET_ERROR_NUMBER((*env)->error, \ AXIS2_ERROR_ENVIRONMENT_IS_NULL); \ return error_return; \ } \ else \ { \ AXIS2_ERROR_SET_STATUS_CODE((*env)->error, AXIS2_SUCCESS); \ } |
|
Axis2 Environment struct. Environment acts as a container for error, log, memory allocator and other routines |
|
Checks the status code of environment |
|
Creates an environment struct. Users of axis2 should not use this function to create an environment. He should use the other two create functions.
|
|
Creates an environment struct
|
|
Creates an environment struct
|
|
Enables logging |
|
Creates an environment struct
|
|
Writes given message to the log |