Merge remote-tracking branch 'remotes/mcayland/tags/qemu-sparc-20201028' into staging
[qemu/ar7.git] / include / chardev / spice.h
blob58e5b727e9fe35bf112c32989b22fca930a449ec
1 #ifndef CHARDEV_SPICE_H
2 #define CHARDEV_SPICE_H
4 #include <spice.h>
5 #include "chardev/char-fe.h"
6 #include "qom/object.h"
8 struct SpiceChardev {
9 Chardev parent;
11 SpiceCharDeviceInstance sin;
12 bool active;
13 bool blocked;
14 const uint8_t *datapos;
15 int datalen;
17 typedef struct SpiceChardev SpiceChardev;
19 #define TYPE_CHARDEV_SPICE "chardev-spice"
20 #define TYPE_CHARDEV_SPICEVMC "chardev-spicevmc"
21 #define TYPE_CHARDEV_SPICEPORT "chardev-spiceport"
23 DECLARE_INSTANCE_CHECKER(SpiceChardev, SPICE_CHARDEV,
24 TYPE_CHARDEV_SPICE)
26 #endif