summaryrefslogtreecommitdiffstats
path: root/src/server/globals.h
diff options
context:
space:
mode:
authorSimon Rettberg2013-08-01 18:14:15 +0200
committerSimon Rettberg2013-08-01 18:14:15 +0200
commit96b3a0feb963466447ca8dbc571bc5f670d533cc (patch)
treee546179f4d6d5cbb23dae202a8bf59b9f2ce95bb /src/server/globals.h
parent[SERVER] Add inih (http://code.google.com/p/inih/) for *.ini parsing (diff)
downloaddnbd3-96b3a0feb963466447ca8dbc571bc5f670d533cc.tar.gz
dnbd3-96b3a0feb963466447ca8dbc571bc5f670d533cc.tar.xz
dnbd3-96b3a0feb963466447ca8dbc571bc5f670d533cc.zip
[SERVER] Add command line options to create empty image of certain size with empty cache map (so it needs an uplink server)
Diffstat (limited to 'src/server/globals.h')
-rw-r--r--src/server/globals.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/server/globals.h b/src/server/globals.h
index d3424b6..2dd6e13 100644
--- a/src/server/globals.h
+++ b/src/server/globals.h
@@ -116,9 +116,14 @@ struct _dnbd3_client
};
// #######################################################
+#define CONFIG_FILENAME "server.conf"
+/**
+ * Base directory where the configuration files reside. Will never have a trailing slash.
+ */
+extern char *_configDir;
/**
- * Base directory where all images are stored in. Will always have a trailing slash
+ * Base directory where all images are stored in. Will never have a trailing slash.
*/
extern char *_basePath;
@@ -129,4 +134,6 @@ extern int _vmdkLegacyMode;
extern int _shutdown;
+void globals_loadConfig();
+
#endif /* GLOBALS_H_ */