![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
Config function. More...
#include <stdio.h>#include <errno.h>#include "nilorea/n_common.h"#include "nilorea/n_config_file.h"#include "nilorea/n_pcre.h"
Include dependency graph for n_config_file.c:Go to the source code of this file.
Functions | |
| int | destroy_config_file (CONFIG_FILE **cfg_file) |
| Destroy a loaded config file. | |
| void | destroy_config_file_section (void *ptr) |
| Destroy a config file section. | |
| void | free_no_null (void *ptr) |
| local free for config entries | |
| char * | get_config_section_value (CONFIG_FILE *cfg_file, char *section_name, size_t section_position, char *entry, size_t entry_position) |
| Function to parse sections and get entries values. | |
| size_t | get_nb_config_file_sections (CONFIG_FILE *cfg_file, char *section_name) |
| Get the number of config file with section_name. | |
| size_t | get_nb_config_file_sections_entries (CONFIG_FILE *cfg_file, char *section_name, size_t section_position, char *entry) |
| Get the number of config file with section_name. | |
| CONFIG_FILE * | load_config_file (char *filename, int *errors) |
| load a config file | |
| int | write_config_file (CONFIG_FILE *cfg_file, char *filename) |
| write a config file | |
| void destroy_config_file_section | ( | void * | ptr | ) |
Destroy a config file section.
| ptr | A pointer to a config file section |
Definition at line 31 of file n_config_file.c.
References destroy_ht(), CONFIG_FILE_SECTION::entries, Free, and CONFIG_FILE_SECTION::section_name.
Referenced by load_config_file().
Here is the call graph for this function:
Here is the caller graph for this function:| void free_no_null | ( | void * | ptr | ) |
local free for config entries
| ptr | the ptr to free |
Definition at line 19 of file n_config_file.c.
Referenced by load_config_file().
Here is the caller graph for this function: