Elektra 0.8.26
kdbnotification.h File Reference

Elektra-Notification structures and declarations for application developers. More...

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

Typedefs

typedef void(* ElektraNotificationConversionErrorCallback) (Key *key, void *context)
 Callback function called when string to number conversion failed.
typedef void(* ElektraNotificationChangeCallback) (Key *key, void *context)
 Callback function for key changes.

Functions

int elektraNotificationOpen (KDB *kdb)
 Initialize the notification system for the given KDB instance.
int elektraNotificationClose (KDB *kdb)
 Stop the notification system for the given KDB instance.
int elektraNotificationRegisterCallback (KDB *kdb, Key *key, ElektraNotificationChangeCallback callback, void *context)
 Subscribe for updates via callback when a given key value is changed.
int elektraNotificationRegisterCallbackSameOrBelow (KDB *kdb, Key *key, ElektraNotificationChangeCallback callback, void *context)
 Subscribe for updates via callback when a given key or a key below changed.
 ELEKTRA_NOTIFICATION_REGISTER_SIGNATURE (int, Int)
 Subscribe for automatic updates to a given variable when the given key value is changed.

Detailed Description

Elektra-Notification structures and declarations for application developers.