Hi,

On 09/27/2012 11:23 AM, Xiaofan Chen wrote:
> On Thu, Sep 27, 2012 at 5:14 PM, Hans de Goede <hdego...@redhat.com> wrote:
>> As a one last note, we should probably also rename the header file, etc,
>> from libusb to libusbx for the 2.0 release.
>
> That is a good idea.
>
> Shall we just drop the "libusbx-2.0\libusbx.h" (libusb-1.0\libusb.h
> in its current form) thingy and use libusbx2.h or things like that?

Thinking more about this, lets make it:
libusbx-2.0\libusb.h

So that apps can keep using "include <libusb.h>", I'm fine with making the
library libusbx-2.0.so... and with the include dir being libusbx-2.0\libusbx.h

But I assume we are going to keep calling all the functions / structs
libusb_foo and not libusbx_foo, so lets do the same with the header.

The reason for this, is that if we do this apps using libusbx can support
building against both 1.0.x and 2.0.x with a minimal number of ifdefs,
where as if we change all the libusb_foo to libusbx_foo ...

Regards,

Hans

p.s.

OTOH if we rename all the libusb_foo to libusbx_foo, we could do a
a libusb1-compat.h which just #defines every libusb_foo to libusbx_foo,
an advantage of this is that we can then add casts for parameter munging,
etc.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to