FreeRDP
uwac-clipboard.c File Reference
#include "uwac-priv.h"
#include "uwac-utils.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <time.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/timerfd.h>
#include <sys/epoll.h>

Functions

static void data_offer_offer (void *data, struct wl_data_offer *data_offer, const char *offered_mime_type)
 
static void data_device_data_offer (void *data, struct wl_data_device *data_device, struct wl_data_offer *data_offer)
 
static void data_device_selection (void *data, struct wl_data_device *data_device, struct wl_data_offer *data_offer)
 
static void data_source_target_handler (void *data, struct wl_data_source *data_source, const char *mime_type)
 
static void data_source_send_handler (void *data, struct wl_data_source *data_source, const char *mime_type, int fd)
 
static void data_source_cancelled_handler (void *data, struct wl_data_source *data_source)
 
static void UwacRegisterDeviceListener (UwacSeat *s)
 
static UwacReturnCode UwacCreateDataSource (UwacSeat *s)
 
UwacReturnCode UwacSeatRegisterClipboard (UwacSeat *s)
 
UwacReturnCode UwacClipboardOfferDestroy (UwacSeat *seat)
 
UwacReturnCode UwacClipboardOfferCreate (UwacSeat *seat, const char *mime)
 
static void callback_done (void *data, struct wl_callback *callback, uint32_t serial)
 
static uint32_t get_serial (UwacSeat *s)
 
UwacReturnCode UwacClipboardOfferAnnounce (UwacSeat *seat, void *context, UwacDataTransferHandler transfer, UwacCancelDataTransferHandler cancel)
 
void * UwacClipboardDataGet (UwacSeat *seat, const char *mime, size_t *size)
 

Variables

static const struct wl_data_offer_listener data_offer_listener = { .offer = data_offer_offer }
 
static const struct wl_data_device_listener data_device_listener
 
static const struct wl_data_source_listener data_source_listener
 
static const struct wl_callback_listener callback_listener = { .done = callback_done }
 

Function Documentation

◆ callback_done()

static void callback_done ( void *  data,
struct wl_callback *  callback,
uint32_t  serial 
)
static

◆ data_device_data_offer()

static void data_device_data_offer ( void *  data,
struct wl_data_device *  data_device,
struct wl_data_offer *  data_offer 
)
static
Here is the call graph for this function:

◆ data_device_selection()

static void data_device_selection ( void *  data,
struct wl_data_device *  data_device,
struct wl_data_offer *  data_offer 
)
static

◆ data_offer_offer()

static void data_offer_offer ( void *  data,
struct wl_data_offer *  data_offer,
const char *  offered_mime_type 
)
static
Here is the call graph for this function:

◆ data_source_cancelled_handler()

static void data_source_cancelled_handler ( void *  data,
struct wl_data_source *  data_source 
)
static

◆ data_source_send_handler()

static void data_source_send_handler ( void *  data,
struct wl_data_source *  data_source,
const char *  mime_type,
int  fd 
)
static

◆ data_source_target_handler()

static void data_source_target_handler ( void *  data,
struct wl_data_source *  data_source,
const char *  mime_type 
)
static

◆ get_serial()

static uint32_t get_serial ( UwacSeat *  s)
static
Here is the caller graph for this function:

◆ UwacClipboardDataGet()

void* UwacClipboardDataGet ( UwacSeat *  seat,
const char *  mime,
size_t *  size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ UwacClipboardOfferAnnounce()

UwacReturnCode UwacClipboardOfferAnnounce ( UwacSeat *  seat,
void *  context,
UwacDataTransferHandler  transfer,
UwacCancelDataTransferHandler  cancel 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ UwacClipboardOfferCreate()

UwacReturnCode UwacClipboardOfferCreate ( UwacSeat *  seat,
const char *  mime 
)
Here is the caller graph for this function:

◆ UwacClipboardOfferDestroy()

UwacReturnCode UwacClipboardOfferDestroy ( UwacSeat *  seat)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ UwacCreateDataSource()

static UwacReturnCode UwacCreateDataSource ( UwacSeat *  s)
static
Here is the caller graph for this function:

◆ UwacRegisterDeviceListener()

static void UwacRegisterDeviceListener ( UwacSeat *  s)
static
Here is the caller graph for this function:

◆ UwacSeatRegisterClipboard()

UwacReturnCode UwacSeatRegisterClipboard ( UwacSeat *  s)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ callback_listener

const struct wl_callback_listener callback_listener = { .done = callback_done }
static

◆ data_device_listener

const struct wl_data_device_listener data_device_listener
static
Initial value:
= {
.data_offer = data_device_data_offer, .selection = data_device_selection
}

◆ data_offer_listener

const struct wl_data_offer_listener data_offer_listener = { .offer = data_offer_offer }
static

◆ data_source_listener

const struct wl_data_source_listener data_source_listener
static
Initial value:
data_source_cancelled_handler
static void data_source_cancelled_handler(void *data, struct wl_data_source *data_source)
Definition: uwac-clipboard.c:112
data_source_target_handler
static void data_source_target_handler(void *data, struct wl_data_source *data_source, const char *mime_type)
Definition: uwac-clipboard.c:100
data_device_data_offer
static void data_device_data_offer(void *data, struct wl_data_device *data_device, struct wl_data_offer *data_offer)
Definition: uwac-clipboard.c:64
data_device_selection
static void data_device_selection(void *data, struct wl_data_device *data_device, struct wl_data_offer *data_offer)
Definition: uwac-clipboard.c:90
data_source_send_handler
static void data_source_send_handler(void *data, struct wl_data_source *data_source, const char *mime_type, int fd)
Definition: uwac-clipboard.c:105