[Spice-devel] [spice-server 2/3] char-device: Remove duplicate typedef

Christophe Fergeau cfergeau at redhat.com
Tue Apr 5 13:09:49 UTC 2016


---
 server/char-device.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/server/char-device.h b/server/char-device.h
index d92cbab..0a4ae5d 100644
--- a/server/char-device.h
+++ b/server/char-device.h
@@ -32,6 +32,7 @@
 #define RED_IS_CHAR_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), RED_TYPE_CHAR_DEVICE))
 #define RED_CHAR_DEVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), RED_TYPE_CHAR_DEVICE, RedCharDeviceClass))
 
+/* SpiceCharDeviceState is public API, but internally we use RedCharDevice */
 typedef struct SpiceCharDeviceState RedCharDevice;
 typedef struct RedCharDeviceClass RedCharDeviceClass;
 typedef struct RedCharDevicePrivate RedCharDevicePrivate;
@@ -119,8 +120,6 @@ void red_char_device_set_callbacks(RedCharDevice *dev,
  * */
 
 struct RedsState;
-/* SpiceCharDeviceState is public API, but internally we use RedCharDevice */
-typedef struct SpiceCharDeviceState RedCharDevice;
 
 /* buffer that is used for writing to the device */
 typedef struct RedCharDeviceWriteBuffer {
-- 
2.5.5



More information about the Spice-devel mailing list