static void client_source_send(struct wl_data_source *source, const char *mime_type, int32_t fd) { wl_data_source_send_send(&source->resource, mime_type, fd); close(fd); }
static void data_offer_receive (struct wl_client *client, struct wl_resource *resource, const char *mime_type, int32_t fd) { MetaWaylandDataOffer *offer = wl_resource_get_user_data (resource); if (offer->source) wl_data_source_send_send (offer->source->resource, mime_type, fd); close (fd); }
void DataSource::postSendEvent(const QByteArray &mimeType, int fd) { if (m_data_source_resource) { wl_data_source_send_send(m_data_source_resource, mimeType.constData(), fd); } }