|
Revision 1736, 1.4 kB
(checked in by ensc, 4 years ago)
|
FileCfg?_iterateOverMultiLine(): added prototypes and related declarations
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
#ifndef H_UTIL_VSERVER_LIB_INTERNAL_FILECFG_H |
|---|
| 20 |
#define H_UTIL_VSERVER_LIB_INTERNAL_FILECFG_H |
|---|
| 21 |
|
|---|
| 22 |
#include "pathinfo.h" |
|---|
| 23 |
#include <stdbool.h> |
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
#define FILECFG_MAX_FILESIZE 0x100000 |
|---|
| 27 |
|
|---|
| 28 |
char * FileCfg_readEntryStr (PathInfo const *base, char const *file, bool allow_multiline, char const *dflt); |
|---|
| 29 |
bool FileCfg_readEntryFlag(PathInfo const *base, char const *file, bool dflt); |
|---|
| 30 |
|
|---|
| 31 |
typedef bool (*FileCfg_MultiLineHandler)(void *res, char const *data, size_t len); |
|---|
| 32 |
|
|---|
| 33 |
bool FileCfg_iterateOverMultiLine(char const *str, FileCfg_MultiLineHandler handler, |
|---|
| 34 |
void *data); |
|---|
| 35 |
|
|---|
| 36 |
#endif // H_UTIL_VSERVER_LIB_INTERNAL_FILECFG_H |
|---|