2019-03-15 17:51:21 +03:00
|
|
|
#ifndef CHARDEV_SPICE_H
|
|
|
|
#define CHARDEV_SPICE_H
|
2019-02-21 14:06:58 +03:00
|
|
|
|
|
|
|
#include <spice.h>
|
|
|
|
#include "chardev/char-fe.h"
|
2020-09-03 23:43:22 +03:00
|
|
|
#include "qom/object.h"
|
2019-02-21 14:06:58 +03:00
|
|
|
|
2020-09-03 23:43:22 +03:00
|
|
|
struct SpiceChardev {
|
2019-02-21 14:06:58 +03:00
|
|
|
Chardev parent;
|
|
|
|
|
|
|
|
SpiceCharDeviceInstance sin;
|
|
|
|
bool active;
|
|
|
|
bool blocked;
|
|
|
|
const uint8_t *datapos;
|
|
|
|
int datalen;
|
2020-09-03 23:43:22 +03:00
|
|
|
};
|
|
|
|
typedef struct SpiceChardev SpiceChardev;
|
2019-02-21 14:06:58 +03:00
|
|
|
|
|
|
|
#define TYPE_CHARDEV_SPICE "chardev-spice"
|
|
|
|
#define TYPE_CHARDEV_SPICEVMC "chardev-spicevmc"
|
|
|
|
#define TYPE_CHARDEV_SPICEPORT "chardev-spiceport"
|
|
|
|
|
2020-09-01 00:07:33 +03:00
|
|
|
DECLARE_INSTANCE_CHECKER(SpiceChardev, SPICE_CHARDEV,
|
|
|
|
TYPE_CHARDEV_SPICE)
|
2019-02-21 14:06:58 +03:00
|
|
|
|
|
|
|
#endif
|