mirror of
https://github.com/qemu/qemu.git
synced 2024-12-16 07:53:36 +08:00
a8b991b52d
Leading underscores are ill-advised because such identifiers are reserved. Trailing underscores are merely ugly. Strip both. Our header guards commonly end in _H. Normalize the exceptions. Done with scripts/clean-header-guards.pl. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20190315145123.28030-7-armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> [Changes to slirp/ dropped, as we're about to spin it off]
28 lines
754 B
C
28 lines
754 B
C
#ifndef CHARDEV_SPICE_H
|
|
#define CHARDEV_SPICE_H
|
|
|
|
#include <spice.h>
|
|
#include "chardev/char-fe.h"
|
|
|
|
typedef struct SpiceChardev {
|
|
Chardev parent;
|
|
|
|
SpiceCharDeviceInstance sin;
|
|
bool active;
|
|
bool blocked;
|
|
const uint8_t *datapos;
|
|
int datalen;
|
|
QLIST_ENTRY(SpiceChardev) next;
|
|
} SpiceChardev;
|
|
|
|
#define TYPE_CHARDEV_SPICE "chardev-spice"
|
|
#define TYPE_CHARDEV_SPICEVMC "chardev-spicevmc"
|
|
#define TYPE_CHARDEV_SPICEPORT "chardev-spiceport"
|
|
|
|
#define SPICE_CHARDEV(obj) OBJECT_CHECK(SpiceChardev, (obj), TYPE_CHARDEV_SPICE)
|
|
|
|
void qemu_chr_open_spice_port(Chardev *chr, ChardevBackend *backend,
|
|
bool *be_opened, Error **errp);
|
|
|
|
#endif
|