@@ -240,11 +240,11 @@ fn shared_kotlin_types() -> KotlinTypeMap {
240240fn main ( ) {
241241 let source = prebindgen:: Source :: new ( zenoh_flat:: PREBINDGEN_OUT_DIR ) ;
242242
243- // Phase 1: process #[prebindgen] structs from zenoh_flat::ext via a
243+ // Phase 1: process #[prebindgen] structs from zenoh_flat::structs via a
244244 // JNI decoder strategy. Each struct registers a type row in the
245245 // shared TypeRegistry and emits a `decode_<Name>` Rust fn.
246246 let mut struct_conv = TypesConverter :: builder ( JniDecoderStruct :: new (
247- "zenoh_flat::ext " ,
247+ "zenoh_flat::structs " ,
248248 "crate::errors::ZResult" ,
249249 ) )
250250 . type_registry ( shared_bindings ( ) )
@@ -253,7 +253,7 @@ fn main() {
253253 let struct_items: Vec < _ > = source
254254 . items_all ( )
255255 . filter ( |( item, loc) | {
256- matches ! ( item, syn:: Item :: Struct ( _) ) && loc. file . ends_with ( "/ext .rs" )
256+ matches ! ( item, syn:: Item :: Struct ( _) ) && loc. file . ends_with ( "/structs .rs" )
257257 } )
258258 . batching ( struct_conv. as_closure ( ) )
259259 . collect ( ) ;
@@ -340,7 +340,7 @@ fn main() {
340340 . build ( ) ;
341341
342342 for ( item, loc) in source. items_all ( ) . filter ( |( item, loc) | {
343- ( matches ! ( item, syn:: Item :: Struct ( _) ) && loc. file . ends_with ( "/ext .rs" ) )
343+ ( matches ! ( item, syn:: Item :: Struct ( _) ) && loc. file . ends_with ( "/structs .rs" ) )
344344 || ( matches ! ( item, syn:: Item :: Fn ( _) ) && loc. file . ends_with ( "/session.rs" ) )
345345 } ) {
346346 kotlin. add_item ( & item, & loc) ;
0 commit comments