开发者

What is the '245' in the IOKit USB libraries?

I'm getting started with IOKit on OS X, and I've been puzzled by the '2开发者_运维问答45' 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜