Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #179812

Re: where is usb.h?

From Mark Copper <mlcopper@gmail.com>
Newsgroups linux.debian.user
Subject Re: where is usb.h?
Date 2017-04-05 17:30 +0200
Message-ID <tsV2G-4nq-7@gated-at.bofh.it> (permalink)
References <tszbQ-78Z-25@gated-at.bofh.it> <tsD5M-1gm-13@gated-at.bofh.it> <tsDSa-1Nf-25@gated-at.bofh.it> <tsNRv-89c-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Apr 5, 2017 at 2:39 AM, Dominique Dumont <dod@debian.org> wrote:
> 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

Yeah, it looks as if that module was never really more than proof of
concept and suggests a road map
   device --> hidapi --> scripting glue (e.g. Perl XS) --> HTTP server

Mark

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

where is usb.h? Mark Copper <mlcopper@gmail.com> - 2017-04-04 18:10 +0200
  Re: where is usb.h? Greg Wooledge <wooledg@eeg.ccf.org> - 2017-04-04 18:20 +0200
  Re: where is usb.h? "Thomas Schmitt" <scdbackup@gmx.net> - 2017-04-04 18:40 +0200
  Re: where is usb.h? songbird <songbird@anthive.com> - 2017-04-04 20:50 +0200
    Re: where is usb.h? Mark Copper <mcopper@straitcity.com> - 2017-04-04 21:40 +0200
      Re: where is usb.h? songbird <songbird@anthive.com> - 2017-04-04 21:40 +0200
        Re: where is usb.h? Mark Copper <mcopper@straitcity.com> - 2017-04-04 22:20 +0200
          Re: where is usb.h? songbird <songbird@anthive.com> - 2017-04-04 23:10 +0200
            Re: where is usb.h? Dominique Dumont <dod@debian.org> - 2017-04-05 09:50 +0200
              Re: where is usb.h? Mark Copper <mlcopper@gmail.com> - 2017-04-05 17:30 +0200

csiph-web