diff options
Diffstat (limited to 'src/daemon/settings.c')
-rw-r--r-- | src/daemon/settings.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/src/daemon/settings.c b/src/daemon/settings.c index 6796ac1..3777f23 100644 --- a/src/daemon/settings.c +++ b/src/daemon/settings.c @@ -22,14 +22,25 @@ static struct settings { int daemonize; + unsigned short int port; } settings; -int setting_detach(void) -{ - /* should be, in this order: looking at options provided via command +/* TODO: should be, in this order: looking at options provided via command * line arguments, looking at at /etc/conf.d/usurpation.conf or - * using default. - * Right now just uses default. + * using default. Right now just uses defaults. */ +void settings_init(void) +{ + settings.daemonize =0; + settings.port = 6996 +} + +int setting_detach(void) +{ return settings.daemonize; } + +unsigned short int setting_port(void) +{ + return settings.port; +} |