Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why does API search for "USBDeviceOpen" return no results?




On Jan 24, 2008, at 3:21 PM, Rick Mann wrote:

I'm debugging some open-source USB code that's returning an error there (0xe00002c5). So, I try to use Xcode's documentation features to find USBDeviceOpen(), but nothing comes up.

I'm pretty sure that when I do find the docs for USBDeviceOpen, it won't list all the error codes it could return right there (my biggest complaint with the API docs).

A full-text search returns some hits, but why not the API search?

Because of the funky way that USBDeviceOpen and friends are defined in IOUSBLib.h. They're not defined as straight function calls in C or as straight member functions in C++, but as C function members in a struct. That way both C and C++ programmers can use them...but neither can find them in the docs.


It'd be helpful to file a bug on the developer documentation (or use the Feedback box on the documentation page) to tell the documentation team; they may need to tweak their automated header indexer to find these entry points.

Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Why does API search for "USBDeviceOpen" return no results? (From: Rick Mann <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.