Ecore Config Listeners
Functions that set and unset property listener callbacks. More...Functions | |
| EAPI int | ecore_config_listen (const char *name, const char *key, Ecore_Config_Listener listener, int tag, void *data) |
| Adds a callback function to the list of functions called when a property changes. | |
| EAPI int | ecore_config_deaf (const char *name, const char *key, Ecore_Config_Listener listener) |
| Removes a listener callback. | |
Detailed Description
Functions that set and unset property listener callbacks.
Function Documentation
| EAPI int ecore_config_deaf | ( | const char * | name, | |
| const char * | key, | |||
| Ecore_Config_Listener | listener | |||
| ) |
Removes a listener callback.
- Parameters:
-
name Name of the callback to remove. key The property key the callback is listening to. listener The callback function to remove.
- Returns:
ECORE_CONFIG_ERR_SUCCif successful in removing the callback. If no callback matches the given parameters, thenECORE_CONFIG_ERR_NOTFOUNDis returned. IfNULLis passed for the key pointer,ECORE_CONFIG_ERR_NODATAis returned.
References ecore_config_get(), and Ecore_Config_Prop::listeners.
| EAPI int ecore_config_listen | ( | const char * | name, | |
| const char * | key, | |||
| Ecore_Config_Listener | listener, | |||
| int | tag, | |||
| void * | data | |||
| ) |
Adds a callback function to the list of functions called when a property changes.
- Parameters:
-
name Name of the callback. key The key of the property to listen to. listener Listener callback function. tag Tag to pass to listenerwhen it is called.data Data to pass to listenerwhen it is called.
- Returns:
ECORE_CONFIG_ERR_SUCCif successful in setting up the callback.
References ecore_config_get(), ECORE_CONFIG_NIL, Ecore_Config_Prop::listeners, and Ecore_Config_Prop::type.