summaryrefslogtreecommitdiffstats
path: root/src/cfg.h
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2020-09-21 10:53:15 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-09-29 12:42:53 +0200
commitf068a79c1a39f7f796e045628693241b0f3bc15a (patch)
treed23809cd288bf49aa22b9a54a4d0338a0aa2a5d2 /src/cfg.h
parent65a14e56d396a09a5fc7eca5bbdb7209269cfb40 (diff)
#988 Add global config variable
This commit makes configuration variable global. To use this variable you have to #import "cfg.h".
Diffstat (limited to 'src/cfg.h')
-rw-r--r--src/cfg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cfg.h b/src/cfg.h
index 6c7d221..c88a406 100644
--- a/src/cfg.h
+++ b/src/cfg.h
@@ -23,4 +23,6 @@ struct og_server_cfg {
int parse_json_config(const char *filename, struct og_server_cfg *cfg);
void from_json_to_legacy(struct og_server_cfg *cfg);
+extern struct og_server_cfg cfg;
+
#endif