20 #ifndef CONFIG_MANAGER_H 21 #define CONFIG_MANAGER_H 23 #include "pedigree/kernel/processor/types.h" 25 #include "pedigree/kernel/utilities/String.h" 29 #define MAX_WATCHERS 4 32 typedef void (*ConfigurationWatcher)(void);
43 ConfigValue() : str(
""), num(0), b(
false), type(Invalid)
45 for (
int i = 0; i < MAX_WATCHERS; i++)
49 : str(cv.str), num(cv.num), b(cv.b), type(cv.type)
51 for (
int i = 0; i < MAX_WATCHERS; i++)
52 watchers[i] = cv.watchers[i];
58 ConfigurationWatcher watchers[MAX_WATCHERS];
78 size_t createTable(
const String &configStore,
const String &table);
92 ConfigurationWatcher watcher);
96 ConfigurationWatcher watcher);
100 void removeBackend(
const String &configStore);
102 bool backendExists(
const String &configStore);
Implements a Radix Tree, a kind of Trie with compressed keys.