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

« back to all changes in this revision

Viewing changes to src/templates.h

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2010-03-28 19:47:36 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100328194736-1ob7kh1qr0fy8b9k
Tags: 3.1.0-1
* New upstream release.
* Fix path of syslog logfile (closes: #575722) and use tty10 instead of
  vc/10 to log on console.
* Provide syslog-ng in initscript (closes: #575723).

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
  LOG_TEMPLATE_ERROR_COMPILE,
42
42
};
43
43
 
44
 
 
45
44
typedef struct _LogTemplate
46
45
{
47
46
  gint ref_cnt;
52
51
  gboolean def_inline;
53
52
} LogTemplate;
54
53
 
 
54
typedef struct _LogMacroDef
 
55
{
 
56
  char *name;
 
57
  int id;
 
58
} LogMacroDef;
 
59
 
 
60
extern LogMacroDef macros[];
 
61
 
55
62
void log_template_set_escape(LogTemplate *self, gboolean enable);
56
63
gboolean log_template_compile(LogTemplate *self, GError **error);
57
64
void log_template_format(LogTemplate *self, LogMessage *lm, guint macro_flags, gint ts_format, TimeZoneInfo *zone_info, gint frac_digits, gint32 seq_num, GString *result);
58
65
void log_template_append_format(LogTemplate *self, LogMessage *lm, guint macro_flags, gint ts_format, TimeZoneInfo *zone_info, gint frac_digits, gint32 seq_num, GString *result);
 
66
gboolean log_macro_expand(GString *result, gint id, guint32 flags, gint ts_format, TimeZoneInfo *zone_info, gint frac_digits, gint32 seq_num, LogMessage *msg);
 
67
 
59
68
 
60
69
LogTemplate *log_template_new(gchar *name, const gchar *template);
61
70
LogTemplate *log_template_ref(LogTemplate *s);