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

« back to all changes in this revision

Viewing changes to src/logpatterns.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:
34
34
{
35
35
  gchar *class;
36
36
  gchar *rule_id;
 
37
  GArray *tags;
 
38
  GPtrArray *values;
 
39
  guint ref_cnt;
37
40
} LogDBResult;
38
41
 
 
42
/*
 
43
 * This class encapsulates a set of program related rules in the
 
44
 * pattern database. Its instances are stored as "value" in the
 
45
 * program name RADIX tree. It basically contains another RADIX for
 
46
 * the per-program patterns.
 
47
 */
 
48
typedef struct _LogDBProgram
 
49
{
 
50
  RNode *rules;
 
51
} LogDBProgram;
39
52
 
40
53
typedef struct _LogPatternDatabase
41
54
{
44
57
  gchar *pub_date;
45
58
} LogPatternDatabase;
46
59
 
47
 
LogDBResult *log_pattern_database_lookup(LogPatternDatabase *self, LogMessage *msg);
 
60
LogDBResult *log_pattern_database_lookup(LogPatternDatabase *self, LogMessage *msg, GSList **dbg_list);
48
61
gboolean log_pattern_database_load(LogPatternDatabase *self, const gchar *config);
49
62
void log_pattern_database_free(LogPatternDatabase *self);
50
63