syslog-ng source
cfg-walker.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019 Balabit
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library 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 GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; 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 CFG_WALKER_H_INCLUDED
25 #define CFG_WALKER_H_INCLUDED
26 
27 #include "syslog-ng.h"
28 
29 typedef enum
30 {
34 
35 typedef struct
36 {
37  LogPipe *from;
38  LogPipe *to;
40 } Arc;
41 
42 void cfg_walker_get_graph(GPtrArray *start_nodes, GHashTable **nodes, GHashTable **arcs);
43 Arc *arc_new(LogPipe *from, LogPipe *to, ArcType arc_type);
44 void arc_free(Arc *self);
45 
46 #endif
ArcType
Definition: cfg-walker.h:30
@ ARC_TYPE_NEXT_HOP
Definition: cfg-walker.h:32
@ ARC_TYPE_PIPE_NEXT
Definition: cfg-walker.h:31
void arc_free(Arc *self)
Definition: cfg-walker.c:39
Arc * arc_new(LogPipe *from, LogPipe *to, ArcType arc_type)
Definition: cfg-walker.c:28
void cfg_walker_get_graph(GPtrArray *start_nodes, GHashTable **nodes, GHashTable **arcs)
Definition: cfg-walker.c:83
Definition: cfg-walker.h:36
LogPipe * from
Definition: cfg-walker.h:37
LogPipe * to
Definition: cfg-walker.h:38
ArcType arc_type
Definition: cfg-walker.h:39