forked from naemon/naemon-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add global persistant broker storage
This PR adds a global key/value storage which is persitant over reloads (but not restarts). The storage could be used from neb modules to store data over reloads like this: ```c // fetch global storage struct kvvec *global_store = get_global_store(); // store string value kvvec_addkv_str(global_store, "example_key", (char *)mkstr("%s", "example string value")); // read string from storage char *persistant = kvvec_fetch_str_str(global_store, "example_key"); ``` Signed-off-by: Sven Nierlein <[email protected]>
- Loading branch information
Showing
3 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters