mirror of
https://github.com/hyprwm/hyprwayland-scanner.git
synced 2024-11-23 18:05:58 +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";
|
return "uint32_t";
|
||||||
|
|
||||||
// enum
|
// enum
|
||||||
if (!arg.enumName.empty())
|
if (!arg.enumName.empty()) {
|
||||||
for (auto& e : XMLDATA.enums) {
|
for (auto& e : XMLDATA.enums) {
|
||||||
if (e.nameOriginal == arg.enumName)
|
if (e.nameOriginal == arg.enumName)
|
||||||
return e.name;
|
return e.name;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!event && clientCode)
|
||||||
|
return "wl_proxy*";
|
||||||
|
|
||||||
// iface
|
// iface
|
||||||
if (!arg.interface.empty() && (event || clientCode)) {
|
if (!arg.interface.empty() && event) {
|
||||||
for (auto& i : XMLDATA.ifaces) {
|
for (auto& i : XMLDATA.ifaces) {
|
||||||
if (i.name == arg.interface)
|
if (i.name == arg.interface)
|
||||||
return camelize((clientCode ? "CC_" : "C_") + arg.interface + "*");
|
return camelize((clientCode ? "CC_" : "C_") + arg.interface + "*");
|
||||||
|
|
Loading…
Reference in a new issue