Elektra
0.8.22
|
Allows applications to automatically update registered variables when the value of a specified key has changed.
It is recommended to use the notification wrapper (see notification tutorial) instead of this plugin directly. The wrapper has a simple API and decouples applications from the actual plugin.
This plugin exports the following functions. The functions addresses are exported below system/elektra/modules/internalnotification/exports/
.
All functions have a similar signature:
If the given key
is contained in a KeySet on a kdbGet or kdbSet operation a action according to the function's description is executed. Cascading keys as key
names are also supported.
Parameters
handle
is exported as system/elektra/modules/internalnotification/exports/handle
.Please note that the plugin API may change as this plugin is experimental.
The key's value is converted to integer and the registered variable is updated with the new value.
Additional Parameters
When the key changes the callback is called with the new key.
Additional Parameters
void (*ElektraNotificationChangeCallback) (Key * key)
.