121
void cfg_add_source(GlobalConfig *configuration, struct _LogSourceGroup *group);
122
void cfg_add_dest(GlobalConfig *configuration, struct _LogDestGroup *group);
123
void cfg_add_filter(GlobalConfig *configuration, struct _LogProcessRule *rule);
124
void cfg_add_parser(GlobalConfig *cfg, struct _LogProcessRule *rule);
125
void cfg_add_rewrite(GlobalConfig *cfg, struct _LogProcessRule *rule);
122
gboolean cfg_add_source(GlobalConfig *configuration, struct _LogSourceGroup *group);
123
gboolean cfg_add_dest(GlobalConfig *configuration, struct _LogDestGroup *group);
124
gboolean cfg_add_filter(GlobalConfig *configuration, struct _LogProcessRule *rule);
125
gboolean cfg_add_parser(GlobalConfig *cfg, struct _LogProcessRule *rule);
126
gboolean cfg_add_rewrite(GlobalConfig *cfg, struct _LogProcessRule *rule);
126
127
void cfg_add_connection(GlobalConfig *configuration, struct _LogConnection *conn);
127
void cfg_add_template(GlobalConfig *cfg, struct _LogTemplate *template);
128
struct _LogTemplate *cfg_lookup_template(GlobalConfig *cfg, const gchar *name);
129
struct _LogTemplate *cfg_check_inline_template(GlobalConfig *cfg, const gchar *template_or_name);
128
gboolean cfg_add_template(GlobalConfig *cfg, struct _LogTemplate *template);
129
LogTemplate *cfg_lookup_template(GlobalConfig *cfg, const gchar *name);
130
LogTemplate *cfg_check_inline_template(GlobalConfig *cfg, const gchar *template_or_name, GError **error);
131
132
void cfg_file_owner_set(GlobalConfig *self, gchar *owner);
132
133
void cfg_file_group_set(GlobalConfig *self, gchar *group);
142
143
void cfg_set_version(GlobalConfig *self, gint version);
143
144
GlobalConfig *cfg_new(gint version);
144
gboolean cfg_run_parser(GlobalConfig *self, CfgLexer *lexer, CfgParser *parser, gpointer *result);
145
gboolean cfg_run_parser(GlobalConfig *self, CfgLexer *lexer, CfgParser *parser, gpointer *result, gpointer arg);
145
146
gboolean cfg_read_config(GlobalConfig *cfg, gchar *fname, gboolean syntax_only, gchar *preprocess_into);
146
147
void cfg_free(GlobalConfig *self);
147
148
gboolean cfg_init(GlobalConfig *cfg);
148
149
gboolean cfg_deinit(GlobalConfig *cfg);
149
GlobalConfig *cfg_reload_config(gchar *fname, GlobalConfig *cfg);
150
gboolean cfg_initial_init(GlobalConfig *cfg, const gchar *persist_filename);
152
PersistConfig *persist_config_new(void);
153
void persist_config_free(PersistConfig *self);
154
void cfg_persist_config_move(GlobalConfig *src, GlobalConfig *dest);
153
155
void cfg_persist_config_add(GlobalConfig *cfg, gchar *name, gpointer value, GDestroyNotify destroy, gboolean force);
154
156
gpointer cfg_persist_config_fetch(GlobalConfig *cfg, gchar *name);