signal11/hidapi — pull request #39 by mrpippy (2012-01-24 05:47:00+00:00)
Title: Mac: Remove device_list and its mutex/code

Remove device_list, which was used to match up IOHIDDeviceRef's and
hid_device's in the device removal callback. This was needed because the
removal callback was attached to the whole IOHIDManager, instead of
individual IOHIDDevices.
Instead attach the removal callback to each IOHIDDevice individually,
and have a pointer to the device's hid_device passed to the callback.