-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathwinini.h
27 lines (21 loc) · 943 Bytes
/
winini.h
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
#ifndef __WININI_H__INCLUDED__
#define __WININI_H__INCLUDED__
BOOL iniLoad(const char *filename);
void iniFree();
const char *iniValue(const char *section, const char *variable);
const char *iniLine(const char *section, int line);
const char *iniValueDef(const char *section, const char *variable, const char *defvalue);
int iniSectionsCount(const char *section);
const char *iniSectionsValue(const char *section, int section_num, const char *variable);
const char *iniSectionsValueDef(const char *section, int section_num, const char *variable, const char *defvalue);
typedef BOOL (*linerAction_f)(char *buffer, size_t buffer_size);
typedef struct linerRule
{
const char *line_match;
BOOL full_match;
BOOL last_rule;
linerAction_f action;
} linerRule_t;
BOOL liner(const char *src, const char *dst, linerRule_t *rules);
BOOL addLine(const char *src, const char *line);
#endif /* __WININI_H__INCLUDED__ */