#include "config.h"
#include "defines.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <dlfcn.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/uio.h>
#include <pwd.h>
#include "utils.h"
#include "hashlib.h"
#include "configparser.h"
Go to the source code of this file.
Definition in file configparser.c.
|
||||||||||||||||||||
|
This function adds a plugin into the program space
Definition at line 501 of file configparser.c. |
|
|
This function cleans up a configuration file structure
Definition at line 565 of file configparser.c. |
|
|
This function cleans up a configuration file structure
Definition at line 681 of file configparser.c. |
|
|
destructor function for the modules array
Definition at line 585 of file configparser.c. |
|
||||||||||||
|
This function returns a configuration entry
Definition at line 620 of file configparser.c. |
|
||||||||||||
|
This function initializes a configuration file structure
Definition at line 642 of file configparser.c. |
|
||||||||||||
|
This function registeres configuration options in the configuration file structure
Definition at line 657 of file configparser.c. |
|
|
This function cleans up the modules structure
Definition at line 603 of file configparser.c. |
|
||||||||||||
|
This function expects a list of config names (e.g. fo_default, fo_view, fo_post) and its length. It uses the CF_CONF_DIR environment variable to decide where the config files can be found. It returns successfully an array, when all wanted files could be found. It returns NULL if one of them could not be found.
Definition at line 226 of file configparser.c. |
|
||||||||||||||||||||
|
This function handles a configuration entry.
Definition at line 481 of file configparser.c. |
|
||||||||||||||||
|
This function parses the arguments of a configuration directive Parameters:
Definition at line 277 of file configparser.c. |
|
||||||||||||
|
This function parses a configuration file.
Definition at line 348 of file configparser.c. |
|
|
The default configuration options Definition at line 62 of file configparser.c. |
|
|
The configuration data of the archive viewer Definition at line 54 of file configparser.c. |
|
|
Initial value: {
{ "<Filters>", NULL, NULL },
{ "AddFilter", add_module, &Modules },
{ "</Filters>", NULL, NULL },
{ "<General>", NULL, NULL },
{ "SortYearList", handle_command, &fo_arcview_conf },
{ "SortMonthList", handle_command, &fo_arcview_conf },
{ "DateFormatList", handle_command, &fo_arcview_conf },
{ "</General>", NULL, NULL },
{ "<Templates>", NULL, NULL },
{ "FatalTemplate", handle_command, &fo_arcview_conf },
{ "YearsTemplate", handle_command, &fo_arcview_conf },
{ "YearListTemplate", handle_command, &fo_arcview_conf },
{ "MonthsTemplate", handle_command, &fo_arcview_conf },
{ "MonthsListTemplate", handle_command, &fo_arcview_conf },
{ "ThreadListMonthTemplate", handle_command, &fo_arcview_conf },
{ "ThreadTemplate", handle_command, &fo_arcview_conf },
{ "ThreadListTemplate", handle_command, &fo_arcview_conf },
{ "PerThreadTemplate", handle_command, &fo_arcview_conf },
{ "UpDownTemplate", handle_command, &fo_arcview_conf },
{ "</Templates>", NULL, NULL },
{ NULL, NULL, NULL }
}
Definition at line 186 of file configparser.c. |
|
|
The configuration data of the default configuration Definition at line 51 of file configparser.c. |
|
|
The configuration data of the archive viewer Definition at line 55 of file configparser.c. |
|
|
Initial value: {
{ "<General>", NULL, NULL },
{ "AddFilter", add_module, &Modules },
{ "PostingUrl", handle_command, &fo_post_conf },
{ "FieldConfig", handle_command, &fo_post_conf },
{ "FieldNeeded", handle_command, &fo_post_conf },
{ "RedirectOnPost", handle_command, &Modules },
{ "</General>", NULL, NULL },
{ "<Images>", NULL, NULL },
{ "Image", handle_command, &fo_post_conf },
{ "</Images>", NULL, NULL },
{ "<Templates>", NULL, NULL },
{ "ThreadTemplate", handle_command, &fo_post_conf },
{ "FatalTemplate", handle_command, &fo_post_conf },
{ "OkTemplate", handle_command, &fo_post_conf },
{ "</Templates>", handle_command, &fo_post_conf },
{ NULL, NULL, NULL }
}
Definition at line 140 of file configparser.c. |
|
|
The configuration data of the server Definition at line 52 of file configparser.c. |
|
|
Initial value: {
{ "<General>", NULL, NULL },
{ "SortThreads", handle_command, &fo_server_conf },
{ "SortMessages", handle_command, &fo_server_conf },
{ "RunArchiver", handle_command, &fo_server_conf },
{ "ErrorLog", handle_command, &fo_server_conf },
{ "StdLog", handle_command, &fo_server_conf },
{ "PIDFile", handle_command, &fo_server_conf },
{ "</General>", NULL, NULL },
{ "<Archiving>", NULL, NULL },
{ "ArchiveOnVote", handle_command, &fo_server_conf },
{ "MainFileMaxBytes", handle_command, &fo_server_conf },
{ "MainFileMaxPostings", handle_command, &fo_server_conf },
{ "MainFileMaxThreads", handle_command, &fo_server_conf },
{ "</Archiving>", NULL, NULL },
{ "<Filters>", handle_command, &fo_server_conf },
{ "AddFilter", add_module, &Modules },
{ "</Filters>", NULL, NULL },
{ NULL, NULL, NULL }
}
Definition at line 162 of file configparser.c. |
|
|
The configuration data of the forum viewer Definition at line 53 of file configparser.c. |
|
|
The client configuration options Definition at line 104 of file configparser.c. |
|
|
The modules array Definition at line 57 of file configparser.c. |
1.3.5