From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/Plugins/Library/ml_devices/config.h | 44 +++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Src/Plugins/Library/ml_devices/config.h (limited to 'Src/Plugins/Library/ml_devices/config.h') diff --git a/Src/Plugins/Library/ml_devices/config.h b/Src/Plugins/Library/ml_devices/config.h new file mode 100644 index 00000000..a2b17978 --- /dev/null +++ b/Src/Plugins/Library/ml_devices/config.h @@ -0,0 +1,44 @@ +#ifndef _NULLSOFT_WINAMP_ML_DEVICES_CONFIG_HEADER +#define _NULLSOFT_WINAMP_ML_DEVICES_CONFIG_HEADER + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#include + + +unsigned long +Config_ReadString(const char *section, + const char *key, + const char *defaultValue, + char *returnedStrign, + unsigned long size); + +unsigned int +Config_ReadInt(const char *section, + const char *key, + int defaultValue); + +BOOL +Config_ReadBool(const char *section, + const char *key, + BOOL defaultValue); + +BOOL +Config_WriteString(const char *section, + const char *key, + const char *value); + + +BOOL +Config_WriteInt(const char *section, + const char *key, + int value); + +BOOL +Config_WriteBool(const char *section, + const char *key, + BOOL value); + +#endif // _NULLSOFT_WINAMP_ML_DEVICES_CONFIG_HEADER -- cgit