MacOsDeviceLister: Rename kIOMasterPortDefault to kIOMainPortDefault
This commit is contained in:
parent
aa6809ad5f
commit
8e5360ac38
|
@ -155,7 +155,7 @@ bool MacOsDeviceLister::Init() {
|
||||||
DASessionScheduleWithRunLoop(loop_session_, run_loop_, kCFRunLoopDefaultMode);
|
DASessionScheduleWithRunLoop(loop_session_, run_loop_, kCFRunLoopDefaultMode);
|
||||||
|
|
||||||
// Register for USB device connection/disconnection.
|
// Register for USB device connection/disconnection.
|
||||||
IONotificationPortRef notification_port = IONotificationPortCreate(kIOMasterPortDefault);
|
IONotificationPortRef notification_port = IONotificationPortCreate(kIOMainPortDefault);
|
||||||
CFMutableDictionaryRef matching_dict = IOServiceMatching(kIOUSBDeviceClassName);
|
CFMutableDictionaryRef matching_dict = IOServiceMatching(kIOUSBDeviceClassName);
|
||||||
// IOServiceAddMatchingNotification decreases reference count.
|
// IOServiceAddMatchingNotification decreases reference count.
|
||||||
CFRetain(matching_dict);
|
CFRetain(matching_dict);
|
||||||
|
|
Loading…
Reference in New Issue