qemu-nbd: Honor SIGINT and SIGHUP
[qemu/ar7.git] / include / chardev / spice.h
blob99f26aedde5485ea360f7b7aa4db08b0ac00a6c8
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;
16 QLIST_ENTRY(SpiceChardev) next;
18 typedef struct SpiceChardev SpiceChardev;
20 #define TYPE_CHARDEV_SPICE "chardev-spice"
21 #define TYPE_CHARDEV_SPICEVMC "chardev-spicevmc"
22 #define TYPE_CHARDEV_SPICEPORT "chardev-spiceport"
24 DECLARE_INSTANCE_CHECKER(SpiceChardev, SPICE_CHARDEV,
25 TYPE_CHARDEV_SPICE)
27 void qemu_chr_open_spice_port(Chardev *chr, ChardevBackend *backend,
28 bool *be_opened, Error **errp);
30 #endif