diff options
author | Pete Batard <pete@akeo.ie> | 2012-04-26 00:30:57 +0100 |
---|---|---|
committer | Pete Batard <pete@akeo.ie> | 2012-04-26 00:39:17 +0100 |
commit | 00d61a396c2e579caed927bcfae692e66f4dccc7 (patch) | |
tree | a91ce1da9478db8ed58cf7338db1926d1f5bc4fc /libusb/libusb.h | |
parent | b92720842b719300df06a482ab0cd01ddd4e23da (diff) | |
download | android_external_libusbx-00d61a396c2e579caed927bcfae692e66f4dccc7.tar.gz android_external_libusbx-00d61a396c2e579caed927bcfae692e66f4dccc7.tar.bz2 android_external_libusbx-00d61a396c2e579caed927bcfae692e66f4dccc7.zip |
Core: update version struct for ABI compatibility
* Adds a static string for describe
* Also update version documentation
Diffstat (limited to 'libusb/libusb.h')
-rw-r--r-- | libusb/libusb.h | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/libusb/libusb.h b/libusb/libusb.h index da4683c..3e91275 100644 --- a/libusb/libusb.h +++ b/libusb/libusb.h @@ -639,13 +639,26 @@ struct libusb_device; struct libusb_device_handle; /** \ingroup lib - * Structure providing the version of libusbx currently in use + * Structure providing the version of the libusbx runtime */ struct libusb_version { - uint16_t major; - uint16_t minor; - uint16_t micro; - uint16_t nano; + /** Library major version. */ + const uint16_t major; + + /** Library minor version. */ + const uint16_t minor; + + /** Library micro version. */ + const uint16_t micro; + + /** Library nano version. */ + const uint16_t nano; + + /** Library release candidate suffix string, e.g. "-rc4". */ + const char *rc; + + /** For ABI compatibility only. */ + const char* describe; }; /** \ingroup lib |