Changeset 051f96b in mainline for uspace/app/usbinfo/main.c


Ignore:
Timestamp:
2011-06-17T20:53:34Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2e833cf7
Parents:
e9c02b7
Message:

Another option for usbinfo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/usbinfo/main.c

    re9c02b7 r051f96b  
    6868        _OPTION("-S --status", "Get status of the device.");
    6969        _OPTION("-r --hid-report", "Dump HID report descriptor.");
     70        _OPTION("-r --hid-report-usages", "Dump usages of HID report.");
    7071
    7172        printf("\n");
     
    8687        {"status", no_argument, NULL, 'S'},
    8788        {"hid-report", no_argument, NULL, 'r'},
     89        {"hid-report-usages", no_argument, NULL, 'R'},
    8890        {0, 0, NULL, 0}
    8991};
    90 static const char *short_options = "himtTsSr";
     92static const char *short_options = "himtTsSrR";
    9193
    9294static usbinfo_action_t actions[] = {
     
    123125        {
    124126                .opt = 'r',
    125                 .action = dump_hidreport,
     127                .action = dump_hidreport_raw,
     128                .active = false
     129        },
     130        {
     131                .opt = 'R',
     132                .action = dump_hidreport_usages,
    126133                .active = false
    127134        },
Note: See TracChangeset for help on using the changeset viewer.