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-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
data_offer_accept (struct wl_client *client,
struct wl_resource *resource,

View File

@ -30,19 +30,6 @@
#include "meta-wayland-pointer.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 wl_list base_resource_list;

View File

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