target/arm: Add support for DC CVAP & DC CVADP ins
[qemu/ar7.git] / include / chardev / spice.h
blob1f7339b649dc066fb6e138a16187ef44e4e26a7f
1 #ifndef CHARDEV_SPICE_H
2 #define CHARDEV_SPICE_H
4 #include <spice.h>
5 #include "chardev/char-fe.h"
7 typedef struct SpiceChardev {
8 Chardev parent;
10 SpiceCharDeviceInstance sin;
11 bool active;
12 bool blocked;
13 const uint8_t *datapos;
14 int datalen;
15 QLIST_ENTRY(SpiceChardev) next;
16 } SpiceChardev;
18 #define TYPE_CHARDEV_SPICE "chardev-spice"
19 #define TYPE_CHARDEV_SPICEVMC "chardev-spicevmc"
20 #define TYPE_CHARDEV_SPICEPORT "chardev-spiceport"
22 #define SPICE_CHARDEV(obj) OBJECT_CHECK(SpiceChardev, (obj), TYPE_CHARDEV_SPICE)
24 void qemu_chr_open_spice_port(Chardev *chr, ChardevBackend *backend,
25 bool *be_opened, Error **errp);
27 #endif