1
0
Fork 0
forked from wry/wry

globals: interfere singleton-ness from the Singleton enum

This commit is contained in:
Julian Orth 2026-03-05 15:25:28 +01:00
parent 1e55d89cc9
commit 1ef1b5a607
68 changed files with 34 additions and 264 deletions

View file

@ -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 {