syslog-ng source
pdb-context.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2002-2017 Balabit
3
* Copyright (c) 1998-2017 Balázs Scheidler
4
*
5
* This program is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License version 2 as published
7
* by the Free Software Foundation, or (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
*
18
* As an additional exemption you are allowed to compile & link against the
19
* OpenSSL libraries as published by the OpenSSL project. See the file
20
* COPYING for details.
21
*
22
*/
23
24
#ifndef CORRELATION_PDB_CONTEXT_H_INCLUDED
25
#define CORRELATION_PDB_CONTEXT_H_INCLUDED
26
27
#include "
pdb-rule.h
"
28
29
/**************************************************************************
30
* PDBContext, represents a correlation state in the state hash table, is
31
* marked with PSK_CONTEXT in the hash table key
32
**************************************************************************/
33
34
/* This class encapsulates a correlation context, keyed by CorrelationKey, type == PSK_RULE. */
35
typedef
struct
_PDBContext
36
{
37
CorrelationContext
super
;
38
/* back reference to the last rule touching this context */
39
PDBRule *
rule
;
40
}
PDBContext
;
41
42
PDBContext
*
pdb_context_new
(
CorrelationKey
*
key
);
43
44
#endif
pdb_context_new
PDBContext * pdb_context_new(CorrelationKey *key)
Definition:
pdb-context.c:36
pdb-rule.h
CorrelationKey
Definition:
correlation-key.h:47
PDBContext
Definition:
pdb-context.h:36
PDBContext::rule
PDBRule * rule
Definition:
pdb-context.h:39
PDBContext::super
CorrelationContext super
Definition:
pdb-context.h:37
key
struct tm key
Definition:
cache.c:63
modules
correlation
pdb-context.h
Generated by
1.9.1