aboutsummaryrefslogtreecommitdiff
path: root/Src/Plugins/Library/ml_devices/config.h
blob: a2b17978a0c618bc47463e276f609d3366e43e0e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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 <wtypes.h>


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