syslog-ng source
kafka-props.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018 Kokan <kokaipeter@gmail.com>
3  * Copyright (c) 2014 Pierre-Yves Ritschard <pyr@spootnik.org>
4  * Copyright (c) 2019 Balabit
5  * Copyright (c) 2019 Balazs Scheidler
6  *
7  * This program is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU General Public License version 2 as published
9  * by the Free Software Foundation, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19  *
20  * As an additional exemption you are allowed to compile & link against the
21  * OpenSSL libraries as published by the OpenSSL project. See the file
22  * COPYING for details.
23  *
24  */
25 
26 #ifndef KAFKA_PROPS_H_INCLUDED
27 #define KAFKA_PROPS_H_INCLUDED
28 
29 #include "syslog-ng.h"
30 
31 typedef struct _KafkaProperty
32 {
33  gchar *name;
34  gchar *value;
36 
37 KafkaProperty *kafka_property_new(const gchar *name, const gchar *value);
39 void kafka_property_list_free(GList *l);
41 
42 #endif
const gchar * name
Definition: debugger.c:265
KafkaProperty * kafka_property_list_find_not_empty(GList *l, const gchar *name)
Definition: kafka-props.c:56
KafkaProperty * kafka_property_new(const gchar *name, const gchar *value)
Definition: kafka-props.c:32
void kafka_property_list_free(GList *l)
Definition: kafka-props.c:71
void kafka_property_free(KafkaProperty *self)
Definition: kafka-props.c:42
Definition: kafka-props.h:32
gchar * name
Definition: kafka-props.h:33
gchar * value
Definition: kafka-props.h:34
GString * value
Definition: test_decode.c:28