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