Debian Codegraph @

p5glove/libp5glove/macosx_usb_hid.h

raw symbols SCIP
1 /*
2 Copyright (c) 2004 Tim Kreger <[email protected]>
3
4 Macintosh OS X USB HID I/O routines
5
6 Created by Tim Kreger on Wed Mar 17 2004.
7 */
8 /*
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU Lesser General Public License as published by
11 * the Free Software Foundation; either version 2.1 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 */
23
24
25 #ifndef INCLUDED_WIN32_USB_HID_H
26 #define INCLUDED_WIN32_USB_HID_H
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31
32 /*
33 these calls are roughly equivalent to those defined in win32_usb_hid.h
34 */
35
36 typedef void* USBHIDHandle;
37
38 #define INVALID_USBHIDHANDLE_VALUE (0)
39
40
41 USBHIDHandle OpenUSBHID( int index, int idVendor, int idProduct, int versionNumber, int flags );
42
43
44 void CloseUSBHID( USBHIDHandle usbHidHandle );
45
46
47 int ReadUSBHID( USBHIDHandle usbHidHandle, void *data, int count );
48
49
50 #ifdef __cplusplus
51 }
52 #endif
53
54 #endif /* INCLUDED_WIN32_USB_HID_H */