globals: interfere singleton-ness from the Singleton enum
This commit is contained in:
parent
1e55d89cc9
commit
1ef1b5a607
68 changed files with 34 additions and 264 deletions
|
|
@ -87,6 +87,10 @@ macro_rules! global_base {
|
|||
fn interface(&self) -> crate::object::Interface {
|
||||
crate::wire::$ifname
|
||||
}
|
||||
|
||||
fn singleton(&self) -> Option<crate::globals::Singleton> {
|
||||
crate::globals::interface_singletons::$ifname
|
||||
}
|
||||
}
|
||||
|
||||
impl From<$ename> for crate::globals::GlobalError {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue