Skip to content

Commit 4c821cd

Browse files
committed
librdkafka static bundle v1.7.0
1 parent f0d7516 commit 4c821cd

File tree

9 files changed

+76
-7
lines changed

9 files changed

+76
-7
lines changed

kafka/build_darwin.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
package kafka
77

8-
// #cgo CFLAGS: -DUSE_VENDORED_LIBRDKAFKA
8+
// #cgo CFLAGS: -DUSE_VENDORED_LIBRDKAFKA -DLIBRDKAFKA_STATICLIB
99
// #cgo LDFLAGS: ${SRCDIR}/librdkafka_vendor/librdkafka_darwin.a -lz -lm -lsasl2 -ldl -lpthread
1010
import "C"
1111

1212
// LibrdkafkaLinkInfo explains how librdkafka was linked to the Go client
13-
const LibrdkafkaLinkInfo = "static darwin from librdkafka-static-bundle-v1.6.1.tgz"
13+
const LibrdkafkaLinkInfo = "static darwin from librdkafka-static-bundle-v1.7.0.tgz"

kafka/build_glibc_linux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
package kafka
77

8-
// #cgo CFLAGS: -DUSE_VENDORED_LIBRDKAFKA
8+
// #cgo CFLAGS: -DUSE_VENDORED_LIBRDKAFKA -DLIBRDKAFKA_STATICLIB
99
// #cgo LDFLAGS: ${SRCDIR}/librdkafka_vendor/librdkafka_glibc_linux.a -lm -ldl -lpthread -lrt
1010
import "C"
1111

1212
// LibrdkafkaLinkInfo explains how librdkafka was linked to the Go client
13-
const LibrdkafkaLinkInfo = "static glibc_linux from librdkafka-static-bundle-v1.6.1.tgz"
13+
const LibrdkafkaLinkInfo = "static glibc_linux from librdkafka-static-bundle-v1.7.0.tgz"

kafka/build_musl_linux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
package kafka
77

8-
// #cgo CFLAGS: -DUSE_VENDORED_LIBRDKAFKA
8+
// #cgo CFLAGS: -DUSE_VENDORED_LIBRDKAFKA -DLIBRDKAFKA_STATICLIB
99
// #cgo LDFLAGS: ${SRCDIR}/librdkafka_vendor/librdkafka_musl_linux.a -lm -ldl -lpthread -lrt -lpthread -lrt
1010
import "C"
1111

1212
// LibrdkafkaLinkInfo explains how librdkafka was linked to the Go client
13-
const LibrdkafkaLinkInfo = "static musl_linux from librdkafka-static-bundle-v1.6.1.tgz"
13+
const LibrdkafkaLinkInfo = "static musl_linux from librdkafka-static-bundle-v1.7.0.tgz"

kafka/build_windows.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// +build !dynamic
2+
3+
4+
// This file was auto-generated by librdkafka_vendor/bundle-import.sh, DO NOT EDIT.
5+
6+
package kafka
7+
8+
// #cgo CFLAGS: -DUSE_VENDORED_LIBRDKAFKA -DLIBRDKAFKA_STATICLIB
9+
// #cgo LDFLAGS: ${SRCDIR}/librdkafka_vendor/librdkafka_windows.a -lws2_32 -lsecur32 -lcrypt32
10+
import "C"
11+
12+
// LibrdkafkaLinkInfo explains how librdkafka was linked to the Go client
13+
const LibrdkafkaLinkInfo = "static windows from librdkafka-static-bundle-v1.7.0.tgz"
35.6 KB
Binary file not shown.
54.7 KB
Binary file not shown.
279 KB
Binary file not shown.
9.57 MB
Binary file not shown.

kafka/librdkafka_vendor/rdkafka.h

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ typedef SSIZE_T ssize_t;
158158
* @remark This value should only be used during compile time,
159159
* for runtime checks of version use rd_kafka_version()
160160
*/
161-
#define RD_KAFKA_VERSION 0x010601ff
161+
#define RD_KAFKA_VERSION 0x010700ff
162162

163163
/**
164164
* @brief Returns the librdkafka version as integer.
@@ -2311,6 +2311,25 @@ rd_kafka_conf_set_ssl_cert (rd_kafka_conf_t *conf,
23112311
char *errstr, size_t errstr_size);
23122312

23132313

2314+
/**
2315+
* @brief Set callback_data for OpenSSL engine.
2316+
*
2317+
* @param conf Configuration object.
2318+
* @param callback_data passed to engine callbacks,
2319+
* e.g. \c ENGINE_load_ssl_client_cert.
2320+
*
2321+
* @remark The \c ssl.engine.location configuration must be set for this
2322+
* to have affect.
2323+
*
2324+
* @remark The memory pointed to by \p value must remain valid for the
2325+
* lifetime of the configuration object and any Kafka clients that
2326+
* use it.
2327+
*/
2328+
RD_EXPORT
2329+
void rd_kafka_conf_set_engine_callback_data (rd_kafka_conf_t *conf,
2330+
void *callback_data);
2331+
2332+
23142333
/**
23152334
* @brief Sets the application's opaque pointer that will be passed to callbacks
23162335
*
@@ -3093,6 +3112,43 @@ rd_kafka_offsets_for_times (rd_kafka_t *rk,
30933112
int timeout_ms);
30943113

30953114

3115+
3116+
/**
3117+
* @brief Allocate and zero memory using the same allocator librdkafka uses.
3118+
*
3119+
* This is typically an abstraction for the calloc(3) call and makes sure
3120+
* the application can use the same memory allocator as librdkafka for
3121+
* allocating pointers that are used by librdkafka.
3122+
*
3123+
* \p rk can be set to return memory allocated by a specific \c rk instance
3124+
* otherwise pass NULL for \p rk.
3125+
*
3126+
* @remark Memory allocated by rd_kafka_mem_calloc() must be freed using
3127+
* rd_kafka_mem_free()
3128+
*/
3129+
RD_EXPORT
3130+
void *rd_kafka_mem_calloc (rd_kafka_t *rk, size_t num, size_t size);
3131+
3132+
3133+
3134+
/**
3135+
* @brief Allocate memory using the same allocator librdkafka uses.
3136+
*
3137+
* This is typically an abstraction for the malloc(3) call and makes sure
3138+
* the application can use the same memory allocator as librdkafka for
3139+
* allocating pointers that are used by librdkafka.
3140+
*
3141+
* \p rk can be set to return memory allocated by a specific \c rk instance
3142+
* otherwise pass NULL for \p rk.
3143+
*
3144+
* @remark Memory allocated by rd_kafka_mem_malloc() must be freed using
3145+
* rd_kafka_mem_free()
3146+
*/
3147+
RD_EXPORT
3148+
void *rd_kafka_mem_malloc (rd_kafka_t *rk, size_t size);
3149+
3150+
3151+
30963152
/**
30973153
* @brief Free pointer returned by librdkafka
30983154
*

0 commit comments

Comments
 (0)