From aa47a2b9bde00451c78807a480a307e2dac7e503 Mon Sep 17 00:00:00 2001 From: Krzysztof Opasiak Date: Wed, 19 Feb 2014 14:56:27 +0100 Subject: 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 --- include/usbg/usbg.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/usbg') 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); /** -- cgit v1.2.3