Struct libpulse_binding::context::ext_device_restore::DeviceRestore
[−]
[src]
pub struct DeviceRestore { /* fields omitted */ }
A wrapper object providing device restore routines to a context.
Methods
impl DeviceRestore
[src]
pub fn from_raw_weak(context: *mut ContextInternal) -> Self
[src]
Create a new DeviceManager
from an existing
ContextInternal
pointer. This is the 'weak' version, for
use in callbacks, which avoids destroying the internal object when dropped.
pub fn test(&mut self, cb: (TestCb, *mut c_void)) -> Option<Operation>
[src]
Test if this extension module is available in the server.
pub fn subscribe(
&mut self,
enable: bool,
cb: (ContextSuccessCb, *mut c_void)
) -> Option<Operation>
[src]
&mut self,
enable: bool,
cb: (ContextSuccessCb, *mut c_void)
) -> Option<Operation>
Subscribe to changes in the device database.
pub fn set_subscribe_cb(&mut self, cb: (SubscribeCb, *mut c_void))
[src]
Set the subscription callback that is called when subscribe
was
called.
pub fn read_formats_all(
&mut self,
cb: (ReadDevFormatsCb, *mut c_void)
) -> Option<Operation>
[src]
&mut self,
cb: (ReadDevFormatsCb, *mut c_void)
) -> Option<Operation>
Read the formats for all present devices from the device database.
pub fn read_formats(
&mut self,
type_: Device,
idx: u32,
cb: (ReadDevFormatsCb, *mut c_void)
) -> Option<Operation>
[src]
&mut self,
type_: Device,
idx: u32,
cb: (ReadDevFormatsCb, *mut c_void)
) -> Option<Operation>
Read an entry from the device database.
pub fn save_formats(
&mut self,
type_: Device,
idx: u32,
formats: &mut [&mut Info],
cb: (ContextSuccessCb, *mut c_void)
) -> Option<Operation>
[src]
&mut self,
type_: Device,
idx: u32,
formats: &mut [&mut Info],
cb: (ContextSuccessCb, *mut c_void)
) -> Option<Operation>
Read an entry from the device database.