diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2014-02-12 13:17:55 +0100 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2014-02-19 21:17:19 +0100 |
commit | ed9919d88476621b5dbfff418efa9836834041e9 (patch) | |
tree | 4208567463d02a7139fa4a808f707e592528af5e /include/usbg | |
parent | 85566675df0e1ef6d09fbc85b08f91cb7620822a (diff) | |
download | libusbg-ed9919d88476621b5dbfff418efa9836834041e9.tar.gz libusbg-ed9919d88476621b5dbfff418efa9836834041e9.tar.bz2 libusbg-ed9919d88476621b5dbfff418efa9836834041e9.zip |
libusbg: Add getters for gadget strings and attributes.
Add getter's to avoid direct access to gadget structure
members.
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Diffstat (limited to 'include/usbg')
-rw-r--r-- | include/usbg/usbg.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/usbg/usbg.h b/include/usbg/usbg.h index c3e9d29..1ffc75d 100644 --- a/include/usbg/usbg.h +++ b/include/usbg/usbg.h @@ -294,6 +294,15 @@ extern void usbg_set_gadget_attrs(struct gadget *g, struct gadget_attrs *g_attrs); /** + * @brief Get the USB gadget strings + * @param g Pointer to gadget + * @param g_attrs Structure to be filled + * @retur Pointer to filled structure or NULL if error occurred. + */ +extern struct gadget_attrs *usbg_get_gadget_attrs(struct gadget *g, + struct gadget_attrs *g_attrs); + +/** * @brief Set the USB gadget vendor id * @param g Pointer to gadget * @param idVendor USB device vendor id @@ -355,6 +364,15 @@ extern void usbg_set_gadget_device_bcd_device(struct gadget *g, extern void usbg_set_gadget_device_bcd_usb(struct gadget *g, uint16_t bcdUSB); /** + * @brief Get the USB gadget strings + * @param g Pointer to gadget + * @param g_sttrs Structure to be filled + * @retur Pointer to filled structure or NULL if error occurred. + */ +extern struct gadget_strs *usbg_get_gadget_strs(struct gadget *g, + struct gadget_strs *g_strs); + +/** * @brief Set the USB gadget strings * @param g Pointer to gadget * @param lang USB language ID |