added mysql config file and some initial database installation / upgrade methods
[NeonServV5.git] / src / lib / ini.h
1 /*
2  * modified port of Cini project
3  *  original by:
4  *   liukui,liukee2009@foxmail.com
5 */
6 #ifndef _INI_INCLUDE
7 #define _INI_INCLUDE
8
9 #ifdef  __cplusplus
10 extern "C" {
11 #endif
12
13 #define SECTION_LEN             256
14 #define FIELDNAME_LEN   256
15 #define FIELDVALUE_LEN  256
16
17 #define FILE_SUCCESS            0
18 #define FILE_NO_FILE            1
19
20 int loadINI(char *filename); /* load the ini file */
21 int saveINI(char *filename); /* save to ini file */
22
23 void ReadString(char *SectionName,char *FieldName,char *FieldValue); /* read FieldValue of the FieldName */
24 void WriteString(char *SectionName,char *FieldName,char *FieldValue); /* write FieldValue to the FieldName */
25
26 #ifdef  __cplusplus
27 }
28 #endif
29
30
31 #endif  /* _INI_INCLUDE */