18 #ifndef _COPPERPLATE_TUNABLES_H
19 #define _COPPERPLATE_TUNABLES_H
21 #include <boilerplate/tunables.h>
23 struct copperplate_setup_data {
24 const char *session_root;
25 const char *session_label;
26 const char *registry_root;
36 extern struct copperplate_setup_data __copperplate_setup_data;
38 static inline define_config_tunable(session_label,
const char *, label)
40 __copperplate_setup_data.session_label = label;
43 static inline read_config_tunable(session_label,
const char *)
45 return __copperplate_setup_data.session_label;
48 static inline define_config_tunable(registry_root,
const char *, root)
50 __copperplate_setup_data.registry_root = root;
53 static inline read_config_tunable(registry_root,
const char *)
55 return __copperplate_setup_data.registry_root;
58 static inline define_config_tunable(no_registry,
int, noreg)
60 __copperplate_setup_data.no_registry = noreg;
63 static inline read_config_tunable(no_registry,
int)
65 return __copperplate_setup_data.no_registry;
68 static inline define_config_tunable(shared_registry,
int, shared)
70 __copperplate_setup_data.shared_registry = shared;
73 static inline read_config_tunable(shared_registry,
int)
75 return __copperplate_setup_data.shared_registry;
78 static inline define_config_tunable(mem_pool_size,
size_t, size)
80 __copperplate_setup_data.mem_pool = size;
83 static inline read_config_tunable(mem_pool_size,
size_t)
85 return __copperplate_setup_data.mem_pool;