syslog-ng source
kafka-topic-parts.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_TOPIC_PARTS_H_INCLUDED
27 #define KAFKA_TOPIC_PARTS_H_INCLUDED
28 
29 #include "syslog-ng.h"
30 
31 typedef struct _KafkaTopicParts
32 {
33  gchar *topic;
34  GList *partitions;
36 
37 KafkaTopicParts *kafka_tps_new(const gchar *topic, GList *partitions);
39 void kafka_tps_list_free(GList *l);
40 gboolean kafka_tps_equal(gconstpointer tps1, gconstpointer tps2);
41 
42 #endif
void kafka_tps_free(KafkaTopicParts *self)
Definition: kafka-topic-parts.c:58
void kafka_tps_list_free(GList *l)
Definition: kafka-topic-parts.c:66
gboolean kafka_tps_equal(gconstpointer tps1, gconstpointer tps2)
Definition: kafka-topic-parts.c:42
KafkaTopicParts * kafka_tps_new(const gchar *topic, GList *partitions)
Definition: kafka-topic-parts.c:31
Definition: kafka-topic-parts.h:32
gchar * topic
Definition: kafka-topic-parts.h:33
GList * partitions
Definition: kafka-topic-parts.h:34