hidapi
Loading...
Searching...
No Matches
hidapi_darwin.h
Go to the documentation of this file.
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
25
26#ifndef HIDAPI_DARWIN_H__
27#define HIDAPI_DARWIN_H__
28
29#include <stdint.h>
30
31#include "hidapi.h"
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
49
50
69
81
93
94#ifdef __cplusplus
95}
96#endif
97
98#endif
int HID_API_EXPORT_CALL hid_darwin_get_open_exclusive(void)
Getter for option set by hid_darwin_set_open_exclusive.
int HID_API_EXPORT_CALL hid_darwin_get_location_id(hid_device *dev, uint32_t *location_id)
Get the location ID for a HID device.
void HID_API_EXPORT_CALL hid_darwin_set_open_exclusive(int open_exclusive)
Changes the behavior of all further calls to hid_open or hid_open_path.
int HID_API_EXPORT_CALL hid_darwin_is_device_open_exclusive(hid_device *dev)
Check how the device was opened.
#define HID_API_EXPORT_CALL
Definition hidapi.h:44
struct hid_device_ hid_device
Definition hidapi.h:116