syslog-ng source
application.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 APPMODEL_APPLICATION_H_INCLUDED
25 #define APPMODEL_APPLICATION_H_INCLUDED
26 
27 #include "syslog-ng.h"
28 
29 typedef struct _Application
30 {
31  gchar *name;
32  gchar *topic;
33  gchar *filter_expr;
34  gchar *parser_expr;
35 } Application;
36 
37 void application_set_filter(Application *self, const gchar *filter_expr);
38 void application_set_parser(Application *self, const gchar *parser_expr);
39 
40 Application *application_new(const gchar *name, const gchar *topic);
42 
43 #endif
void application_free(Application *s)
Definition: application.c:51
void application_set_parser(Application *self, const gchar *parser_expr)
Definition: application.c:34
Application * application_new(const gchar *name, const gchar *topic)
Definition: application.c:41
void application_set_filter(Application *self, const gchar *filter_expr)
Definition: application.c:27
const gchar * name
Definition: debugger.c:265
Definition: application.h:30
gchar * parser_expr
Definition: application.h:34
gchar * topic
Definition: application.h:32
gchar * name
Definition: application.h:31
gchar * filter_expr
Definition: application.h:33