Command line option parsing, configuration parsing

Made config file parsing a bit more fool proof
Config file can now contain a modules-dir element that holds the location of the DSO's
Prepared module loading function to be able to dry-run
Removed some unneeded header files
Added command line options parsing
This commit is contained in:
Gergely Polonkai (W00d5t0ck)
2011-01-25 17:37:55 +01:00
parent 5cc379461a
commit 5c26ca28a6
5 changed files with 117 additions and 21 deletions

View File

@@ -1,9 +1,10 @@
#include <stdio.h>
#include <glib.h>
#include "modules.h"
int
wxmppd_loadModule(char *moduleName)
wxmppd_loadModule(char *moduleName, gboolean dryRun)
{
printf("Will load module %s\n", moduleName);
}