diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2014-09-11 20:44:33 +0200 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2014-10-23 09:49:41 +0200 |
commit | d590e54298b83d2a76d34c067889005d9816b339 (patch) | |
tree | 737ff28584afd4c9e772e79019037ccf93c0ab4e /include | |
parent | 4d4f3e251d3c8a64356b859972498a522ad5fa96 (diff) | |
download | libusbg-d590e54298b83d2a76d34c067889005d9816b339.tar.gz libusbg-d590e54298b83d2a76d34c067889005d9816b339.tar.bz2 libusbg-d590e54298b83d2a76d34c067889005d9816b339.zip |
libusbg: Allow to get gadget enabled on given UDC
Add usbg_get_udc_gadget() which allows user to learn
which gadget is attached to selected UDC.
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/usbg/usbg.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/usbg/usbg.h b/include/usbg/usbg.h index d2cb4e9..8a973e7 100644 --- a/include/usbg/usbg.h +++ b/include/usbg/usbg.h @@ -885,6 +885,13 @@ extern int usbg_cpy_udc_name(usbg_udc *u, char *buf, size_t len); */ extern usbg_udc *usbg_get_gadget_udc(usbg_gadget *g); +/** + * @brief Get gadget which is attached to this UDC + * @param u Pointer to udc + * @return Pointer to gadget or NULL if UDC is free + */ +extern usbg_gadget *usbg_get_udc_gadget(usbg_udc *u); + /* * USB function-specific attribute configuration */ |