Skip to content

Commit 84d621e

Browse files
committed
renamed to structs
1 parent 9616f32 commit 84d621e

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

zenoh-flat/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub const FEATURES: &str = prebindgen_proc_macro::features!();
66
pub mod config;
77
pub mod errors;
88
#[cfg(feature = "zenoh-ext")]
9-
pub mod ext;
9+
pub mod structs;
1010
pub mod session;
1111

1212
pub use prebindgen_ext::{core, jni, kotlin};

zenoh-flat/src/session.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use zenoh::{
2828
};
2929

3030
#[cfg(feature = "zenoh-ext")]
31-
use crate::ext::{CacheConfig, HistoryConfig, MissDetectionConfig, RecoveryConfig};
31+
use crate::structs::{CacheConfig, HistoryConfig, MissDetectionConfig, RecoveryConfig};
3232
#[cfg(feature = "zenoh-ext")]
3333
use zenoh_ext::{
3434
AdvancedPublisher, AdvancedPublisherBuilderExt, AdvancedSubscriber,

zenoh-jni/build.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,11 @@ fn shared_kotlin_types() -> KotlinTypeMap {
240240
fn 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

Comments
 (0)