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;
37 extern struct copperplate_setup_data __copperplate_setup_data;
39 define_config_tunable(session_label,
const char *, label);
41 static inline read_config_tunable(session_label,
const char *)
43 return __copperplate_setup_data.session_label;
46 static inline define_config_tunable(registry_root,
const char *, root)
48 __copperplate_setup_data.registry_root = root;
51 static inline read_config_tunable(registry_root,
const char *)
53 return __copperplate_setup_data.registry_root;
56 static inline define_config_tunable(no_registry,
int, noreg)
58 __copperplate_setup_data.no_registry = noreg;
61 static inline read_config_tunable(no_registry,
int)
63 return __copperplate_setup_data.no_registry;
66 static inline define_config_tunable(shared_registry,
int, shared)
68 __copperplate_setup_data.shared_registry = shared;
71 static inline read_config_tunable(shared_registry,
int)
73 return __copperplate_setup_data.shared_registry;
76 static inline define_config_tunable(mem_pool_size,
size_t, size)
78 __copperplate_setup_data.mem_pool = size;
81 static inline read_config_tunable(mem_pool_size,
size_t)
83 return __copperplate_setup_data.mem_pool;
86 static inline define_config_tunable(session_gid, gid_t, gid)
88 __copperplate_setup_data.session_gid = gid;
91 static inline read_config_tunable(session_gid, gid_t)
93 return __copperplate_setup_data.session_gid;