]> git.proxmox.com Git - mirror_qemu.git/blame - include/chardev/spice.h
Merge tag 'migration-20231020-pull-request' of https://gitlab.com/juan.quintela/qemu...
[mirror_qemu.git] / include / chardev / spice.h
CommitLineData
a8b991b5
MA
1#ifndef CHARDEV_SPICE_H
2#define CHARDEV_SPICE_H
24fa7da3
MAL
3
4#include <spice.h>
5#include "chardev/char-fe.h"
db1015e9 6#include "qom/object.h"
24fa7da3 7
db1015e9 8struct SpiceChardev {
24fa7da3
MAL
9 Chardev parent;
10
11 SpiceCharDeviceInstance sin;
12 bool active;
13 bool blocked;
14 const uint8_t *datapos;
15 int datalen;
db1015e9
EH
16};
17typedef struct SpiceChardev SpiceChardev;
24fa7da3
MAL
18
19#define TYPE_CHARDEV_SPICE "chardev-spice"
20#define TYPE_CHARDEV_SPICEVMC "chardev-spicevmc"
21#define TYPE_CHARDEV_SPICEPORT "chardev-spiceport"
22
8110fa1d
EH
23DECLARE_INSTANCE_CHECKER(SpiceChardev, SPICE_CHARDEV,
24 TYPE_CHARDEV_SPICE)
24fa7da3 25
24fa7da3 26#endif