configuration.c File Reference

Configuration module implementation file. More...

#include "data_types.h"
#include "memory.h"
#include "configuration.h"
#include "log_util.h"
#include "definitions.h"
#include "mcl/mcl_configuration.h"
Include dependency graph for configuration.c:

Go to the source code of this file.

Functions

E_MCL_ERROR_CODE mcl_configuration_initialize (mcl_configuration_t **configuration)
 
mcl_configuration_tmcl_new_configuration ()
 
E_MCL_ERROR_CODE mcl_configuration_destroy (mcl_configuration_t **configuration)
 

Detailed Description

Configuration module implementation file.


Date
Aug 3, 2016

Definition in file configuration.c.

Function Documentation

E_MCL_ERROR_CODE mcl_configuration_destroy ( mcl_configuration_t **  configuration)

This function destroys the mcl_configuration_t type object.

Parameters
[in]configurationData structure holding the configuration parameters.
Returns

Definition at line 66 of file configuration.c.

References ASSERT_NOT_NULL, DEBUG_ENTRY, DEBUG_LEAVE, MCL_FREE, MCL_NULL, and MCL_OK.

E_MCL_ERROR_CODE mcl_configuration_initialize ( mcl_configuration_t **  configuration)

This function initializes a new mcl_configuration_t data structure with default values and returns error code.

Parameters
[out]configurationData structure holding the configuration parameters.
Returns

Definition at line 21 of file configuration.c.

References ASSERT_CODE_MESSAGE, ASSERT_NOT_NULL, DEBUG_ENTRY, DEBUG_LEAVE, DEFAULT_HTTP_PAYLOAD_SIZE, DEFAULT_HTTP_REQUEST_TIMEOUT, MCL_NEW, MCL_NULL, MCL_OK, MCL_OUT_OF_MEMORY, MCL_PROXY_UNKNOWN, and MCL_SECURITY_SHARED_SECRET.

Referenced by mcl_new_configuration().

Here is the caller graph for this function:

mcl_configuration_t* mcl_new_configuration ( )

This function creates a new mcl_configuration_t data structure with default values and returns a pointer to the new data structure.

Returns
Pointer to mcl_configuration_t data structure.

Definition at line 54 of file configuration.c.

References DEBUG_ENTRY, DEBUG_LEAVE, mcl_configuration_initialize(), and MCL_NULL.

Here is the call graph for this function: