[][src]Function wayland_raw_protocol_bindings::client::wp_primary_selection_unstable_v1::zwp_primary_selection_offer_v1::zwp_primary_selection_offer_v1_receive

pub unsafe fn zwp_primary_selection_offer_v1_receive(
    zwp_primary_selection_offer_v1: *mut zwp_primary_selection_offer_v1,
    mime_type: *mut c_char,
    fd: RawFd
)

request that the data is transferred

To transfer the contents of the primary selection clipboard, the client issues this request and indicates the mime type that it wants to receive. The transfer happens through the passed file descriptor (typically created with the pipe system call). The source client writes the data in the mime type representation requested and then closes the file descriptor.

The receiving client reads from the read end of the pipe until EOF and closes its end, at which point the transfer is complete.