mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
macOS 12.0 Deprecation: kIOMasterPortDefault -> kIOMainPortDefault
Co-authored-by: ChatGPT (GPT-5.3 Mini) <chatgpt@openai.com> Change-Id: I4b5d6b73b87b7ea9e79ed20bbd27fb88fc8647ab
This commit is contained in:
parent
b99b2e98df
commit
e0ac7a75a3
3 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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.";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue