80 auto *securityContextResource = wl_resource_create(resource->client(), &wp_security_context_v1_interface, resource->version(),
id);
81 if (!securityContextResource) {
82 wl_resource_post_no_memory(resource->handle);
130 wl_resource_post_error(resource->handle, error_already_used,
"Already committed");
133 if (m_appId.isEmpty()) {
134 wl_resource_post_error(resource->handle, error_invalid_metadata,
"App ID cannot be empty");
137 if (m_sandboxEngine.isEmpty()) {
138 wl_resource_post_error(resource->handle, error_invalid_metadata,
"Sandbox engine cannot be empty");
145 new SecurityContext(m_display, std::move(m_listenFd), std::move(m_closeFd), m_appId);
The SecurityContext is a helper for the SecurityContextProtocol It stays alive whilst closeFd remains...
SecurityContextManagerV1Interface(Display *display, QObject *parent=nullptr)
~SecurityContextManagerV1Interface() override
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
SecurityContextManagerV1InterfacePrivate(Display *display)
void wp_security_context_v1_commit(Resource *resource) override
void wp_security_context_v1_destroy(Resource *resource) override
void wp_security_context_v1_destroy_resource(Resource *resource) override
SecurityContextV1Interface(Display *display, int listenFd, int closeFd, wl_resource *resource)
void wp_security_context_v1_set_app_id(Resource *resource, const QString &app_id) override
void wp_security_context_v1_set_instance_id(Resource *resource, const QString &instance_id) override
void wp_security_context_v1_set_sandbox_engine(Resource *resource, const QString &name) override