CoreMIDI macOS 10.12 to 10.13 API Differences

MIDIDriver.h
Declaration
Fromconst CFStringRef kMIDIDriverPropertyUsesSerial
Toconst CFStringRef _Nonnull kMIDIDriverPropertyUsesSerial

Declaration
FromOSStatus MIDIDeviceCreate(MIDIDriverRef owner, CFStringRef name, CFStringRef manufacturer, CFStringRef model, MIDIDeviceRef *outDevice)
ToOSStatus MIDIDeviceCreate(MIDIDriverRef _Nullable owner, CFStringRef _Nonnull name, CFStringRef _Nonnull manufacturer, CFStringRef _Nonnull model, MIDIDeviceRef * _Nonnull outDevice)

Declaration
FromOSStatus MIDIEndpointSetRefCons(MIDIEndpointRef endpt, void *ref1, void *ref2)
ToOSStatus MIDIEndpointSetRefCons(MIDIEndpointRef endpt, void * _Nullable ref1, void * _Nullable ref2)

Declaration
FromOSStatus MIDIEndpointGetRefCons(MIDIEndpointRef endpt, void **ref1, void **ref2)
ToOSStatus MIDIEndpointGetRefCons(MIDIEndpointRef endpt, void * _Nonnull * _Nullable ref1, void * _Nonnull * _Nullable ref2)

Declaration
FromCFRunLoopRef MIDIGetDriverIORunLoop(void)
ToCFRunLoopRef _Nonnull MIDIGetDriverIORunLoop(void)

Declaration
FromMIDIDeviceListRef MIDIGetDriverDeviceList(MIDIDriverRef driver)
ToMIDIDeviceListRef MIDIGetDriverDeviceList(MIDIDriverRef _Nonnull driver)

Declaration
FromOSStatus MIDIDriverEnableMonitoring(MIDIDriverRef driver, Boolean enabled)
ToOSStatus MIDIDriverEnableMonitoring(MIDIDriverRef _Nonnull driver, Boolean enabled)

MIDIServices.h
Declaration
FromItemCount MIDIGetNumberOfDevices(void)
ToItemCount MIDIGetNumberOfDevices(void)

Declaration
FromItemCount MIDIGetNumberOfSources(void)
ToItemCount MIDIGetNumberOfSources(void)

Declaration
FromItemCount MIDIGetNumberOfDestinations(void)
ToItemCount MIDIGetNumberOfDestinations(void)

Declaration
FromItemCount MIDIGetNumberOfExternalDevices(void)
ToItemCount MIDIGetNumberOfExternalDevices(void)

Modified MIDIRestart()
Declaration
FromOSStatus MIDIRestart(void)
ToOSStatus MIDIRestart(void)