[Libusbx-devel] [PATCH] Core: Add get_version() call

Hans de Goede hdegoede at redhat.com
Tue Apr 10 15:35:34 EDT 2012


Looks good, ack.

On 04/10/2012 01:48 PM, Pete Batard wrote:
> If we're going to have a nano updated on each commit, might as well make good use of it ;)
>
> This patch introduces a new libusb_get_version() call to the API, that application developers can use to get the major, minor, micro and nano of the current library being used. The version is returned as a libusb_version structure:
>
> struct libusb_version {
> uint16_t major;
> uint16_t minor;
> uint16_t micro;
> uint16_t nano;
> };
>
> The "choice" of uint16_t is mostly due to MSVC DLL versioning limitations, Microsoft restricts us to a set 4 words there, though I doubt this should limit us much.
>
> An example of the use of libusb_get_version() can be found in the updated xusb sample.
>
> Regards,
>
> /Pete
>
>
>
> ------------------------------------------------------------------------------
> Better than sec? Nothing is better than sec when it comes to
> monitoring Big Data applications. Try Boundary one-second
> resolution app monitoring today. Free.
> http://p.sf.net/sfu/Boundary-dev2dev
>
>
>
> _______________________________________________
> libusbx-devel mailing list
> libusbx-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libusbx-devel



More information about the libusbx mailing list