macOS: kIOMasterPortDefault is deprecated #377
Labels
No labels
3rdparty
Android
API
Author does not respond
bsd
bug
build system/CI
ci-virtual-device
CMake
Contributions Welcome
Core
dependencies
device-specific
documentation
don't_merge
duplicate
enhancement
Example
Haiku
hidraw
hotplug
info required
invalid
libusb
macOS
Misc
Not an issue
question
Release
Test
Test GUI
Windows
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libusb/hidapi#377
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Has Apple provided an alternative?
It looks like its
kIOMainPortDefaultperhaps something like...
Interestingly libusb uses a simple way to do this. I am not saying it is a better way though.
https://github.com/libusb/libusb/blob/master/libusb/os/darwin_usb.c#L57
Ref:
https://developer.apple.com/documentation/iokit/kiomasterportdefault
https://developer.apple.com/documentation/iokit/kiomainportdefault
This is a synonym for NULL, if you'd rather use a named constant.
Thanks for the alternative