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

Uri Lublin uril at redhat.com
Sun Jul 8 13:25:15 PDT 2012


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.



More information about the Spice-devel mailing list