From eebf1cb749708050b5803425482a34fd4cb7fa57 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 19 Sep 2024 22:46:48 +0100 Subject: [PATCH] core: fixup client pointer types --- src/main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 08d6735..cc95efc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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 + "*");