|
Elektra
0.8.23
|
Elektra-Notification structures and declarations for developing notification and transport plugins. More...


Typedefs | |
| typedef int(* | ElektraNotificationPluginRegisterInt) (Plugin *handle, Key *key, int *variable) |
| Subscribe for automatic updates to a given integer variable when the given key value is changed. More... | |
| typedef int(* | ElektraNotificationPluginRegisterCallback) (Plugin *handle, Key *key, ElektraNotificationChangeCallback callback) |
| Subscribe for updates via callback when a given key value is changed. More... | |
| typedef struct _ElektraNotificationCallbackContext | ElektraNotificationCallbackContext |
| Context for notification callbacks. | |
| typedef void(* | ElektraNotificationCallback) (Key *key, ElektraNotificationCallbackContext *context) |
| Notify notification library of changes to a key. More... | |
| typedef void(* | ElektraNotificationOpenNotification) (Plugin *handle, KeySet *parameters) |
| Initialize plugin's notification capabilities. More... | |
| typedef void(* | ElektraNotificationCloseNotification) (Plugin *handle, KeySet *parameters) |
| Teardown plugin's notification capabilities. More... | |
Elektra-Notification structures and declarations for developing notification and transport plugins.
Only used by elektra-notification library, notification plugins (e.g. internalnotification) and transport plugins.
| typedef void(* ElektraNotificationCallback) (Key *key, ElektraNotificationCallbackContext *context) |
Notify notification library of changes to a key.
This callback is passed by elektraNotificationOpen to plugins exporting a openNotification function.
| key | changed key |
| context | context passed by ElektraNotificationOpenNotification |
| typedef void(* ElektraNotificationCloseNotification) (Plugin *handle, KeySet *parameters) |
Teardown plugin's notification capabilities.
Exported as "closeNotification" by transport plugins.
| handle | plugin handle |
| parameters | unused |
| typedef void(* ElektraNotificationOpenNotification) (Plugin *handle, KeySet *parameters) |
Initialize plugin's notification capabilities.
Exported as "openNotification" by transport plugins.
| handle | plugin handle |
| parameters | contains the keys "/callback" (ElektraNotificationCallback * ) and "/context" (ElektraNotificationCallbackContext *). |
| typedef int(* ElektraNotificationPluginRegisterCallback) (Plugin *handle, Key *key, ElektraNotificationChangeCallback callback) |
Subscribe for updates via callback when a given key value is changed.
| handle | plugin handle |
| key | key to watch for changes |
| callback | callback function |
| 1 | on success |
| 0 | on failure |
| typedef int(* ElektraNotificationPluginRegisterInt) (Plugin *handle, Key *key, int *variable) |
Subscribe for automatic updates to a given integer variable when the given key value is changed.
| handle | plugin handle |
| key | key to watch for changes |
| variable | integer variable |
| 1 | on success |
| 0 | on failure |
1.8.13