aboutsummaryrefslogtreecommitdiff
path: root/Src/Plugins/Library/ml_pmp/config.h
diff options
context:
space:
mode:
authorJean-Francois Mauguit <jfmauguit@mac.com>2024-09-24 09:03:25 -0400
committerGitHub <noreply@github.com>2024-09-24 09:03:25 -0400
commitbab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Plugins/Library/ml_pmp/config.h
parent4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff)
parent20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff)
downloadwinamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Plugins/Library/ml_pmp/config.h')
-rw-r--r--Src/Plugins/Library/ml_pmp/config.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/Src/Plugins/Library/ml_pmp/config.h b/Src/Plugins/Library/ml_pmp/config.h
new file mode 100644
index 00000000..1343fe6f
--- /dev/null
+++ b/Src/Plugins/Library/ml_pmp/config.h
@@ -0,0 +1,21 @@
+#ifndef _C_CONFIG_H_
+#define _C_CONFIG_H_
+
+class C_Config
+{
+ public:
+ C_Config(wchar_t *ini,wchar_t *section=L"ml_pmp", C_Config * globalWrite=NULL);
+ ~C_Config();
+ void WriteInt(wchar_t *name, int value, wchar_t *section=NULL);
+ wchar_t *WriteString(wchar_t *name, wchar_t *string, wchar_t *section=NULL);
+ int ReadInt(wchar_t *name, int defvalue, wchar_t *section=NULL);
+ wchar_t *ReadString(wchar_t *name, wchar_t *defvalue, wchar_t *section=NULL);
+ wchar_t *GetIniFile(){return m_inifile;}
+ private:
+ wchar_t m_strbuf[8192];
+ wchar_t *m_inifile;
+ wchar_t *m_section;
+ C_Config * globalWrite;
+};
+
+#endif//_C_CONFIG_H_