On Thu, Sep 27, 2012 at 6:33 PM, Hans de Goede <hdego...@redhat.com> wrote:
> On 09/27/2012 11:23 AM, Xiaofan Chen wrote:
>> 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

I see.

> 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.

That should be the case and will ensure a more smooth transition
to the new version.

> 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 ...

I see. This is a good reason.

> 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.

I do not quite like this idea. libusb-compat makes sense since
libusb-1.0/libusbx is very different from libusb-0.1. On the other
hand, it seems to me that libusbx-2.0 will not that different from
libusbx-1.0.

BTW, I do not quite understand the current roadmap page with
regard to 1.1,0 and 1.1.1. I think they will not be materialized,
right?
https://github.com/libusbx/libusbx/issues/milestones?direction=asc&sort=due_date
-- 
Xiaofan

------------------------------------------------------------------------------
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