1 #ifndef CHARDEV_SPICE_H
2 #define CHARDEV_SPICE_H
5 #include "chardev/char-fe.h"
7 typedef struct SpiceChardev
{
10 SpiceCharDeviceInstance sin
;
13 const uint8_t *datapos
;
15 QLIST_ENTRY(SpiceChardev
) next
;
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
);