문제

I'm getting started with IOKit on OS X, and I've been puzzled by the '245' tagged onto data types in the IOKit USB library, such as IOUSBInterfaceInterface245. What does the 245 mean? I'm just curious what this number tacked onto the end is supposed to indicate. It seems like a version number of something.

Is there a generic version that I can use, rather than having to use a specific version?

도움이 되었습니까?

해결책

I believe that number refers to the IOUSBFamily version the struct is compatible with. Take a look at IOKit/usb/IOUSBLib.h for more details.

다른 팁

i believe it is the usb interface interface that shipped with iousbfamily 2.4.5 ( os x tiger)

IOUSBInterfaceInterface is the 1st version and is available on every version but the newer ones like 245 add extra functionality, the number is added to the end to keep the old version for backward compatibility

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top