$darkmode
Elektra 0.11.0
|
#include <kdbinternal.h>
Functions | |
void | freeHooks (KDB *kdb, Key *errorKey) |
Uninitializes and frees all hooks in the passed KDB handle. More... | |
Plugin * | elektraFindInternalNotificationPlugin (KDB *kdb) |
This method looks for the hook plugin 'internalnotification'. More... | |
int | initHooks (KDB *kdb, const KeySet *config, KeySet *modules, const KeySet *contract, Key *errorKey) |
Initializes the hooks stored in the passed KDB handle. More... | |
Plugin* elektraFindInternalNotificationPlugin | ( | KDB * | kdb | ) |
This method looks for the hook plugin 'internalnotification'.
kdb | the KDB instance in which to search |
void freeHooks | ( | KDB * | kdb, |
Key * | errorKey | ||
) |
Uninitializes and frees all hooks in the passed KDB handle.
kdb | the KDB handle where the hooks should be freed |
errorKey | the key which holds errors and warnings which were issued |
int initHooks | ( | KDB * | kdb, |
const KeySet * | config, | ||
KeySet * | modules, | ||
const KeySet * | contract, | ||
Key * | errorKey | ||
) |
Initializes the hooks stored in the passed KDB handle.
If the handle already contains initialized hooks, they will be reinitialized, including unloading and loading of their plugins. Parameters config
and contract
will be used to determine which hooks to populate.
kdb | the KDB instance where the hooks should be initialized |
config | KeySet containing the current config in system:/elektra namespace |
modules | the current list of loaded modules |
contract | the contract passed to kdbOpen |
errorKey | the key which holds errors and warnings which were issued |