syslog-ng source
synthetic-context.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016 Balabit
3  * Copyright (c) 2016 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 #ifndef CORRELATION_SYNTHETIC_CONTEXT_H_INCLUDED
24 #define CORRELATION_SYNTHETIC_CONTEXT_H_INCLUDED
25 
26 #include "syslog-ng.h"
27 #include "correlation-key.h"
28 #include "template/templates.h"
29 
30 typedef struct _SyntheticContext
31 {
32  gint timeout;
34  LogTemplate *id_template;
36 
37 void synthetic_context_set_context_id_template(SyntheticContext *self, LogTemplate *context_id_template);
39 void synthetic_context_set_context_scope(SyntheticContext *self, const gchar *scope, GError **error);
40 
43 
44 gint synthetic_context_lookup_context_scope(const gchar *context_scope);
45 
46 #endif
CorrelationScope
Definition: correlation-key.h:30
Definition: synthetic-context.h:31
CorrelationScope scope
Definition: synthetic-context.h:33
gint timeout
Definition: synthetic-context.h:32
LogTemplate * id_template
Definition: synthetic-context.h:34
gint synthetic_context_lookup_context_scope(const gchar *context_scope)
void synthetic_context_deinit(SyntheticContext *self)
Definition: synthetic-context.c:64
void synthetic_context_set_context_scope(SyntheticContext *self, const gchar *scope, GError **error)
Definition: synthetic-context.c:44
void synthetic_context_set_context_timeout(SyntheticContext *self, gint timeout)
Definition: synthetic-context.c:38
void synthetic_context_set_context_id_template(SyntheticContext *self, LogTemplate *context_id_template)
Definition: synthetic-context.c:30
void synthetic_context_init(SyntheticContext *self)
Definition: synthetic-context.c:57