C++ source file used by CMake module CheckMacHIDAPI.cmake.
More...
|
| int | main (int argc, char *argv[]) |
| |
C++ source file used by CMake module CheckMacHIDAPI.cmake.
- Author
- Ryan Pavlik, 2009-2010 rpavl.nosp@m.ik@i.nosp@m.astat.nosp@m.e.ed.nosp@m.u http://academic.cleardefinition.com/
-
Based on code extracted from VRPN 07.22 for use as a minimal test case
Attempts to compile a difficult bit of code against the Mac HID API, as two different types have been required in the callback function (UInt32 and uint32_t) and testing is the best way to know which one is correct for a given system.
◆ main()
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
34 {
35#if defined(__APPLE__)
36 io_object_t _ioObject;
37 IOHIDDeviceInterface122 **_interface;
38 unsigned char _buffer[512];
39 IOReturn
result = (*_interface)->setInterruptReportHandlerCallback(_interface,
40 _buffer, 512,
41 ReaderReportCallback,
42 NULL, 0);
43#endif
44 return 0;
45}
SampleIterator< const uint8_t > result
Definition sampleiterator-tests.cc:94