Struct pipewire_wrapper::core_api::context::ContextRef
source · #[repr(transparent)]pub struct ContextRef { /* private fields */ }
Expand description
Wrapper for the external pw_sys::pw_context value. The PipeWire context object manages all locally available resources.
It is used by both clients and servers.
The context is used to:
Load modules and extend the functionality. This includes extending the protocol with new object types or creating any of the available objects.
Create implementations of various objects like nodes, devices, factories, modules, etc.. This will usually also create pw_global objects that can then be shared with clients.
Connect to another PipeWire instance (the main daemon, for example) and interact with it (See page_core_api).
Export a local implementation of an object to another instance.
Implementations§
source§impl ContextRef
impl ContextRef
sourcepub fn get_properties(&self) -> &PropertiesRef
pub fn get_properties(&self) -> &PropertiesRef
Context properties
sourcepub fn update_properties(&self, properties: &DictRef) -> i32
pub fn update_properties(&self, properties: &DictRef) -> i32
Update context properties, returns the count of updated properties
sourcepub fn get_support(&self) -> &[SupportRef]
pub fn get_support(&self) -> &[SupportRef]
Get SupportRef list, associated with the Context
sourcepub fn get_main_loop(&self) -> &LoopRef
pub fn get_main_loop(&self) -> &LoopRef
Get MainLoopRef
sourcepub fn get_work_queue(&self) -> &WorkQueueRef
pub fn get_work_queue(&self) -> &WorkQueueRef
Work queue