Elektra  0.8.22
Typedefs
kdbnotificationplugin.h File Reference

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

#include "kdb.h"
#include "kdbnotification.h"
#include "kdbplugin.h"
Include dependency graph for kdbnotificationplugin.h:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Elektra-Notification structures and declarations for developing notification plugins.

Only used by elektra-notification library and notification plugins (e.g. internalnotification).

Typedef Documentation

◆ ElektraNotificationPluginRegisterCallback

typedef int(* ElektraNotificationPluginRegisterCallback) (Plugin *handle, Key *key, ElektraNotificationChangeCallback callback)

Subscribe for updates via callback when a given key value is changed.

Parameters
handleplugin handle
keykey to watch for changes
callbackcallback function
Return values
1on success
0on failure

◆ ElektraNotificationPluginRegisterInt

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.

Parameters
handleplugin handle
keykey to watch for changes
variableinteger variable
Return values
1on success
0on failure