quick request for a volunteer to implement device add/remove callbacks and processing
I just added a variable to the Windows VM that tracks device additions and removals via receiving WM_DEVICECHANGE messages. On Windows this allows plugins such as the SoundPlugin and CameraPlugin enumerating the available devices on every API call/primitive invocation rather than only when devices change. This facility is also needed on Mac and would be great to have on unix.
I wonder if any one has free time to do the work for the Mac to use IOHIDManagerRegisterDeviceMatchingCallback & IOHIDManagerRegisterDeviceRemovalCallback to provide a simple counter in the core Mac VM which is incremented whenever a device changes, just like the Windows implementation. If not, no biggie I'll get to this eventually.
And if any unix and/or linux experts know how various unices and especially linux approach this issue please respond here. I've no idea if unix/linux provide a good API here.