|
MGE System Utility Library - API Documentation
Library of system utility functions.
|
Go to the documentation of this file.
37 #include <portability.h>
42 #define MAX_KEYVAL_LENGTH 1000
45 #define MAX_KEYS_PER_SECTION 1000
48 #define MAX_LINE_LENGTH 1000
Configuration section definition.
Definition: configfile.h:59
char value[MAX_KEYVAL_LENGTH]
Value part of pair.
Definition: configfile.h:55
char * section
Section name.
Definition: configfile.h:60
char * key
Key part of pair.
Definition: configfile.h:52
struct confkey keys[MAX_KEYS_PER_SECTION]
Array of KV Pairs.
Definition: configfile.h:63
int present
Pair present, 1 = true, 0 =false.
Definition: configfile.h:54
int mandatory
Mandatory, 1 = true, 0 = false.
Definition: configfile.h:61
#define MAX_KEYS_PER_SECTION
Max number of keys per section.
Definition: configfile.h:45
Configuration Key / Value Pair.
Definition: configfile.h:51
int mandatory
Mandatory, 1 = true, 0 = false.
Definition: configfile.h:53
int parsefile(struct confsection *params, int nparams, char *filename)
Parse a configuration file.
Definition: configfile.c:102
int present
Pair present, 1 = true, 0 =false.
Definition: configfile.h:62
#define MAX_KEYVAL_LENGTH
Max length of Key and value.
Definition: configfile.h:42