|
| 1 | +/******************************************************* |
| 2 | + HIDAPI - Multi-Platform library for |
| 3 | + communication with HID devices. |
| 4 | +
|
| 5 | + libusb/hidapi Team |
| 6 | +
|
| 7 | + Copyright 2022, All Rights Reserved. |
| 8 | +
|
| 9 | + At the discretion of the user of this library, |
| 10 | + this software may be licensed under the terms of the |
| 11 | + GNU General Public License v3, a BSD-Style license, or the |
| 12 | + original HIDAPI license as outlined in the LICENSE.txt, |
| 13 | + LICENSE-gpl3.txt, LICENSE-bsd.txt, and LICENSE-orig.txt |
| 14 | + files located at the root of the source distribution. |
| 15 | + These files may also be found in the public source |
| 16 | + code repository located at: |
| 17 | + https://github.com/libusb/hidapi . |
| 18 | +********************************************************/ |
| 19 | + |
| 20 | +/** @file |
| 21 | + * @defgroup API hidapi API |
| 22 | + */ |
| 23 | + |
| 24 | +#ifndef HIDAPI_DARWIN_H__ |
| 25 | +#define HIDAPI_DARWIN_H__ |
| 26 | + |
| 27 | +#include <stdint.h> |
| 28 | + |
| 29 | +#include "hidapi.h" |
| 30 | + |
| 31 | +#ifdef __cplusplus |
| 32 | +extern "C" { |
| 33 | +#endif |
| 34 | + |
| 35 | + /** @brief Get the location ID for a HID device. |
| 36 | +
|
| 37 | + @ingroup API |
| 38 | + @param dev A device handle returned from hid_open(). |
| 39 | + @param location_id The device's location ID on return. |
| 40 | +
|
| 41 | + @returns |
| 42 | + This function returns 0 on success and -1 on error. |
| 43 | + */ |
| 44 | + int HID_API_EXPORT_CALL hid_darwin_get_location_id(hid_device *dev, uint32_t *location_id); |
| 45 | + |
| 46 | +#ifdef __cplusplus |
| 47 | +} |
| 48 | +#endif |
| 49 | + |
| 50 | +#endif |
0 commit comments