[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: where is usb.h?



On Tuesday, 4 April 2017 17:00:28 CEST songbird wrote:
> Can't locate object method "nNumInterfaces" via package
> 
> > "Device::USB::DevConfig" at ./read_usb.pl line 26, <DATA> line 1.

Looks like a typo in Device::USB::DevConfig synopsis: nNumInterfaces is referenced only there.

On the other hand bNumInterfaces is documented later in the man page and used in the test files:

$ ack bNumInterfaces
t/15-usb_dev_configuration.t
32:        qw/wTotalLength bNumInterfaces interfaces bConfigurationValue
48:        is( $cfg->bNumInterfaces(), scalar @{$cfg->interfaces()}, "$filename:$cfgno: interface count" );

USB.pm
918:    hashStoreInt( hash, "bNumInterfaces", cfg->bNumInterfaces );
924:        list_interfaces( cfg->interface, cfg->bNumInterfaces )

lib/Device/USB/DevConfig.pm
79:=item bNumInterfaces
123:_make_descr_accessor( 'bNumInterfaces' );

lib/Device/USB.pm
918:    hashStoreInt( hash, "bNumInterfaces", cfg->bNumInterfaces );
924:        list_interfaces( cfg->interface, cfg->bNumInterfaces )

Please log a bug upstream [1] for this issue

All the best

[1] https://rt.cpan.org/Dist/Display.html?Name=Device-USB
-- 
 https://github.com/dod38fr/   -o- http://search.cpan.org/~ddumont/
http://ddumont.wordpress.com/  -o-   irc: dod at irc.debian.org


Reply to: