summaryrefslogtreecommitdiff
path: root/src/protocols/WaylandProtocol.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocols/WaylandProtocol.hpp')
-rw-r--r--src/protocols/WaylandProtocol.hpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/protocols/WaylandProtocol.hpp b/src/protocols/WaylandProtocol.hpp
index cc8a0e53..588a1420 100644
--- a/src/protocols/WaylandProtocol.hpp
+++ b/src/protocols/WaylandProtocol.hpp
@@ -14,34 +14,6 @@
#define PROTO NProtocols
-class CWaylandResource {
- public:
- CWaylandResource(wl_client* client, const wl_interface* wlInterface, uint32_t version, uint32_t id);
- ~CWaylandResource();
-
- bool good();
- wl_resource* resource();
- uint32_t version();
-
- void setImplementation(const void* impl, wl_resource_destroy_func_t df);
-
- wl_listener m_liResourceDestroy; // private but has to be public
- void markDefunct();
-
- void* data();
- void setData(void* data);
-
- void setOnDestroyHandler(std::function<void(CWaylandResource* res)> fn);
-
- private:
- bool m_bImplementationSet = false;
- bool m_bDefunct = false; // m_liResourceDestroy fired
- wl_client* m_pWLClient = nullptr;
- wl_resource* m_pWLResource = nullptr;
- void* m_pData = nullptr;
- std::function<void(CWaylandResource* res)> m_fOnDestroyHandler;
-};
-
class IWaylandProtocol {
public:
IWaylandProtocol(const wl_interface* iface, const int& ver, const std::string& name);