~ubuntu-branches/ubuntu/trusty/syslog-ng/trusty-proposed

« back to all changes in this revision

Viewing changes to lib/cfg.h

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS), Gergely Nagy
  • Date: 2011-10-11 14:30:48 UTC
  • mfrom: (1.3.7)
  • Revision ID: package-import@ubuntu.com-20111011143048-r1iljux9xbvj3lwh
Tags: 3.3.1.dfsg-1
* New upstream release with important fixes from upstream git tree with
  non-free manpages removed.
* Drop syslog-ng.conf(5) (closes: #496521).
* syslog-ng(8) is generated, and does not mention -Q anymore
  (closes: #616069).
* Supports CAP_SYSLOG on recent kernels (closes: #630172).
* Does not use g_timeout_add_seconds anymore (closes: #609154).

[ Gergely Nagy <algernon@madhouse-project.org> ]
* Update debian/copyright to DEP-5 format.
* Simplified the logrotate file by merging identical entries.
* Include local configuration files from /etc/syslog-ng/conf.d/ (Closes:
  #609050).
* Update syslog-ng.conf to be fully 3.3 compliant.
* Compress both source and binaries (except the syslog-ng meta
  package) with xz, instead of gzip.
* Use dpkg triggers to restart syslog-ng when appropriate.
* Include DFSG-free manual pages for all binaries.
* Build with Hardening enabled.
* Mention syslog(3) in /etc/default/syslog-ng, instead of
  <linux/kernel.h> (Closes: #608605)
* Support 'status' in the init script.
  Patch from Peter Eisentraut <petere@debian.org> (Closes: #644458)
* Build-Depend on libevtlog-dev (>= 0.2.12-5~) for correct shlibs.
* Use [linux-any] in Build-Depends instead of hardcoded links.
  (Closes: #634715)
* Use $SYSLOGNG_OPTS in the init script when reloading syslog-ng.
  (Closes: #589081)

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
struct _LogCenter;
43
43
struct _LogTemplate;
44
44
 
 
45
#define CFG_CURRENT_VERSION 0x0303
 
46
#define CFG_CURRENT_VERSION_STRING "3.3"
45
47
 
46
48
/* configuration data kept between configuration reloads */
47
49
typedef struct _PersistConfig PersistConfig;
61
63
  gint mark_freq;
62
64
  gint flush_lines;
63
65
  gint flush_timeout;
 
66
  gboolean threaded;
64
67
  gboolean chain_hostnames;
65
68
  gboolean normalize_hostnames;
66
69
  gboolean keep_hostname;
75
78
  gchar *dns_cache_hosts;
76
79
  gint time_reopen;
77
80
  gint time_reap;
78
 
  gint time_sleep;
 
81
  gint suppress;
79
82
 
80
83
  gint log_fifo_size;
81
 
  gint log_fetch_limit;
82
 
  gint log_iw_size;
83
84
  gint log_msg_size;
84
85
 
85
86
  gint follow_freq;
118
119
  
119
120
};
120
121
 
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);
130
131
 
131
132
void cfg_file_owner_set(GlobalConfig *self, gchar *owner);
132
133
void cfg_file_group_set(GlobalConfig *self, gchar *group);
141
142
 
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);
151
 
 
152
 
 
 
150
 
 
151
 
 
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);
155
157