summaryrefslogtreecommitdiff
path: root/include/usbg
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2014-02-12 13:17:55 +0100
committerKrzysztof Opasiak <k.opasiak@samsung.com>2014-02-19 21:17:19 +0100
commited9919d88476621b5dbfff418efa9836834041e9 (patch)
tree4208567463d02a7139fa4a808f707e592528af5e /include/usbg
parent85566675df0e1ef6d09fbc85b08f91cb7620822a (diff)
downloadlibusbg-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.h18
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