|
52 | 52 |
|
53 | 53 | @ingroup API |
54 | 54 | */ |
55 | | -#define HID_API_VERSION_MINOR 15 |
| 55 | +#define HID_API_VERSION_MINOR 16 |
56 | 56 | /** @brief Static/compile-time patch version of the library. |
57 | 57 |
|
58 | 58 | @ingroup API |
@@ -144,6 +144,13 @@ extern "C" { |
144 | 144 | Specifications: |
145 | 145 | https://www.microsoft.com/download/details.aspx?id=103325 */ |
146 | 146 | HID_API_BUS_SPI = 0x04, |
| 147 | + |
| 148 | + /** Virtual device |
| 149 | + E.g.: https://elixir.bootlin.com/linux/v4.0/source/include/uapi/linux/input.h#L955 |
| 150 | + |
| 151 | + Since version 0.16.0, @ref HID_API_VERSION >= HID_API_MAKE_VERSION(0, 16, 0) |
| 152 | + */ |
| 153 | + HID_API_BUS_VIRTUAL = 0x05, |
147 | 154 | } hid_bus_type; |
148 | 155 |
|
149 | 156 | /** hidapi info structure */ |
@@ -379,14 +386,10 @@ extern "C" { |
379 | 386 |
|
380 | 387 | This function is intended for logging/debugging purposes. |
381 | 388 |
|
382 | | - This function guarantees to never return NULL. |
| 389 | + This function guarantees to never return NULL for a valid @ref dev. |
383 | 390 | If there was no error in the last call to hid_read/hid_read_error - |
384 | 391 | the returned string clearly indicates that. |
385 | 392 |
|
386 | | - Any HIDAPI function that can explicitly indicate an execution failure |
387 | | - (e.g. by an error code, or by returning NULL) - may set the error string, |
388 | | - to be returned by this function. |
389 | | -
|
390 | 393 | Strings returned from hid_read_error() must not be freed by the user, |
391 | 394 | i.e. owned by HIDAPI library. |
392 | 395 | Device-specific error string may remain allocated at most until hid_close() is called. |
|
0 commit comments