summaryrefslogtreecommitdiffstats
path: root/bbsconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'bbsconfig.c')
-rw-r--r--bbsconfig.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/bbsconfig.c b/bbsconfig.c
index 4eed4a6..6dea7dc 100644
--- a/bbsconfig.c
+++ b/bbsconfig.c
@@ -8,7 +8,11 @@ int config_default()
//g_config.todo_files = llist_new();
g_config.todo_files = NULL;
+#ifdef CONFIG_ARTICLES
+ g_config.article_dir = CONFIG_ARTICLES_DEFAULT_DIR;
+#else
g_config.article_dir = NULL;
+#endif
#ifdef CONFIG_LOGIN
g_config.user_dir = CONFIG_USER_DEFAULT_DIR;
@@ -33,6 +37,9 @@ userdir string
syslog int
*/
+/*
+bbs_cfg_handler - callback for parsing ini file and obtain values
+*/
static int bbs_cfg_handler( void *user, const char *section, const char *name,
const char *value )
{
@@ -145,4 +152,13 @@ int config_from_argv( int argc, char **argv )
return ret;
}
+char* config_to_str( size_t max_size )
+{
+ char *str = malloc( max_size );
+ if (str == NULL)
+ return NULL;
+
+
+ return str;
+}