summaryrefslogtreecommitdiff
path: root/include/usbg
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2014-02-19 14:56:27 +0100
committerKrzysztof Opasiak <k.opasiak@samsung.com>2014-03-10 09:15:12 +0100
commitaa47a2b9bde00451c78807a480a307e2dac7e503 (patch)
treef6b5d01cd0a1264f44c683ee5420dd92c5a9d276 /include/usbg
parente467254d0c432228cf2a3ac9dcc99e5289b2fa67 (diff)
downloadlibusbg-aa47a2b9bde00451c78807a480a307e2dac7e503.tar.gz
libusbg-aa47a2b9bde00451c78807a480a307e2dac7e503.tar.bz2
libusbg-aa47a2b9bde00451c78807a480a307e2dac7e503.zip
libusbg: Refresh gadget strings while each get.
Gadget strings should not be cached in library. Removing internal strings structure allowed to add full support for multilingual strings. Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Diffstat (limited to 'include/usbg')
-rw-r--r--include/usbg/usbg.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/usbg/usbg.h b/include/usbg/usbg.h
index 71845cd..e1a0b5c 100644
--- a/include/usbg/usbg.h
+++ b/include/usbg/usbg.h
@@ -355,10 +355,12 @@ extern void usbg_set_gadget_device_bcd_usb(usbg_gadget *g, uint16_t bcdUSB);
/**
* @brief Get the USB gadget strings
* @param g Pointer to gadget
+ * @param lang Language of strings
* @param g_sttrs Structure to be filled
- * @retur Pointer to filled structure or NULL if error occurred.
+ * @retur Pointer to filled structure or NULL if error occurred or
+ * if no strings for given language.
*/
-extern usbg_gadget_strs *usbg_get_gadget_strs(usbg_gadget *g,
+extern usbg_gadget_strs *usbg_get_gadget_strs(usbg_gadget *g, int lang,
usbg_gadget_strs *g_strs);
/**