mirror of
https://github.com/hyprwm/hyprwayland-scanner.git
synced 2024-11-23 15:45:59 +01:00
core: fixup client pointer types
This commit is contained in:
parent
9df631193a
commit
eebf1cb749
1 changed files with 6 additions and 2 deletions
|
@ -107,14 +107,18 @@ std::string WPTypeToCType(const SRequestArgument& arg, bool event /* events pass
|
|||
return "uint32_t";
|
||||
|
||||
// enum
|
||||
if (!arg.enumName.empty())
|
||||
if (!arg.enumName.empty()) {
|
||||
for (auto& e : XMLDATA.enums) {
|
||||
if (e.nameOriginal == arg.enumName)
|
||||
return e.name;
|
||||
}
|
||||
}
|
||||
|
||||
if (!event && clientCode)
|
||||
return "wl_proxy*";
|
||||
|
||||
// iface
|
||||
if (!arg.interface.empty() && (event || clientCode)) {
|
||||
if (!arg.interface.empty() && event) {
|
||||
for (auto& i : XMLDATA.ifaces) {
|
||||
if (i.name == arg.interface)
|
||||
return camelize((clientCode ? "CC_" : "C_") + arg.interface + "*");
|
||||
|
|
Loading…
Reference in a new issue