wayland: Add missing wp_security_context_manager_v1.destroy implementation

This commit is contained in:
Vlad Zahorodnii 2024-01-22 15:16:55 +02:00
parent 8774a0114c
commit 01818f683c

View file

@ -24,7 +24,8 @@ public:
SecurityContextManagerV1InterfacePrivate(Display *display);
protected:
void wp_security_context_manager_v1_create_listener(Resource *resource, uint32_t id, int32_t listen_fd, int32_t close_fd);
void wp_security_context_manager_v1_destroy(Resource *resource) override;
void wp_security_context_manager_v1_create_listener(Resource *resource, uint32_t id, int32_t listen_fd, int32_t close_fd) override;
private:
Display *m_display;
@ -69,6 +70,11 @@ SecurityContextManagerV1InterfacePrivate::SecurityContextManagerV1InterfacePriva
{
}
void SecurityContextManagerV1InterfacePrivate::wp_security_context_manager_v1_destroy(Resource *resource)
{
wl_resource_destroy(resource->handle);
}
void SecurityContextManagerV1InterfacePrivate::wp_security_context_manager_v1_create_listener(Resource *resource, uint32_t id, int32_t listen_fd, int32_t close_fd)
{
auto *securityContextResource = wl_resource_create(resource->client(), &wp_security_context_v1_interface, resource->version(), id);