Re: [spice-gtk Win32 v4 02/17] Introduce SpiceUsbDeviceInfo to be kept instead of a libusb_device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/06/2012 09:26 AM, Hans de Goede wrote:
On 07/05/2012 10:43 PM, Uri Lublin wrote:

+typedef struct _SpiceUsbDeviceInfo {
+#ifdef USE_USBREDIR
+    guint8  busnum;
+    guint8  devaddr;
+    guint16 vid;
+    guint16 pid;
+    int     ref;
+#endif
+} SpiceUsbDeviceInfo;
+
  #ifdef USE_USBREDIR
  static void channel_new(SpiceSession *session, SpiceChannel *channel,
                          gpointer user_data);

Many compilers barf on empty structs, at a minimum you need to put an "int dummy;" in there.


Hi Hans,

I moved the whole struct below the next #ifdef USE_USBREDIR.

Thanks,
    Uri.

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]