SNFstream.h
1.25 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef _SNAPI_H
#define _SNAPI_H
#ifdef DLL_API
#else
#ifdef __cplusplus
#define DLL_API extern "C" _declspec(dllimport)
#else
#define DLL_API _declspec(dllimport)
#endif
#endif
typedef enum
{
INI_BOOLEAN,
INI_INTEGER,
INI_STRING
}E_INI_DATA_TYPE;
typedef struct
{
const char* pItemKeyWord;
void* pItemData;
E_INI_DATA_TYPE dataType;
}IniData_struct;
typedef struct
{
int rwFlag;
char dataBuf[260];
}SeachFile_Req_struct;
typedef enum
{
INI_RW_SUCCESS = 0,
INI_RW_ERROR = 1,
FIELD_NOT_EXIST = 2,
INVALID_PARAMETER =3,
OPEN_FILE_FAIL = 4,
FIELDNAME_NOT_COINCIDENT = 5
}RW_SetupFile_Status;
DLL_API RW_SetupFile_Status ReadIniItemData(const char* pFilePath, IniData_struct IniData);
DLL_API RW_SetupFile_Status WriteIniItemData(const char* pFilePath, IniData_struct IniData);
DLL_API RW_SetupFile_Status ReadIniData(const char* pFilePath,
IniData_struct IniData[],
int IniData_size);
DLL_API RW_SetupFile_Status WriteIniData(const char* pFilePath,
IniData_struct IniData[],
int IniData_size);
#endif