Re: Header file for hub class

David Brownell <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Tuesday 27 February 2007 7:58 pm, Jon Smirl wrote:
> Linux seems to be missing a header file for the hub class. For example
> if you look at the source for lsusb.c it is using a lot of hex
> constants since there aren't symbols defined.

As Alan observed, there *is* such a file, just not one for userspace.

The lsusb.c source could stand a cleanup in that respect, but one
issue will be the fact that <linux/usb/ch9.h> (and cdc.h, etc) aren't
yet widely available.  The very newest distros include them.  Maybe
the deal is that the autoconf should be prepared to use local copies
if the distro doesn't include them...

So this is an opportunity for a motivated person to submit some
patches to make lsusb.c cleaner in that respect.  It's kind of just
grown from its original Linux 2.2 base, and various things could now
be done better.  :)

- Dave


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.