alsahwdep 0.8.0

API binding for alsahwdep library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: MIT

use super::*;

impl DeviceCommonError {
    #[doc(alias = "alsahwdep_device_common_error_to_label")]
    pub fn to_label(&self) -> &'static str {
        unsafe {
            let mut ptr = std::ptr::null_mut() as *const i8;
            ffi::alsahwdep_device_common_error_to_label(self.into_glib(), &mut ptr);
            std::ffi::CStr::from_ptr(ptr).to_str().unwrap()
        }
    }
}