summaryrefslogtreecommitdiffstats
path: root/bbsconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'bbsconfig.h')
-rw-r--r--bbsconfig.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/bbsconfig.h b/bbsconfig.h
index 55be15a..bcd2100 100644
--- a/bbsconfig.h
+++ b/bbsconfig.h
@@ -3,7 +3,15 @@
#include <stdio.h>
#include <stdlib.h>
+#include <getopt.h>
+#include <errno.h>
+#include <unistd.h>
+#include <string.h>
+#include <assert.h>
+#define ASSERT assert
+
+#include "kconfig.h"
#include "list.h"
#include "sds.h"
#include "file_use.h"
@@ -17,17 +25,18 @@ typedef struct bbs_config
{
//todo configs
//list of filenames that considered to be todos
+ char *todo_dir;
List *todo_files;
//directories where could be articles
- List *article_dirs;
+ char *article_dir;
+
+ //if defined this then there is directory where all needed is in standart layout
+ char *root_dir;
//directory with all user inis
char *user_dir;
- //show motd messages?
- int motd;
-
//write syslogs?
int syslog;
@@ -42,6 +51,7 @@ bbs_config g_config;
extern bbs_config g_config;
#endif
+int config_default();
int config_from_ini( const char *config_file );
int config_from_argv( int argc, char **argv );