@@ -59,9 +59,12 @@ internal enum AdminOp
5959 CreatePartitions = 3 ,
6060 AlterConfigs = 4 ,
6161 DescribeConfigs = 5 ,
62+ DeleteRecords = 6 ,
63+ DeleteGroups = 7 ,
64+ DeleteConsumerGroupOffsets = 8 ,
6265 CreateAcls = 9 ,
6366 DescribeAcls = 10 ,
64- DeleteAcls = 11 ,
67+ DeleteAcls = 11
6568 }
6669
6770 public enum EventType : int
@@ -279,6 +282,12 @@ static bool SetDelegates(Type nativeMethodsClass)
279282 _DeleteTopics = ( Action < IntPtr , IntPtr [ ] , UIntPtr , IntPtr , IntPtr > ) methods . Single ( m => m . Name == "rd_kafka_DeleteTopics" ) . CreateDelegate ( typeof ( Action < IntPtr , IntPtr [ ] , UIntPtr , IntPtr , IntPtr > ) ) ;
280283 _DeleteTopics_result_topics = ( _DeleteTopics_result_topics_delegate ) methods . Single ( m => m . Name == "rd_kafka_DeleteTopics_result_topics" ) . CreateDelegate ( typeof ( _DeleteTopics_result_topics_delegate ) ) ;
281284
285+ _DeleteGroup_new = ( Func < string , IntPtr > ) methods . Single ( m => m . Name == "rd_kafka_DeleteGroup_new" ) . CreateDelegate ( typeof ( Func < string , IntPtr > ) ) ;
286+ _DeleteGroup_destroy = ( Action < IntPtr > ) methods . Single ( m => m . Name == "rd_kafka_DeleteGroup_destroy" ) . CreateDelegate ( typeof ( Action < IntPtr > ) ) ;
287+
288+ _DeleteGroups = ( Action < IntPtr , IntPtr [ ] , UIntPtr , IntPtr , IntPtr > ) methods . Single ( m => m . Name == "rd_kafka_DeleteGroups" ) . CreateDelegate ( typeof ( Action < IntPtr , IntPtr [ ] , UIntPtr , IntPtr , IntPtr > ) ) ;
289+ _DeleteGroups_result_groups = ( _DeleteGroups_result_groups_delegate ) methods . Single ( m => m . Name == "rd_kafka_DeleteGroups_result_groups" ) . CreateDelegate ( typeof ( _DeleteGroups_result_groups_delegate ) ) ;
290+
282291 _DeleteRecords_new = ( Func < IntPtr , IntPtr > ) methods . Single ( m => m . Name == "rd_kafka_DeleteRecords_new" ) . CreateDelegate ( typeof ( Func < IntPtr , IntPtr > ) ) ;
283292 _DeleteRecords_destroy = ( Action < IntPtr > ) methods . Single ( m => m . Name == "rd_kafka_DeleteRecords_destroy" ) . CreateDelegate ( typeof ( Action < IntPtr > ) ) ;
284293
@@ -346,6 +355,9 @@ static bool SetDelegates(Type nativeMethodsClass)
346355 _topic_result_error_string = ( Func < IntPtr , IntPtr > ) methods . Single ( m => m . Name == "rd_kafka_topic_result_error_string" ) . CreateDelegate ( typeof ( Func < IntPtr , IntPtr > ) ) ;
347356 _topic_result_name = ( Func < IntPtr , IntPtr > ) methods . Single ( m => m . Name == "rd_kafka_topic_result_name" ) . CreateDelegate ( typeof ( Func < IntPtr , IntPtr > ) ) ;
348357
358+ _group_result_name = ( Func < IntPtr , IntPtr > ) methods . Single ( m => m . Name == "rd_kafka_group_result_name" ) . CreateDelegate ( typeof ( Func < IntPtr , IntPtr > ) ) ;
359+ _group_result_error = ( Func < IntPtr , IntPtr > ) methods . Single ( m => m . Name == "rd_kafka_group_result_error" ) . CreateDelegate ( typeof ( Func < IntPtr , IntPtr > ) ) ;
360+
349361 _destroy = ( Action < IntPtr > ) methods . Single ( m => m . Name == "rd_kafka_destroy" ) . CreateDelegate ( typeof ( Action < IntPtr > ) ) ;
350362 _destroy_flags = ( Action < IntPtr , IntPtr > ) methods . Single ( m => m . Name == "rd_kafka_destroy_flags" ) . CreateDelegate ( typeof ( Action < IntPtr , IntPtr > ) ) ;
351363
@@ -1201,6 +1213,28 @@ out UIntPtr cntp
12011213 ) => _DeleteTopics_result_topics ( result , out cntp ) ;
12021214
12031215
1216+ private static Func < string , IntPtr > _DeleteGroup_new ;
1217+ internal static IntPtr DeleteGroup_new (
1218+ string group ) => _DeleteGroup_new ( group ) ;
1219+
1220+ private static Action < IntPtr > _DeleteGroup_destroy ;
1221+ internal static void DeleteGroup_destroy ( IntPtr del_group ) => _DeleteGroup_destroy ( del_group ) ;
1222+
1223+ private static Action < IntPtr , IntPtr [ ] , UIntPtr , IntPtr , IntPtr > _DeleteGroups ;
1224+ internal static void DeleteGroups (
1225+ IntPtr rk ,
1226+ IntPtr [ ] del_groups ,
1227+ UIntPtr del_groups_cnt ,
1228+ IntPtr options ,
1229+ IntPtr rkqu ) => _DeleteGroups ( rk , del_groups , del_groups_cnt , options , rkqu ) ;
1230+
1231+ private delegate IntPtr _DeleteGroups_result_groups_delegate ( IntPtr result , out UIntPtr cntp ) ;
1232+ private static _DeleteGroups_result_groups_delegate _DeleteGroups_result_groups ;
1233+ internal static IntPtr DeleteGroups_result_groups (
1234+ IntPtr result ,
1235+ out UIntPtr cntp ) => _DeleteGroups_result_groups ( result , out cntp ) ;
1236+
1237+
12041238 private static Func < string , UIntPtr , StringBuilder , UIntPtr , IntPtr > _NewPartitions_new ;
12051239 internal static IntPtr NewPartitions_new (
12061240 string topic ,
@@ -1540,6 +1574,12 @@ out UIntPtr matchingAclsCntp
15401574 private static Func < IntPtr , IntPtr > _topic_result_name ;
15411575 internal static IntPtr topic_result_name ( IntPtr topicres ) => _topic_result_name ( topicres ) ;
15421576
1577+ private static Func < IntPtr , IntPtr > _group_result_name ;
1578+ internal static IntPtr group_result_name ( IntPtr groupres ) => _group_result_name ( groupres ) ;
1579+
1580+ private static Func < IntPtr , IntPtr > _group_result_error ;
1581+ internal static IntPtr group_result_error ( IntPtr groupres ) => _group_result_error ( groupres ) ;
1582+
15431583
15441584 //
15451585 // Queues
0 commit comments