summaryrefslogtreecommitdiff
path: root/lib/miav_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/miav_config.h')
-rw-r--r--lib/miav_config.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/miav_config.h b/lib/miav_config.h
index a8658f1..c97802d 100644
--- a/lib/miav_config.h
+++ b/lib/miav_config.h
@@ -64,7 +64,7 @@ typedef struct __cfg {
class MiavConfig {
public:
- MiavConfig(char *file, Info *info = NULL);
+ MiavConfig(char *file);
~MiavConfig();
int readInt(char *node);
@@ -73,7 +73,6 @@ public:
float readFloat(char *node);
protected:
- Info *info;
string filename;
_cfg *createSemantics(_cfg *cfg);
@@ -93,6 +92,11 @@ protected:
_cfg *configs;
};
-extern MiavConfig *config;
+
+// For the global config object
+namespace MIaV {
+ void initConfig(MiavConfig *config);
+ extern MiavConfig *config;
+};
#endif/*__MIAV_MIAV_CONFIG_H__*/