MGE System Utility Library - Full Internal Documentation v1.6.1
Library of system utility functions.
|
Config file processing header file. More...
#include <libmgec/mge-portability.h>
Go to the source code of this file.
Data Structures | |
struct | confkey |
Configuration Key / Value Pair. More... | |
struct | confsection |
Configuration section definition. More... | |
Macros | |
#define | MAX_KEYVAL_LENGTH 1000 |
Max length of Key and value. | |
#define | MAX_KEYS_PER_SECTION 1000 |
Max number of keys per section. | |
#define | MAX_LINE_LENGTH 1000 |
Max length of line. | |
Functions | |
int | parsefile (struct confsection *params, int nparams, const char *filename) |
Parse a configuration file. | |
Config file processing header file.
Header file for config file processing in the libmgesysutils shared library.
Released under the GPLv3 only.
SPDX-License-Identifier: GPL-3.0-only
#define MAX_KEYS_PER_SECTION 1000 |
Max number of keys per section.
#define MAX_KEYVAL_LENGTH 1000 |
Max length of Key and value.
#define MAX_LINE_LENGTH 1000 |
Max length of line.
int parsefile | ( | struct confsection * | params, |
int | nparams, | ||
const char * | filename | ||
) |
Parse a configuration file.
On error mge_errno is set.
params | Pointer to a struct confsection array of parameters. |
nparams | The number of parameters. |
filename | The config filename. |