#include "syslog-ng.h"#include "cfg-tree.h"#include "cfg-lexer.h"#include "cfg-parser.h"#include "cfg-persist.h"#include "plugin.h"#include "persist-state.h"#include "template/templates.h"#include "host-resolve.h"#include "logmsg/type-hinting.h"#include "stats/stats.h"#include "healthcheck/healthcheck-stats.h"#include "dnscache.h"#include "file-perms.h"#include <sys/types.h>#include <regex.h>
Go to the source code of this file.
Classes | |
| struct | GlobalConfig |
Macros | |
| #define | cfg_is_config_version_older(__cfg, __req) |
| #define | __cfg_is_feature_enabled(cfg, min_version) |
| #define | cfg_is_feature_enabled(cfg, topic) __cfg_is_feature_enabled(cfg, FEATURE_ ## topic ## _MIN_VERSION) |
| #define | cfg_is_typing_feature_enabled(cfg) cfg_is_feature_enabled(cfg, TYPING) |
| #define | cfg_is_experimental_feature_enabled(cfg) 0 |
Typedefs | |
| typedef gboolean(* | mangle_callback) (GlobalConfig *cfg, LogMessage *msg, gpointer user_data) |
Enumerations | |
| enum | { MM_INTERNAL = 1 , MM_DST_IDLE , MM_HOST_IDLE , MM_PERIODICAL , MM_NONE , MM_GLOBAL } |
Functions | |
| gboolean | cfg_load_module_with_args (GlobalConfig *cfg, const gchar *module_name, CfgArgs *args) |
| gboolean | cfg_load_module (GlobalConfig *cfg, const gchar *module_name) |
| gboolean | cfg_is_module_available (GlobalConfig *self, const gchar *module_name) |
| void | cfg_discover_candidate_modules (GlobalConfig *self) |
| 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) |
| gboolean | cfg_allow_config_dups (GlobalConfig *self) |
| 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) |
| gint | cfg_tz_convert_value (gchar *convert) |
| gint | cfg_ts_format_value (gchar *format) |
| 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) |
| void | cfg_set_user_config_id (GlobalConfig *self, const gchar *id) |
| void | cfg_format_id (GlobalConfig *self, GString *id) |
| void | cfg_set_global_paths (GlobalConfig *self) |
| GlobalConfig * | cfg_new (gint version) |
| GlobalConfig * | cfg_new_snippet (void) |
| GlobalConfig * | cfg_new_subordinate (GlobalConfig *master) |
| 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_read_config (GlobalConfig *cfg, const gchar *fname, gchar *preprocess_into) |
| void | cfg_load_forced_modules (GlobalConfig *self) |
| void | cfg_shutdown (GlobalConfig *self) |
| gboolean | cfg_is_shutting_down (GlobalConfig *cfg) |
| void | cfg_free (GlobalConfig *self) |
| gboolean | cfg_init (GlobalConfig *cfg) |
| gboolean | cfg_deinit (GlobalConfig *cfg) |
| PersistConfig * | persist_config_new (void) |
| void | persist_config_free (PersistConfig *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) |
| 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) |
| gint | cfg_get_user_version (const GlobalConfig *cfg) |
| guint | cfg_get_parsed_version (const GlobalConfig *cfg) |
| const gchar * | cfg_get_filename (const GlobalConfig *cfg) |
| #define __cfg_is_feature_enabled | ( | cfg, | |
| min_version | |||
| ) |
| #define cfg_is_config_version_older | ( | __cfg, | |
| __req | |||
| ) |
| #define cfg_is_experimental_feature_enabled | ( | cfg | ) | 0 |
| #define cfg_is_feature_enabled | ( | cfg, | |
| topic | |||
| ) | __cfg_is_feature_enabled(cfg, FEATURE_ ## topic ## _MIN_VERSION) |
| #define cfg_is_typing_feature_enabled | ( | cfg | ) | cfg_is_feature_enabled(cfg, TYPING) |
| 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 | ) |
| guint cfg_get_parsed_version | ( | 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 * | cfg, |
| 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 * | self | ) |
| gint cfg_ts_format_value | ( | gchar * | format | ) |
| gint cfg_tz_convert_value | ( | gchar * | convert | ) |
| gboolean is_source_mangle_callback_registered | ( | GlobalConfig * | src, |
| mangle_callback | cb | ||
| ) |
| void persist_config_free | ( | PersistConfig * | self | ) |
| PersistConfig* persist_config_new | ( | void | ) |
| void register_source_mangle_callback | ( | GlobalConfig * | src, |
| mangle_callback | cb | ||
| ) |
| void uregister_source_mangle_callback | ( | GlobalConfig * | src, |
| mangle_callback | cb | ||
| ) |