autocommit 2022-03-11 20:04:41 CET
This commit is contained in:
parent
0ae73ab9c4
commit
eb1d500561
10 changed files with 93 additions and 75 deletions
|
|
@ -284,6 +284,7 @@ impl<'a> UdevListEntry<'a> {
|
|||
|
||||
macro_rules! strfn {
|
||||
($f:ident, $raw:ident) => {
|
||||
#[allow(dead_code)]
|
||||
pub fn $f(&self) -> Option<&CStr> {
|
||||
let res = unsafe { $raw(self.device) };
|
||||
if res.is_null() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue