Skip to content

Commit

Permalink
Expose PluginManager for sessions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jezza committed Jan 16, 2025
1 parent 4173948 commit 8c613a2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions zenoh/src/api/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
// Contributors:
// ZettaScale Zenoh Team, <[email protected]>
//
#[cfg(feature = "plugins")]
use std::sync::MutexGuard;
use std::{
collections::{hash_map::Entry, HashMap},
convert::TryInto,
Expand Down Expand Up @@ -68,6 +70,8 @@ use zenoh_shm::api::client_storage::ShmClientStorage;
use zenoh_task::TaskController;

use super::builders::close::{CloseBuilder, Closeable, Closee};
#[cfg(feature = "plugins")]
use crate::api::plugins::PluginsManager;
#[cfg(feature = "unstable")]
use crate::api::selector::ZenohParameters;
#[cfg(feature = "unstable")]
Expand Down Expand Up @@ -713,6 +717,11 @@ impl Session {
self.0.runtime.hlc()
}

#[cfg(feature = "plugins")]
pub fn plugins_manager(&self) -> MutexGuard<'_, PluginsManager> {
self.0.runtime.plugins_manager()
}

/// Close the zenoh [`Session`](Session).
///
/// Every subscriber and queryable declared will stop receiving data, and further attempt to
Expand Down

0 comments on commit 8c613a2

Please sign in to comment.