mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-02 22:52:26 +00:00
move chardevs out of experimental
While we are at it: There is no reason for chardev
support to stay in the experimental area, so move it out.
qemu should not need the "spice-experimental.h" file.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 7bbc2ba090)
This commit is contained in:
parent
215cd7f903
commit
bca5403370
@ -3,31 +3,6 @@
|
||||
|
||||
#include "spice.h"
|
||||
|
||||
/* char device interfaces */
|
||||
#define SPICE_INTERFACE_CHAR_DEVICE "char_device"
|
||||
#define SPICE_INTERFACE_CHAR_DEVICE_MAJOR 1
|
||||
#define SPICE_INTERFACE_CHAR_DEVICE_MINOR 1
|
||||
typedef struct SpiceCharDeviceInterface SpiceCharDeviceInterface;
|
||||
typedef struct SpiceCharDeviceInstance SpiceCharDeviceInstance;
|
||||
typedef struct SpiceCharDeviceState SpiceCharDeviceState;
|
||||
|
||||
struct SpiceCharDeviceInterface {
|
||||
SpiceBaseInterface base;
|
||||
|
||||
void (*state)(SpiceCharDeviceInstance *sin, int connected);
|
||||
int (*write)(SpiceCharDeviceInstance *sin, const uint8_t *buf, int len);
|
||||
int (*read)(SpiceCharDeviceInstance *sin, uint8_t *buf, int len);
|
||||
};
|
||||
|
||||
struct SpiceCharDeviceInstance {
|
||||
SpiceBaseInstance base;
|
||||
const char* subtype;
|
||||
SpiceCharDeviceState *st;
|
||||
};
|
||||
|
||||
void spice_server_char_device_wakeup(SpiceCharDeviceInstance *sin);
|
||||
const char** spice_server_char_device_recognized_subtypes(void);
|
||||
|
||||
/* tunnel interface */
|
||||
|
||||
#define SPICE_INTERFACE_NET_WIRE "net_wire"
|
||||
|
||||
@ -322,6 +322,32 @@ void spice_server_record_stop(SpiceRecordInstance *sin);
|
||||
uint32_t spice_server_record_get_samples(SpiceRecordInstance *sin,
|
||||
uint32_t *samples, uint32_t bufsize);
|
||||
|
||||
/* char device interfaces */
|
||||
|
||||
#define SPICE_INTERFACE_CHAR_DEVICE "char_device"
|
||||
#define SPICE_INTERFACE_CHAR_DEVICE_MAJOR 1
|
||||
#define SPICE_INTERFACE_CHAR_DEVICE_MINOR 1
|
||||
typedef struct SpiceCharDeviceInterface SpiceCharDeviceInterface;
|
||||
typedef struct SpiceCharDeviceInstance SpiceCharDeviceInstance;
|
||||
typedef struct SpiceCharDeviceState SpiceCharDeviceState;
|
||||
|
||||
struct SpiceCharDeviceInterface {
|
||||
SpiceBaseInterface base;
|
||||
|
||||
void (*state)(SpiceCharDeviceInstance *sin, int connected);
|
||||
int (*write)(SpiceCharDeviceInstance *sin, const uint8_t *buf, int len);
|
||||
int (*read)(SpiceCharDeviceInstance *sin, uint8_t *buf, int len);
|
||||
};
|
||||
|
||||
struct SpiceCharDeviceInstance {
|
||||
SpiceBaseInstance base;
|
||||
const char* subtype;
|
||||
SpiceCharDeviceState *st;
|
||||
};
|
||||
|
||||
void spice_server_char_device_wakeup(SpiceCharDeviceInstance *sin);
|
||||
const char** spice_server_char_device_recognized_subtypes(void);
|
||||
|
||||
/* spice server setup */
|
||||
|
||||
/* Don't use features incompatible with a specific spice
|
||||
|
||||
Loading…
Reference in New Issue
Block a user