On Sat, 15 Sep 2012 10:34:07 +0200, Ludovic Rousseau said:

>> Otherwise, for the bMaxPower update, my current preferred proposal
>would be to have user copy/paste the new libusbx descriptor structure as
>is, use that in their app exclusively and then use a cast. This is what
>I am currently pointing out to do in the NEWS update.
>
>I realy do not like this idea. Structures defined by the API should
>not be redefined by the application. That is the source of more
>problems later.

It's also a violation of C's 'strict aliasing rule', and shouldn't be 
encouraged.

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to