| 491 | } |
| 492 | |
| 493 | static void process_pending_events(void) { |
| 494 | SInt32 res; |
| 495 | do { |
| 496 | res = CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0.001, FALSE); |
| 497 | } while(res != kCFRunLoopRunFinished && res != kCFRunLoopRunTimedOut); |
| 498 | } |
| 499 | |
| 500 | static int read_usb_interface_from_hid_service_parent(io_service_t hid_service) |
| 501 | { |