summaryrefslogtreecommitdiffstats
path: root/bbsconfig.h
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2015-02-17 15:15:26 +0900
committerFreeArtMan <dos21h@gmail.com>2015-02-17 15:15:26 +0900
commitc1e6c1341ace1f61569e6d1d0dbfb36cb192113c (patch)
tree9fc23f173342a680333825bc8300cad422ba99a5 /bbsconfig.h
parent3090282601248d3ce5f91cbddeb450d744b27472 (diff)
downloadmicrobbs-c1e6c1341ace1f61569e6d1d0dbfb36cb192113c.tar.gz
microbbs-c1e6c1341ace1f61569e6d1d0dbfb36cb192113c.zip
Updated libterm. Updated config headers
Diffstat (limited to 'bbsconfig.h')
-rw-r--r--bbsconfig.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/bbsconfig.h b/bbsconfig.h
index c1eb80f..55be15a 100644
--- a/bbsconfig.h
+++ b/bbsconfig.h
@@ -4,4 +4,46 @@
#include <stdio.h>
#include <stdlib.h>
+#include "list.h"
+#include "sds.h"
+#include "file_use.h"
+#include "ini.h"
+
+//there should be many ways how to config stuff
+//from commandline some basic things
+//from config files more complicated
+
+typedef struct bbs_config
+{
+ //todo configs
+ //list of filenames that considered to be todos
+ List *todo_files;
+
+ //directories where could be articles
+ List *article_dirs;
+
+ //directory with all user inis
+ char *user_dir;
+
+ //show motd messages?
+ int motd;
+
+ //write syslogs?
+ int syslog;
+
+ //debug mode outputs more stuff
+ int debug;
+} bbs_config;
+
+//GLOBAL USER
+#ifdef __MICROBBS_MAIN
+bbs_config g_config;
+#else
+extern bbs_config g_config;
+#endif
+
+int config_from_ini( const char *config_file );
+int config_from_argv( int argc, char **argv );
+
+
#endif \ No newline at end of file