MacOsDeviceLister: Rename kIOMasterPortDefault to kIOMainPortDefault

This commit is contained in:
Jonas Kvinge 2023-08-27 01:14:24 +02:00
parent aa6809ad5f
commit 8e5360ac38
1 changed files with 1 additions and 1 deletions

View File

@ -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);