summaryrefslogtreecommitdiffstats
path: root/server/vd_interface.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-03-30 12:20:41 +0200
committerGerd Hoffmann <kraxel@redhat.com>2010-05-19 11:22:06 +0200
commit58273e3a32d89e59eb7da742c9b4a059dbfdfd37 (patch)
tree28555b55f7b72958150fed87aff1a1e850311259 /server/vd_interface.h
parent4461c749187a704a1d17b29695cf9f8a68cd3f80 (diff)
downloadspice-58273e3a32d89e59eb7da742c9b4a059dbfdfd37.tar.gz
spice-58273e3a32d89e59eb7da742c9b4a059dbfdfd37.tar.xz
spice-58273e3a32d89e59eb7da742c9b4a059dbfdfd37.zip
MouseInterface: redesign
Diffstat (limited to 'server/vd_interface.h')
-rw-r--r--server/vd_interface.h25
1 files changed, 16 insertions, 9 deletions
diff --git a/server/vd_interface.h b/server/vd_interface.h
index e2e5d265..1567b120 100644
--- a/server/vd_interface.h
+++ b/server/vd_interface.h
@@ -219,17 +219,24 @@ struct SpiceKbdInstance {
SpiceKbdState *st;
};
-#define VD_INTERFACE_MOUSE "mouse"
-#define VD_INTERFACE_MOUSE_MAJOR 1
-#define VD_INTERFACE_MOUSE_MINOR 1
-typedef struct MouseInterface MouseInterface;
-
-struct MouseInterface {
+#define SPICE_INTERFACE_MOUSE "mouse"
+#define SPICE_INTERFACE_MOUSE_MAJOR 1
+#define SPICE_INTERFACE_MOUSE_MINOR 1
+typedef struct SpiceMouseInterface SpiceMouseInterface;
+typedef struct SpiceMouseInstance SpiceMouseInstance;
+typedef struct SpiceMouseState SpiceMouseState;
+
+struct SpiceMouseInterface {
SpiceBaseInterface base;
- void (*moution)(MouseInterface* mouse, int dx, int dy, int dz,
- uint32_t buttons_state);
- void (*buttons)(MouseInterface* mouse, uint32_t buttons_state);
+ void (*motion)(SpiceMouseInstance *sin, int dx, int dy, int dz,
+ uint32_t buttons_state);
+ void (*buttons)(SpiceMouseInstance *sin, uint32_t buttons_state);
+};
+
+struct SpiceMouseInstance {
+ SpiceBaseInstance base;
+ SpiceMouseState *st;
};
#define VD_INTERFACE_TABLET "tablet"