syslog-ng source
rewrite-expr.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2002-2012 Balabit
3  * Copyright (c) 1998-2012 Balázs Scheidler
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  *
19  * As an additional exemption you are allowed to compile & link against the
20  * OpenSSL libraries as published by the OpenSSL project. See the file
21  * COPYING for details.
22  *
23  */
24 
25 #ifndef REWRITE_H_INCLUDED
26 #define REWRITE_H_INCLUDED
27 
28 #include "logpipe.h"
29 #include "filter/filter-expr.h"
30 
31 typedef struct _LogRewrite LogRewrite;
32 
34 {
35  LogPipe super;
37  FilterExprNode *condition;
38  void (*process)(LogRewrite *s, LogMessage **pmsg, const LogPathOptions *path_options);
39  gchar *name;
40 };
41 
42 /* LogRewrite, abstract class */
43 gboolean log_rewrite_init_method(LogPipe *s);
44 void log_rewrite_clone_method(LogRewrite *dst, const LogRewrite *src);
45 
46 void log_rewrite_set_condition(LogRewrite *s, FilterExprNode *condition);
47 void log_rewrite_init_instance(LogRewrite *self, GlobalConfig *cfg);
48 void log_rewrite_free_method(LogPipe *self);
49 
50 #endif
guint32 NVHandle
Definition: nvtable.h:35
void log_rewrite_set_condition(LogRewrite *s, FilterExprNode *condition)
Definition: rewrite-expr.c:30
gboolean log_rewrite_init_method(LogPipe *s)
Definition: rewrite-expr.c:72
void log_rewrite_free_method(LogPipe *self)
Definition: rewrite-expr.c:86
void log_rewrite_clone_method(LogRewrite *dst, const LogRewrite *src)
Definition: rewrite-expr.c:64
void log_rewrite_init_instance(LogRewrite *self, GlobalConfig *cfg)
Definition: rewrite-expr.c:97
Definition: rewrite-expr.h:34
void(* process)(LogRewrite *s, LogMessage **pmsg, const LogPathOptions *path_options)
Definition: rewrite-expr.h:38
gchar * name
Definition: rewrite-expr.h:39
FilterExprNode * condition
Definition: rewrite-expr.h:37
LogPipe super
Definition: rewrite-expr.h:35
NVHandle value_handle
Definition: rewrite-expr.h:36
GlobalConfig * cfg
Definition: test_batched_ack_tracker.c:34
LogPathOptions path_options
Definition: test_wildcard_file_reader.c:62