libusbgx: Make *_attrs and *_strs arguments const-correct
authorDominic Sacré <dominic.sacre@gmx.de>
Thu, 12 Mar 2015 10:50:03 +0000 (11:50 +0100)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 22 Dec 2015 20:45:35 +0000 (21:45 +0100)
commit70c71bdf1bba2c7bc7af0e6a17209d6134656165
tree1507ebf0f2a5122b1df66a590d40879553c64f4e
parentc72206bb722c8659446139c72ea9f3e6cfc61945
libusbgx: Make *_attrs and *_strs arguments const-correct

This makes it easier to use libusbgx in clean, idiomatic C++ code.

This patch changes the *_attrs and *_strs arguments only. It does not
make any assumptions regarding the const-ness of other structures
(usbg_gadget etc.), which is something that doesn't come up in typical
use cases.

Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de>
[Add libusbgx: to commit message.]
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
include/usbg/usbg.h
src/usbg.c