1
- /* automatically generated by rust-bindgen 0.66.1 */
1
+ /* automatically generated by rust-bindgen 0.69.4 */
2
2
3
3
use libc:: { c_char, c_int, c_void, sockaddr, FILE } ;
4
4
use num_enum:: TryFromPrimitive ;
5
5
6
- pub const RD_KAFKA_VERSION : i32 = 33751295 ;
6
+ pub const RD_KAFKA_VERSION : i32 = 33882367 ;
7
7
pub const RD_KAFKA_DEBUG_CONTEXTS : & [ u8 ; 138 ] = b"all,generic,broker,topic,metadata,feature,queue,msg,protocol,cgrp,security,fetch,interceptor,plugin,consumer,admin,eos,mock,assignor,conf\0 " ;
8
8
pub const RD_KAFKA_DESTROY_F_NO_CONSUMER_CLOSE : i32 = 8 ;
9
9
pub const RD_KAFKA_OFFSET_BEGINNING : i32 = -2 ;
@@ -214,6 +214,7 @@ pub enum rd_kafka_resp_err_t {
214
214
RD_KAFKA_RESP_ERR__NOOP = -141 ,
215
215
RD_KAFKA_RESP_ERR__AUTO_OFFSET_RESET = -140 ,
216
216
RD_KAFKA_RESP_ERR__LOG_TRUNCATION = -139 ,
217
+ RD_KAFKA_RESP_ERR__INVALID_DIFFERENT_RECORD = -138 ,
217
218
RD_KAFKA_RESP_ERR__END = -100 ,
218
219
RD_KAFKA_RESP_ERR_UNKNOWN = -1 ,
219
220
RD_KAFKA_RESP_ERR_NO_ERROR = 0 ,
@@ -314,7 +315,14 @@ pub enum rd_kafka_resp_err_t {
314
315
RD_KAFKA_RESP_ERR_INVALID_UPDATE_VERSION = 95 ,
315
316
RD_KAFKA_RESP_ERR_FEATURE_UPDATE_FAILED = 96 ,
316
317
RD_KAFKA_RESP_ERR_PRINCIPAL_DESERIALIZATION_FAILURE = 97 ,
317
- RD_KAFKA_RESP_ERR_END_ALL = 98 ,
318
+ RD_KAFKA_RESP_ERR_UNKNOWN_TOPIC_ID = 100 ,
319
+ RD_KAFKA_RESP_ERR_FENCED_MEMBER_EPOCH = 110 ,
320
+ RD_KAFKA_RESP_ERR_UNRELEASED_INSTANCE_ID = 111 ,
321
+ RD_KAFKA_RESP_ERR_UNSUPPORTED_ASSIGNOR = 112 ,
322
+ RD_KAFKA_RESP_ERR_STALE_MEMBER_EPOCH = 113 ,
323
+ RD_KAFKA_RESP_ERR_UNKNOWN_SUBSCRIPTION_ID = 117 ,
324
+ RD_KAFKA_RESP_ERR_TELEMETRY_TOO_LARGE = 118 ,
325
+ RD_KAFKA_RESP_ERR_END_ALL = 119 ,
318
326
}
319
327
#[ repr( C ) ]
320
328
#[ derive( Debug , Copy , Clone ) ]
@@ -604,6 +612,9 @@ extern "C" {
604
612
extern "C" {
605
613
pub fn rd_kafka_message_errstr ( rkmessage : * const rd_kafka_message_t ) -> * const c_char ;
606
614
}
615
+ extern "C" {
616
+ pub fn rd_kafka_message_produce_errstr ( rkmessage : * const rd_kafka_message_t ) -> * const c_char ;
617
+ }
607
618
extern "C" {
608
619
pub fn rd_kafka_message_timestamp (
609
620
rkmessage : * const rd_kafka_message_t ,
@@ -1500,6 +1511,11 @@ extern "C" {
1500
1511
group_instance_id : * const c_char ,
1501
1512
) -> * mut rd_kafka_consumer_group_metadata_t ;
1502
1513
}
1514
+ extern "C" {
1515
+ pub fn rd_kafka_consumer_group_metadata_member_id (
1516
+ group_metadata : * const rd_kafka_consumer_group_metadata_t ,
1517
+ ) -> * const c_char ;
1518
+ }
1503
1519
extern "C" {
1504
1520
pub fn rd_kafka_consumer_group_metadata_destroy ( arg1 : * mut rd_kafka_consumer_group_metadata_t ) ;
1505
1521
}
@@ -3604,6 +3620,15 @@ extern "C" {
3604
3620
hi : i64 ,
3605
3621
) -> rd_kafka_resp_err_t ;
3606
3622
}
3623
+ extern "C" {
3624
+ pub fn rd_kafka_mock_partition_push_leader_response (
3625
+ mcluster : * mut rd_kafka_mock_cluster_t ,
3626
+ topic : * const c_char ,
3627
+ partition : c_int ,
3628
+ leader_id : i32 ,
3629
+ leader_epoch : i32 ,
3630
+ ) -> rd_kafka_resp_err_t ;
3631
+ }
3607
3632
extern "C" {
3608
3633
pub fn rd_kafka_mock_broker_set_down (
3609
3634
mcluster : * mut rd_kafka_mock_cluster_t ,
@@ -3661,6 +3686,12 @@ pub type rd_kafka_mock_request_t = rd_kafka_mock_request_s;
3661
3686
extern "C" {
3662
3687
pub fn rd_kafka_mock_request_destroy ( mreq : * mut rd_kafka_mock_request_t ) ;
3663
3688
}
3689
+ extern "C" {
3690
+ pub fn rd_kafka_mock_request_destroy_array (
3691
+ mreqs : * mut * mut rd_kafka_mock_request_t ,
3692
+ mreq_cnt : usize ,
3693
+ ) ;
3694
+ }
3664
3695
extern "C" {
3665
3696
pub fn rd_kafka_mock_request_id ( mreq : * mut rd_kafka_mock_request_t ) -> i32 ;
3666
3697
}
@@ -3679,3 +3710,16 @@ extern "C" {
3679
3710
extern "C" {
3680
3711
pub fn rd_kafka_mock_clear_requests ( mcluster : * mut rd_kafka_mock_cluster_t ) ;
3681
3712
}
3713
+ extern "C" {
3714
+ pub fn rd_kafka_mock_telemetry_set_requested_metrics (
3715
+ mcluster : * mut rd_kafka_mock_cluster_t ,
3716
+ metrics : * mut * mut c_char ,
3717
+ metrics_cnt : usize ,
3718
+ ) -> rd_kafka_resp_err_t ;
3719
+ }
3720
+ extern "C" {
3721
+ pub fn rd_kafka_mock_telemetry_set_push_interval (
3722
+ mcluster : * mut rd_kafka_mock_cluster_t ,
3723
+ push_interval_ms : i64 ,
3724
+ ) -> rd_kafka_resp_err_t ;
3725
+ }
0 commit comments