macOS 12.0 Deprecation: kIOMasterPortDefault -> kIOMainPortDefault
rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Mon, 29 Jun 2026 16:53:28 -0400
| Newsgroups | gmane.comp.systems.archos.rockbox.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit e0ac7a75a3b0b9d14533358d76d6792cc07dc206 Author: Vencislav Atanasov <[email protected]> Date: Mon Jun 29 21:48:23 2026 +0300 macOS 12.0 Deprecation: kIOMasterPortDefault -> kIOMainPortDefault Co-authored-by: ChatGPT (GPT-5.3 Mini) <[email protected]> Change-Id: I4b5d6b73b87b7ea9e79ed20bbd27fb88fc8647ab diff --git a/utils/ipodpatcher/ipodio-posix.c b/utils/ipodpatcher/ipodio-posix.c index a9e3eaf2d3..bfcc13e27e 100644 --- a/utils/ipodpatcher/ipodio-posix.c +++ b/utils/ipodpatcher/ipodio-posix.c @@ -178,7 +178,7 @@ int ipod_scsi_inquiry(struct ipod_t* ipod, int page_code, io_iterator_t iterator = IO_OBJECT_NULL; /* get matching services from IO registry. Consumes one reference to * the dictionary, so no need to release that. */ - kr = IOServiceGetMatchingServices(kIOMasterPortDefault, match_dict, &iterator); + kr = IOServiceGetMatchingServices(kIOMainPortDefault, match_dict, &iterator); if(!iterator | (kr != kIOReturnSuccess)) return -1; diff --git a/utils/mks5lboot/ipoddfu.c b/utils/mks5lboot/ipoddfu.c index 7335567b21..e5c811ee0a 100644 --- a/utils/mks5lboot/ipoddfu.c +++ b/utils/mks5lboot/ipoddfu.c @@ -602,7 +602,7 @@ static dfuAPIResult dfu_iokit_open(struct dfuDev *dfuh, int *pid_list) usb_matching_dict = IOServiceMatching(kIOUSBDeviceClassName); dfuh->kr = IOServiceGetMatchingServices( - kIOMasterPortDefault, usb_matching_dict, &usb_iterator); + kIOMainPortDefault, usb_matching_dict, &usb_iterator); if (!dfu_iokit_chkrc(dfuh, "Could not get matching services")) goto error; diff --git a/utils/rbutilqt/base/system.cpp b/utils/rbutilqt/base/system.cpp index 0ec1a9d424..3fea6a64c9 100644 --- a/utils/rbutilqt/base/system.cpp +++ b/utils/rbutilqt/base/system.cpp @@ -287,7 +287,7 @@ QMultiMap<uint32_t, QString> System::listUsbDevices(void) CFMutableDictionaryRef usb_matching_dictionary; io_iterator_t usb_iterator = IO_OBJECT_NULL; usb_matching_dictionary = IOServiceMatching(kIOUSBDeviceClassName); - result = IOServiceGetMatchingServices(kIOMasterPortDefault, usb_matching_dictionary, + result = IOServiceGetMatchingServices(kIOMainPortDefault, usb_matching_dictionary, &usb_iterator); if(result) { LOG_ERROR() << "USB: IOKit: Could not get matching services."; -- rockbox-cvs mailing list [email protected] https://lists.haxx.se/mailman/listinfo/rockbox-cvs