syslog-ng source
pubsub-dest.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2024 Axoflow
3  * Copyright (c) 2024 Attila Szakacs <attila.szakacs@axoflow.com>
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 PUBSUB_DEST_H
25 #define PUBSUB_DEST_H
26 
27 #include "syslog-ng.h"
28 
29 #include "compat/cpp-start.h"
30 #include "driver.h"
31 #include "template/templates.h"
32 
33 LogDriver *pubsub_dd_new(GlobalConfig *cfg);
34 
35 void pubsub_dd_set_project(LogDriver *d, LogTemplate *project);
36 void pubsub_dd_set_topic(LogDriver *d, LogTemplate *topic);
37 void pubsub_dd_set_data(LogDriver *d, LogTemplate *data);
38 gboolean pubsub_dd_set_protovar(LogDriver *d, LogTemplate *proto);
39 void pubsub_dd_add_attribute(LogDriver *d, const gchar *name, LogTemplate *value);
40 
41 #include "compat/cpp-end.h"
42 
43 #endif
const gchar * name
Definition: debugger.c:265
void pubsub_dd_add_attribute(LogDriver *d, const gchar *name, LogTemplate *value)
void pubsub_dd_set_project(LogDriver *d, LogTemplate *project)
LogDriver * pubsub_dd_new(GlobalConfig *cfg)
void pubsub_dd_set_data(LogDriver *d, LogTemplate *data)
gboolean pubsub_dd_set_protovar(LogDriver *d, LogTemplate *proto)
void pubsub_dd_set_topic(LogDriver *d, LogTemplate *topic)
GlobalConfig * cfg
Definition: test_batched_ack_tracker.c:34
GString * value
Definition: test_decode.c:28