Skip to content

Commit

Permalink
codegen: dbus does not support more than twelve tuple arguments, adju…
Browse files Browse the repository at this point in the history
…st accordingly

Might fix #488
  • Loading branch information
diwic committed Oct 25, 2024
1 parent fb3760b commit 9786245
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dbus-codegen/src/generate/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,11 @@ pub (super) fn xml_to_rust_type(i: &mut &[u8], no_refs: bool, genvars: &mut Opti
s.push(n);
};
*i = &i[1..];
format!("({},)", s.join(", "))
if s.len() > 12 {
"VecDeque<Box<RefArg>>".into()
} else {
format!("({},)", s.join(", "))
}
},
('y', _) => "u8".into(),
('b', _) => "bool".into(),
Expand Down

0 comments on commit 9786245

Please sign in to comment.