diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2020-09-21 10:53:15 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-09-29 12:42:53 +0200 |
commit | f068a79c1a39f7f796e045628693241b0f3bc15a (patch) | |
tree | d23809cd288bf49aa22b9a54a4d0338a0aa2a5d2 /src/main.c | |
parent | 65a14e56d396a09a5fc7eca5bbdb7209269cfb40 (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/main.c')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -20,10 +20,11 @@ #define OG_SERVER_CFG_JSON "/opt/opengnsys/cfg/ogserver.json" +struct og_server_cfg cfg; + int main(int argc, char *argv[]) { struct ev_io ev_io_server_rest, ev_io_agent_rest; - struct og_server_cfg cfg = {}; og_loop = ev_default_loop(0); |