1
0
Fork 0

wayland: Move DataOffer / DataSource into data-device internals

This commit is contained in:
Jasper St. Pierre 2014-07-10 10:15:34 -04:00
parent 06a31992e3
commit 664f6ef420
3 changed files with 13 additions and 14 deletions

View file

@ -35,6 +35,19 @@
#include "meta-wayland-pointer.h" #include "meta-wayland-pointer.h"
#include "meta-wayland-private.h" #include "meta-wayland-private.h"
typedef struct
{
struct wl_resource *resource;
MetaWaylandDataSource *source;
struct wl_listener source_destroy_listener;
} MetaWaylandDataOffer;
struct _MetaWaylandDataSource
{
struct wl_resource *resource;
struct wl_array mime_types;
};
static void static void
data_offer_accept (struct wl_client *client, data_offer_accept (struct wl_client *client,
struct wl_resource *resource, struct wl_resource *resource,

View file

@ -30,19 +30,6 @@
#include "meta-wayland-pointer.h" #include "meta-wayland-pointer.h"
#include "meta-wayland-touch.h" #include "meta-wayland-touch.h"
struct _MetaWaylandDataOffer
{
struct wl_resource *resource;
MetaWaylandDataSource *source;
struct wl_listener source_destroy_listener;
};
struct _MetaWaylandDataSource
{
struct wl_resource *resource;
struct wl_array mime_types;
};
struct _MetaWaylandSeat struct _MetaWaylandSeat
{ {
struct wl_list base_resource_list; struct wl_list base_resource_list;

View file

@ -27,7 +27,6 @@ typedef struct _MetaWaylandPointer MetaWaylandPointer;
typedef struct _MetaWaylandPointerGrab MetaWaylandPointerGrab; typedef struct _MetaWaylandPointerGrab MetaWaylandPointerGrab;
typedef struct _MetaWaylandPointerGrabInterface MetaWaylandPointerGrabInterface; typedef struct _MetaWaylandPointerGrabInterface MetaWaylandPointerGrabInterface;
typedef struct _MetaWaylandKeyboard MetaWaylandKeyboard; typedef struct _MetaWaylandKeyboard MetaWaylandKeyboard;
typedef struct _MetaWaylandDataOffer MetaWaylandDataOffer;
typedef struct _MetaWaylandDataSource MetaWaylandDataSource; typedef struct _MetaWaylandDataSource MetaWaylandDataSource;
typedef struct _MetaWaylandTouch MetaWaylandTouch; typedef struct _MetaWaylandTouch MetaWaylandTouch;