summaryrefslogtreecommitdiffstats
path: root/server/spice-experimental.h
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-08-31 10:59:34 +0300
committerAlon Levy <alevy@redhat.com>2010-08-31 10:59:34 +0300
commit061ec276ece304b76da9fabcefceb65ac06fc2d2 (patch)
tree0b4214181eeb6a3bef553bb0f923349c90cf115d /server/spice-experimental.h
parentfbd874a464b739933947cdb3a54ab329ecf30a6f (diff)
downloadspice-061ec276ece304b76da9fabcefceb65ac06fc2d2.tar.gz
spice-061ec276ece304b76da9fabcefceb65ac06fc2d2.tar.xz
spice-061ec276ece304b76da9fabcefceb65ac06fc2d2.zip
server: rename SpiceVDIPort* to SpiceCharDevice*
Diffstat (limited to 'server/spice-experimental.h')
-rw-r--r--server/spice-experimental.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/server/spice-experimental.h b/server/spice-experimental.h
index aede4ce1..e40b3ece 100644
--- a/server/spice-experimental.h
+++ b/server/spice-experimental.h
@@ -1,26 +1,26 @@
-/* vdi port interface */
+/* char device interfaces */
-#define SPICE_INTERFACE_VDI_PORT "vdi_port"
-#define SPICE_INTERFACE_VDI_PORT_MAJOR 1
-#define SPICE_INTERFACE_VDI_PORT_MINOR 1
-typedef struct SpiceVDIPortInterface SpiceVDIPortInterface;
-typedef struct SpiceVDIPortInstance SpiceVDIPortInstance;
-typedef struct SpiceVDIPortState SpiceVDIPortState;
+#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 SpiceVDIPortInterface {
+struct SpiceCharDeviceInterface {
SpiceBaseInterface base;
- void (*state)(SpiceVDIPortInstance *sin, int connected);
- int (*write)(SpiceVDIPortInstance *sin, const uint8_t *buf, int len);
- int (*read)(SpiceVDIPortInstance *sin, uint8_t *buf, int len);
+ 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 SpiceVDIPortInstance {
+struct SpiceCharDeviceInstance {
SpiceBaseInstance base;
- SpiceVDIPortState *st;
+ SpiceCharDeviceState *st;
};
-void spice_server_vdi_port_wakeup(SpiceVDIPortInstance *sin);
+void spice_server_char_device_wakeup(SpiceCharDeviceInstance *sin);
/* tunnel interface */