summaryrefslogtreecommitdiff
path: root/lib/miav_config.h
diff options
context:
space:
mode:
authordeva <deva>2006-03-07 19:12:18 +0000
committerdeva <deva>2006-03-07 19:12:18 +0000
commit4f84ffc811d93371f395f11a0e0f42000eaa99fc (patch)
treeb562b6c55f2a825dbbc12646df9741b51e1dff79 /lib/miav_config.h
parent1390ddfe6afe41dba141f8170f9b277573ebe8cd (diff)
*** empty log message ***
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__*/