Esempio n. 1
0
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);
}
Esempio n. 2
0
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);
}
Esempio n. 3
0
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);
    }
}