diff options
author | Dominic Sacré <dominic.sacre@gmx.de> | 2015-05-12 10:19:22 +0200 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2015-05-19 14:02:13 +0200 |
commit | 7b8ee3495e8ea7c381a7bbb5154587a7493bad7c (patch) | |
tree | af0e2a12f01a1638cb5a0f49d4873fbd88318b0c | |
parent | 5d0392b5724518e7da588139cb8ff10e27e6fbfc (diff) | |
download | libusbg-7b8ee3495e8ea7c381a7bbb5154587a7493bad7c.tar.gz libusbg-7b8ee3495e8ea7c381a7bbb5154587a7493bad7c.tar.bz2 libusbg-7b8ee3495e8ea7c381a7bbb5154587a7493bad7c.zip |
libusbg: 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>
Reviewed-by: Krzysztof Opasiak <k.opasiak@samsung.com>
-rw-r--r-- | examples/show-gadgets.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/show-gadgets.c b/examples/show-gadgets.c index 7ff71d5..b06a8ff 100644 --- a/examples/show-gadgets.c +++ b/examples/show-gadgets.c @@ -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"); } |