about summary refs log tree commit diff
path: root/src/engine/config.h
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2010-05-29 07:25:38 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2010-05-29 07:25:38 +0000
commit72c06a258940696093f255fb1061beb58e1cdd0b (patch)
tree36b9a7712eec2d4f07837eab9c38ef1c5af85319 /src/engine/config.h
parente56feb597bc743677633432f77513b02907fd169 (diff)
downloadzcatch-72c06a258940696093f255fb1061beb58e1cdd0b.tar.gz
zcatch-72c06a258940696093f255fb1061beb58e1cdd0b.zip
copied refactor to trunk
Diffstat (limited to 'src/engine/config.h')
-rw-r--r--src/engine/config.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/engine/config.h b/src/engine/config.h
new file mode 100644
index 00000000..967d3593
--- /dev/null
+++ b/src/engine/config.h
@@ -0,0 +1,23 @@
+#ifndef ENGINE_CONFIG_H
+#define ENGINE_CONFIG_H
+
+#include "kernel.h"
+
+class IConfig : public IInterface
+{
+	MACRO_INTERFACE("config", 0)
+public:
+	typedef void (*SAVECALLBACKFUNC)(IConfig *pConfig, void *pUserData);
+
+	virtual void Init() = 0;
+	virtual void Reset() = 0;
+	virtual void Save() = 0;
+	
+	virtual void RegisterCallback(SAVECALLBACKFUNC pfnFunc, void *pUserData) = 0;
+	
+	virtual void WriteLine(const char *pLine) = 0;
+};
+
+extern IConfig *CreateConfig();
+
+#endif