mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
ui/clipboard: split out QemuClipboardContent
Allows to use VMSTATE STRUCT in following migration support patch. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
acc6a94a81
commit
a3f59c70d6
1 changed files with 20 additions and 6 deletions
|
@ -25,6 +25,7 @@ typedef enum QemuClipboardSelection QemuClipboardSelection;
|
||||||
typedef struct QemuClipboardPeer QemuClipboardPeer;
|
typedef struct QemuClipboardPeer QemuClipboardPeer;
|
||||||
typedef struct QemuClipboardNotify QemuClipboardNotify;
|
typedef struct QemuClipboardNotify QemuClipboardNotify;
|
||||||
typedef struct QemuClipboardInfo QemuClipboardInfo;
|
typedef struct QemuClipboardInfo QemuClipboardInfo;
|
||||||
|
typedef struct QemuClipboardContent QemuClipboardContent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* enum QemuClipboardType
|
* enum QemuClipboardType
|
||||||
|
@ -97,6 +98,24 @@ struct QemuClipboardNotify {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* struct QemuClipboardContent
|
||||||
|
*
|
||||||
|
* @available: whether the data is available
|
||||||
|
* @requested: whether the data was requested
|
||||||
|
* @size: the size of the @data
|
||||||
|
* @data: the clipboard data
|
||||||
|
*
|
||||||
|
* Clipboard content.
|
||||||
|
*/
|
||||||
|
struct QemuClipboardContent {
|
||||||
|
bool available;
|
||||||
|
bool requested;
|
||||||
|
uint32_t size;
|
||||||
|
void *data;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* struct QemuClipboardInfo
|
* struct QemuClipboardInfo
|
||||||
*
|
*
|
||||||
|
@ -115,12 +134,7 @@ struct QemuClipboardInfo {
|
||||||
int selection; /* QemuClipboardSelection */
|
int selection; /* QemuClipboardSelection */
|
||||||
bool has_serial;
|
bool has_serial;
|
||||||
uint32_t serial;
|
uint32_t serial;
|
||||||
struct {
|
QemuClipboardContent types[QEMU_CLIPBOARD_TYPE__COUNT];
|
||||||
bool available;
|
|
||||||
bool requested;
|
|
||||||
size_t size;
|
|
||||||
void *data;
|
|
||||||
} types[QEMU_CLIPBOARD_TYPE__COUNT];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue