From 96b3a0feb963466447ca8dbc571bc5f670d533cc Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 1 Aug 2013 18:14:15 +0200 Subject: [SERVER] Add command line options to create empty image of certain size with empty cache map (so it needs an uplink server) --- src/server/globals.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/server/globals.h') 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_ */ -- cgit v1.2.3-55-g7522