ED247 Library  VA2.3.0
Implementation of ED247-A standard
Initialization

Detailed Description

Functions

LIBED247_EXPORT ed247_status_t ed247_load_file (const char *ecic_file_path, ed247_context_t *context)
 Loading function: the entry point of the library. More...
 
LIBED247_EXPORT ed247_status_t ed247_load_content (const char *ecic_file_content, ed247_context_t *context)
 Loading function: the entry point of the library. More...
 
LIBED247_EXPORT ed247_status_t ed247_unload (ed247_context_t context)
 Unload resources linked to the given context. More...
 
LIBED247_EXPORT ed247_status_t ed247_component_set_user_data (ed247_context_t context, void *user_data)
 Assign user data to the context. More...
 
LIBED247_EXPORT ed247_status_t ed247_component_get_user_data (ed247_context_t context, void **user_data)
 Retrieve user data pointer form the context. More...
 

Function Documentation

LIBED247_EXPORT ed247_status_t ed247_load_file ( const char *  ecic_file_path,
ed247_context_t context 
)

Loading function: the entry point of the library.

Parameters
[in]ecic_file_pathThe path to the ECIC configuration file
[out]contextThe loaded context identifier
Return values
ED247_STATUS_SUCCESS
ED247_STATUS_FAILUREAn error occurred during the load phase (xml parsing or internal loading)

Here is the caller graph for this function:

LIBED247_EXPORT ed247_status_t ed247_load_content ( const char *  ecic_file_content,
ed247_context_t context 
)

Loading function: the entry point of the library.

Parameters
[in]ecic_file_contentThe content of the ECIC configuration file
[out]contextThe loaded context identifier
Return values
ED247_STATUS_SUCCESS
ED247_STATUS_FAILUREAn error occurred during the load phase (xml parsing or internal loading)
LIBED247_EXPORT ed247_status_t ed247_unload ( ed247_context_t  context)

Unload resources linked to the given context.

Parameters
[in]contextContext identifier
Return values
ED247_STATUS_SUCCESS
ED247_STATUS_FAILURE
LIBED247_EXPORT ed247_status_t ed247_component_set_user_data ( ed247_context_t  context,
void *  user_data 
)

Assign user data to the context.

When unloading the component, there is no memory free on this item. Free it yourself.

Parameters
[in]contextThe context identifier
[in]user_dataA pointer to user data
Return values
ED247_STATUS_SUCCESS
ED247_STATUS_FAILURE
LIBED247_EXPORT ed247_status_t ed247_component_get_user_data ( ed247_context_t  context,
void **  user_data 
)

Retrieve user data pointer form the context.

Parameters
[in]contextThe context identifier
[out]user_dataA pointer to host pointer to user data
Return values
ED247_STATUS_SUCCESS
ED247_STATUS_FAILURE