mirror of
https://github.com/hyprwm/hyprwayland-scanner.git
synced 2024-11-22 23:45:58 +01:00
core: fix external type usage
This commit is contained in:
parent
24cf55c957
commit
6fdc0ceac9
1 changed files with 9 additions and 4 deletions
|
@ -115,8 +115,13 @@ std::string WPTypeToCType(const SRequestArgument& arg, bool event /* events pass
|
||||||
}
|
}
|
||||||
|
|
||||||
// iface
|
// iface
|
||||||
if (!arg.interface.empty() && event)
|
if (!arg.interface.empty() && event) {
|
||||||
|
for (auto& i : XMLDATA.ifaces) {
|
||||||
|
if (i.name == arg.interface)
|
||||||
return camelize("C_" + arg.interface + "*");
|
return camelize("C_" + arg.interface + "*");
|
||||||
|
}
|
||||||
|
return "wl_resource*";
|
||||||
|
}
|
||||||
|
|
||||||
return "uint32_t";
|
return "uint32_t";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue