The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
rlm_kafka.c
Go to the documentation of this file.
1 /*
2  * This program is is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 2 of the License, or (at
5  * your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
15  */
16 
17 /**
18  * $Id: 8d98efbaf311f85b45e923c01099aaa112a5dd9b $
19  * @file rlm_kafka.c
20  * @brief Kafka producer module
21  *
22  * @copyright 2022 Arran Cudbard-Bell (a.cudbardb@freeradius.org)
23  */
24 RCSID("$Id: 8d98efbaf311f85b45e923c01099aaa112a5dd9b $")
26 
27 #include <freeradius-devel/server/base.h>
28 #include <freeradius-devel/kafka/base.h>
29 
30 typedef struct {
31  char const *foo;
32 } rlm_kafka_t;
33 
34 /*
35  * The module name should be the only globally exported symbol.
36  * That is, everything else should be 'static'.
37  *
38  * If the module needs to temporarily modify it's instantiation
39  * data, the type should be changed to MODULE_TYPE_THREAD_UNSAFE.
40  * The server will then take care of ensuring that the module
41  * is single-threaded.
42  */
43 extern module_rlm_t rlm_kafka;
45  .common = {
46  .magic = MODULE_MAGIC_INIT,
47  .name = "kafka",
48  .inst_size = sizeof(rlm_kafka_t),
50  }
51 };
#define USES_APPLE_DEPRECATED_API
Definition: build.h:431
#define RCSID(id)
Definition: build.h:444
#define MODULE_MAGIC_INIT
Stop people using different module/library/server versions together.
Definition: dl_module.h:65
conf_parser_t const kafka_base_producer_config[]
Definition: base.c:1086
module_t common
Common fields presented by all modules.
Definition: module_rlm.h:37
static const conf_parser_t config[]
Definition: base.c:188
char const * foo
Definition: rlm_kafka.c:31
module_rlm_t rlm_kafka
Definition: rlm_kafka.c:44