Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Related Pages

Config: Functions for Manipulating Configuration Data


Functions

int ewl_config_init (void)
 Initialize the configuration system.

int ewl_config_str_set (const char *k, char *v)
 set the value of key to the specified string

int ewl_config_int_set (const char *k, int v)
 Set the value of key to the specified integer.

int ewl_config_float_set (const char *k, float v)
 Set the value of key to the specified float.

char * ewl_config_str_get (const char *k)
 Retrieve string value associated with a key.

int ewl_config_int_get (const char *k)
 Retrieve integer value associated with a key.

float ewl_config_float_get (const char *k)
 Retrieve floating point value associated with a key.

char * ewl_config_render_method_get (void)
 Retrieve the render method of the evas.


Function Documentation

float ewl_config_float_get const char *  k  ) 
 

Retrieve floating point value associated with a key.

Parameters:
k: the key to search
Returns:
Returns the found float value on success, 0.0 on failure.

int ewl_config_float_set const char *  k,
float  v
 

Set the value of key to the specified float.

Parameters:
k: the key to set in the configuration database
v: the float value that will be associated with the key
Returns:
Returns TRUE on success, FALSE on failure.
Sets the float value associated with the key k to v in the configuration database.

int ewl_config_init void   ) 
 

Initialize the configuration system.

Returns:
Returns true on success, false on failure.
This sets up the necessary configuration variables.

int ewl_config_int_get const char *  k  ) 
 

Retrieve integer value associated with a key.

Parameters:
k: the key to search
Returns:
Returns the found integer value on success, 0 on failure.

int ewl_config_int_set const char *  k,
int  v
 

Set the value of key to the specified integer.

Parameters:
k: the key to set in the configuration database
v: the integer value that will be associated with the key
Returns:
Returns TRUE on success, FALSE on failure.
Sets the integer value associated with the key k to v in the configuration database.

char* ewl_config_render_method_get void   ) 
 

Retrieve the render method of the evas.

Returns:
Returns the found render method, default software render.

char* ewl_config_str_get const char *  k  ) 
 

Retrieve string value associated with a key.

Parameters:
k: the key to search
Returns:
Returns the found string value on success, NULL on failure.

int ewl_config_str_set const char *  k,
char *  v
 

set the value of key to the specified string

Parameters:
k: the key to set in the configuration database
v: the string value that will be associated with the key
Returns:
Returns TRUE on success, FALSE on failure.
Sets the string value associated with the key k to v in the configuration database.