mirror of
https://github.com/linux-usb-gadgets/libusbgx.git
synced 2025-07-21 22:05:41 +03:00
libusbgx: Update show-gadgets example to support MIDI gadgets
Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de> Reviewed-by: Pawel Szewczyk <p.szewczyk@samsung.com> [Update description] Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
This commit is contained in:
parent
191ba95604
commit
184ef3b306
1 changed files with 13 additions and 0 deletions
|
@ -150,6 +150,19 @@ void show_function(usbg_function *f)
|
|||
break;
|
||||
}
|
||||
|
||||
case USBG_F_ATTRS_MIDI:
|
||||
{
|
||||
usbg_f_midi_attrs *attrs = &f_attrs.attrs.midi;
|
||||
|
||||
fprintf(stdout, " index\t\t%d\n", attrs->index);
|
||||
fprintf(stdout, " id\t\t\t%s\n", attrs->id);
|
||||
fprintf(stdout, " in_ports\t\t%d\n", attrs->in_ports);
|
||||
fprintf(stdout, " out_ports\t\t%d\n", attrs->out_ports);
|
||||
fprintf(stdout, " buflen\t\t%d\n", attrs->buflen);
|
||||
fprintf(stdout, " qlen\t\t%d\n", attrs->qlen);
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
fprintf(stdout, " UNKNOWN\n");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue