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)
 
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)
 
uint32_t get_serial (UwacSeat *s)
 
UwacReturnCode UwacClipboardOfferAnnounce (UwacSeat *seat, void *context, UwacDataTransferHandler transfer, UwacCancelDataTransferHandler cancel)
 
voidUwacClipboardDataGet (UwacSeat *seat, const char *mime, size_t *size)
 

Variables

static const struct wl_data_offer_listener data_offer_listener
 
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
 

Function Documentation

static void callback_done ( void data,
struct wl_callback *  callback,
uint32_t  serial 
)
static
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:

static void data_device_selection ( void data,
struct wl_data_device *  data_device,
struct wl_data_offer *  data_offer 
)
static
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:

static void data_source_cancelled_handler ( void data,
struct wl_data_source *  data_source 
)
static
static void data_source_send_handler ( void data,
struct wl_data_source *  data_source,
const char *  mime_type,
int  fd 
)
static
static void data_source_target_handler ( void data,
struct wl_data_source *  data_source,
const char *  mime_type 
)
static
uint32_t get_serial ( UwacSeat *  s)

Here is the caller graph for this function:

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:

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:

UwacReturnCode UwacClipboardOfferCreate ( UwacSeat *  seat,
const char *  mime 
)

Here is the caller graph for this function:

UwacReturnCode UwacClipboardOfferDestroy ( UwacSeat *  seat)

Here is the call graph for this function:

Here is the caller graph for this function:

UwacReturnCode UwacCreateDataSource ( UwacSeat *  s)

Here is the caller graph for this function:

static void UwacRegisterDeviceListener ( UwacSeat *  s)
static

Here is the caller graph for this function:

UwacReturnCode UwacSeatRegisterClipboard ( UwacSeat *  s)

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const struct wl_callback_listener callback_listener
static
Initial value:
=
{
.done = callback_done
}
static void callback_done(void *data, struct wl_callback *callback, uint32_t serial)
Definition: uwac-clipboard.c:196
const struct wl_data_device_listener data_device_listener
static
Initial value:
=
{
.data_offer = data_device_data_offer,
.selection = 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:93
static void data_device_data_offer(void *data, struct wl_data_device *data_device, struct wl_data_offer *data_offer)
Definition: uwac-clipboard.c:67
const struct wl_data_offer_listener data_offer_listener
static
Initial value:
=
{
}
static void data_offer_offer(void *data, struct wl_data_offer *data_offer, const char *offered_mime_type)
Definition: uwac-clipboard.c:38
const struct wl_data_source_listener data_source_listener
static
Initial value:
=
{
}
static void data_source_target_handler(void *data, struct wl_data_source *data_source, const char *mime_type)
Definition: uwac-clipboard.c:105
static void data_source_send_handler(void *data, struct wl_data_source *data_source, const char *mime_type, int fd)
Definition: uwac-clipboard.c:110
static void data_source_cancelled_handler(void *data, struct wl_data_source *data_source)
Definition: uwac-clipboard.c:117