#include "cfg.h"#include "cfg-path.h"#include "cfg-grammar.h"#include "module-config.h"#include "cfg-tree.h"#include "messages.h"#include "template/templates.h"#include "userdb.h"#include "logmsg/logmsg.h"#include "dnscache.h"#include "serialize.h"#include "plugin.h"#include "cfg-parser.h"#include "stats/stats-registry.h"#include "logproto/logproto-builtins.h"#include "reloc.h"#include "hostname.h"#include "rcptid.h"#include "resolved-configurable-paths.h"#include "mainloop.h"#include "timeutils/format.h"#include "apphook.h"#include <sys/types.h>#include <signal.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include <iv_work.h>#include <openssl/sha.h>#include "crypto-utils.h"
Macros | |
| #define | CONFIG_HASH_LENGTH SHA256_DIGEST_LENGTH |
| #define | CONFIG_HASH_STR_LENGTH (CONFIG_HASH_LENGTH * 2 + 1) |
Functions | |
| gint | cfg_ts_format_value (gchar *format) |
| void | cfg_bad_hostname_set (GlobalConfig *self, gchar *bad_hostname_re) |
| gint | cfg_lookup_mark_mode (const gchar *mark_mode) |
| void | cfg_set_mark_mode (GlobalConfig *self, const gchar *mark_mode) |
| gboolean | cfg_set_log_level (GlobalConfig *self, const gchar *log_level) |
| gboolean | cfg_load_module_with_args (GlobalConfig *cfg, const gchar *module_name, CfgArgs *args) |
| gboolean | cfg_load_module (GlobalConfig *cfg, const gchar *module_name) |
| void | cfg_load_forced_modules (GlobalConfig *self) |
| void | cfg_discover_candidate_modules (GlobalConfig *self) |
| gboolean | cfg_is_module_available (GlobalConfig *self, const gchar *module_name) |
| Plugin * | cfg_find_plugin (GlobalConfig *cfg, gint plugin_type, const gchar *plugin_name) |
| gpointer | cfg_parse_plugin (GlobalConfig *cfg, Plugin *plugin, CFG_LTYPE *yylloc, gpointer arg) |
| void | cfg_shutdown (GlobalConfig *cfg) |
| gboolean | cfg_is_shutting_down (GlobalConfig *cfg) |
| gboolean | cfg_init (GlobalConfig *cfg) |
| gboolean | cfg_deinit (GlobalConfig *cfg) |
| void | cfg_set_version_without_validation (GlobalConfig *self, gint version) |
| gboolean | cfg_set_version (GlobalConfig *self, gint version) |
| gboolean | cfg_set_current_version (GlobalConfig *self) |
| gboolean | cfg_allow_config_dups (GlobalConfig *self) |
| GlobalConfig * | cfg_new (gint version) |
| GlobalConfig * | cfg_new_snippet (void) |
| GlobalConfig * | cfg_new_subordinate (GlobalConfig *master) |
| void | cfg_set_global_paths (GlobalConfig *self) |
| gboolean | cfg_run_parser (GlobalConfig *self, CfgLexer *lexer, CfgParser *parser, gpointer *result, gpointer arg) |
| gboolean | cfg_run_parser_with_main_context (GlobalConfig *self, CfgLexer *lexer, CfgParser *parser, gpointer *result, gpointer arg, const gchar *desc) |
| void | cfg_set_user_config_id (GlobalConfig *self, const gchar *id) |
| void | cfg_format_id (GlobalConfig *self, GString *id) |
| gboolean | cfg_read_config (GlobalConfig *self, const gchar *fname, gchar *preprocess_into) |
| void | cfg_free (GlobalConfig *self) |
| void | cfg_persist_config_move (GlobalConfig *src, GlobalConfig *dest) |
| void | cfg_persist_config_add (GlobalConfig *cfg, const gchar *name, gpointer value, GDestroyNotify destroy) |
| gpointer | cfg_persist_config_fetch (GlobalConfig *cfg, const gchar *name) |
| gint | cfg_get_user_version (const GlobalConfig *cfg) |
| void | register_source_mangle_callback (GlobalConfig *src, mangle_callback cb) |
| gboolean | is_source_mangle_callback_registered (GlobalConfig *src, mangle_callback cb) |
| void | uregister_source_mangle_callback (GlobalConfig *src, mangle_callback cb) |
| const gchar * | cfg_get_filename (const GlobalConfig *cfg) |
| #define CONFIG_HASH_LENGTH SHA256_DIGEST_LENGTH |
| #define CONFIG_HASH_STR_LENGTH (CONFIG_HASH_LENGTH * 2 + 1) |
| gboolean cfg_allow_config_dups | ( | GlobalConfig * | self | ) |
| void cfg_bad_hostname_set | ( | GlobalConfig * | self, |
| gchar * | bad_hostname_re | ||
| ) |
| gboolean cfg_deinit | ( | GlobalConfig * | cfg | ) |
| void cfg_discover_candidate_modules | ( | GlobalConfig * | self | ) |
| Plugin* cfg_find_plugin | ( | GlobalConfig * | cfg, |
| gint | plugin_type, | ||
| const gchar * | plugin_name | ||
| ) |
| void cfg_format_id | ( | GlobalConfig * | self, |
| GString * | id | ||
| ) |
| void cfg_free | ( | GlobalConfig * | self | ) |
| const gchar* cfg_get_filename | ( | const GlobalConfig * | cfg | ) |
| gint cfg_get_user_version | ( | const GlobalConfig * | cfg | ) |
| gboolean cfg_init | ( | GlobalConfig * | cfg | ) |
| gboolean cfg_is_module_available | ( | GlobalConfig * | self, |
| const gchar * | module_name | ||
| ) |
| gboolean cfg_is_shutting_down | ( | GlobalConfig * | cfg | ) |
| void cfg_load_forced_modules | ( | GlobalConfig * | self | ) |
| gboolean cfg_load_module | ( | GlobalConfig * | cfg, |
| const gchar * | module_name | ||
| ) |
| gboolean cfg_load_module_with_args | ( | GlobalConfig * | cfg, |
| const gchar * | module_name, | ||
| CfgArgs * | args | ||
| ) |
| gint cfg_lookup_mark_mode | ( | const gchar * | mark_mode | ) |
| GlobalConfig* cfg_new | ( | gint | version | ) |
| GlobalConfig* cfg_new_snippet | ( | void | ) |
| GlobalConfig* cfg_new_subordinate | ( | GlobalConfig * | master | ) |
| gpointer cfg_parse_plugin | ( | GlobalConfig * | cfg, |
| Plugin * | plugin, | ||
| CFG_LTYPE * | yylloc, | ||
| gpointer | arg | ||
| ) |
| void cfg_persist_config_add | ( | GlobalConfig * | cfg, |
| const gchar * | name, | ||
| gpointer | value, | ||
| GDestroyNotify | destroy | ||
| ) |
| gpointer cfg_persist_config_fetch | ( | GlobalConfig * | cfg, |
| const gchar * | name | ||
| ) |
| void cfg_persist_config_move | ( | GlobalConfig * | src, |
| GlobalConfig * | dest | ||
| ) |
| gboolean cfg_read_config | ( | GlobalConfig * | self, |
| const gchar * | fname, | ||
| gchar * | preprocess_into | ||
| ) |
| gboolean cfg_run_parser | ( | GlobalConfig * | self, |
| CfgLexer * | lexer, | ||
| CfgParser * | parser, | ||
| gpointer * | result, | ||
| gpointer | arg | ||
| ) |
| gboolean cfg_run_parser_with_main_context | ( | GlobalConfig * | self, |
| CfgLexer * | lexer, | ||
| CfgParser * | parser, | ||
| gpointer * | result, | ||
| gpointer | arg, | ||
| const gchar * | desc | ||
| ) |
| gboolean cfg_set_current_version | ( | GlobalConfig * | self | ) |
| void cfg_set_global_paths | ( | GlobalConfig * | self | ) |
| gboolean cfg_set_log_level | ( | GlobalConfig * | self, |
| const gchar * | log_level | ||
| ) |
| void cfg_set_mark_mode | ( | GlobalConfig * | self, |
| const gchar * | mark_mode | ||
| ) |
| void cfg_set_user_config_id | ( | GlobalConfig * | self, |
| const gchar * | id | ||
| ) |
| gboolean cfg_set_version | ( | GlobalConfig * | self, |
| gint | version | ||
| ) |
| void cfg_set_version_without_validation | ( | GlobalConfig * | self, |
| gint | version | ||
| ) |
| void cfg_shutdown | ( | GlobalConfig * | cfg | ) |
| gint cfg_ts_format_value | ( | gchar * | format | ) |
| gboolean is_source_mangle_callback_registered | ( | GlobalConfig * | src, |
| mangle_callback | cb | ||
| ) |
| void register_source_mangle_callback | ( | GlobalConfig * | src, |
| mangle_callback | cb | ||
| ) |
| void uregister_source_mangle_callback | ( | GlobalConfig * | src, |
| mangle_callback | cb | ||
| ) |