Skip to content

Commit

Permalink
[skip ci] fix SHM exports in new api export mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowhatter committed Apr 30, 2024
1 parent 6f8f6b7 commit d4218fc
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 15 deletions.
39 changes: 26 additions & 13 deletions zenoh/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,19 +362,32 @@ pub mod internal {

#[cfg(all(feature = "unstable", feature = "shared-memory"))]
pub mod shm {
pub use zenoh_shm::api::client_storage::SharedMemoryClientStorage;
pub use zenoh_shm::api::provider::shared_memory_provider::{BlockOn, GarbageCollect};
pub use zenoh_shm::api::provider::shared_memory_provider::{Deallocate, Defragment};
pub use zenoh_shm::api::provider::types::AllocAlignment;
pub use zenoh_shm::api::provider::types::MemoryLayout;
pub use zenoh_shm::api::slice::zsliceshm::{zsliceshm, ZSliceShm};
pub use zenoh_shm::api::slice::zsliceshmmut::{zsliceshmmut, ZSliceShmMut};
pub use zenoh_shm::api::{
protocol_implementations::posix::{
posix_shared_memory_client::PosixSharedMemoryClient,
posix_shared_memory_provider_backend::PosixSharedMemoryProviderBackend,
protocol_id::POSIX_PROTOCOL_ID,
pub use zenoh_shm::api::client::{
shared_memory_client::SharedMemoryClient, shared_memory_segment::SharedMemorySegment,
};
pub use zenoh_shm::api::client_storage::{SharedMemoryClientStorage, GLOBAL_CLIENT_STORAGE};
pub use zenoh_shm::api::common::types::{ChunkID, ProtocolID, SegmentID};
pub use zenoh_shm::api::protocol_implementations::posix::{
posix_shared_memory_client::PosixSharedMemoryClient,
posix_shared_memory_provider_backend::{
LayoutedPosixSharedMemoryProviderBackendBuilder, PosixSharedMemoryProviderBackend,
PosixSharedMemoryProviderBackendBuilder,
},
provider::shared_memory_provider::SharedMemoryProviderBuilder,
protocol_id::POSIX_PROTOCOL_ID,
};
pub use zenoh_shm::api::provider::shared_memory_provider::{
AllocBuilder, AllocLayout, AllocLayoutAlignedBuilder, AllocLayoutBuilder,
AllocLayoutSizedBuilder, AllocPolicy, AsyncAllocPolicy, BlockOn, DeallocEldest,
DeallocOptimal, DeallocYoungest, Deallocate, Defragment, DynamicProtocolID,
ForceDeallocPolicy, GarbageCollect, JustAlloc, ProtocolIDSource, SharedMemoryProvider,
SharedMemoryProviderBuilder, SharedMemoryProviderBuilderBackendID,
SharedMemoryProviderBuilderID, StaticProtocolID,
};
pub use zenoh_shm::api::provider::types::{
AllocAlignment, BufAllocResult, ChunkAllocResult, MemoryLayout, ZAllocError,
};
pub use zenoh_shm::api::slice::{
zsliceshm::{zsliceshm, ZSliceShm},
zsliceshmmut::{zsliceshmmut, ZSliceShmMut},
};
}
4 changes: 2 additions & 2 deletions zenoh/src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub(crate) mod flat {
pub use crate::scouting::*;
pub use crate::selector::*;
pub use crate::session::*;
#[cfg(feature = "shared-memory")]
#[cfg(all(feature = "unstable", feature = "shared-memory"))]
pub use crate::shm::*;
pub use crate::subscriber::*;
pub use crate::time::*;
Expand All @@ -74,7 +74,7 @@ pub(crate) mod mods {
pub use crate::scouting;
pub use crate::selector;
pub use crate::session;
#[cfg(feature = "shared-memory")]
#[cfg(all(feature = "unstable", feature = "shared-memory"))]
pub use crate::shm;
pub use crate::subscriber;
pub use crate::time;
Expand Down

0 comments on commit d4218fc

Please sign in to comment.