#include <iniparser.h>
Go to the source code of this file.
◆ CONFIG_ARG_FREE
#define CONFIG_ARG_FREE |
( |
| a | ) |
|
Value: do { \
free(a); \
a = NULL; \
} while (0);
◆ INIPARSER_GETSTR
#define INIPARSER_GETSTR |
( |
| config, |
|
|
| section, |
|
|
| key, |
|
|
| default ) |
Value: ({ \
snprintf(_option,
sizeof(_option),
"%s:%s", section,
key); \
iniparser_getstring(config, _option, default); \
})
#define MAXOPTLEN
Definition globals.h:48
#define key
Definition hash.c:36
◆ INIPARSER_GETSTRDUP
#define INIPARSER_GETSTRDUP |
( |
| config, |
|
|
| section, |
|
|
| key, |
|
|
| default ) |
Value: ({ \
snprintf(_option,
sizeof(_option),
"%s:%s", section,
key); \
const char *_tmp = iniparser_getstring(config, _option, default); \
_tmp ? strdup(_tmp) : NULL; \
})
◆ INISEC_GLOBAL
#define INISEC_GLOBAL "global" |
◆ INISEC_HOMES
#define INISEC_HOMES "homes" |