opnsense-src/lib/libusb
ShengYi Hung 99d5cf25d7 libusb: implement libusb_setlocale to support different locale of error message
Upstream libusb identifies languages using only the first two
characters of the language code.
We adopt the same approach to maintain API compatibility.

Currently, only English and Mandarin are supported,
as other languages are not yet implemented.

Reviewed by:    kevans
Approved by:    markj (mentor)
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50820
2025-07-11 00:15:30 -04:00
..
libusb-0.1.pc.in Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
libusb-1.0.pc.in libusb: claim to be version 1.0.16 2024-06-28 12:18:34 -04:00
libusb-2.0.pc.in Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
libusb.3 libusb: implement libusb_setlocale to support different locale of error message 2025-07-11 00:15:30 -04:00
libusb.h libusb: implement libusb_setlocale to support different locale of error message 2025-07-11 00:15:30 -04:00
libusb01.c libusb: add SUPER_PLUS in speed enum. 2025-05-15 20:30:32 +02:00
libusb10.c libusb: implement libusb_setlocale to support different locale of error message 2025-07-11 00:15:30 -04:00
libusb10.h libusb: implement libusb_setlocale to support different locale of error message 2025-07-11 00:15:30 -04:00
libusb10_desc.c libusb: rename bNumDeviceCapabilities to bNumDeviceCaps for compatibility with libusb 2025-07-08 11:11:41 -04:00
libusb10_hotplug.c libusb: consider bad fd as a broken event 2025-06-25 14:40:02 +02:00
libusb10_io.c libusb: replace LOG_LEVEL with DEBUG_LEVEL 2025-07-08 22:19:47 -04:00
libusb20.3 libusb: add SUPER_PLUS in speed enum. 2025-05-15 20:30:32 +02:00
libusb20.c Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
libusb20.h libusb: add SUPER_PLUS in speed enum. 2025-05-15 20:30:32 +02:00
libusb20_desc.c Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
libusb20_desc.h libusb: rename bNumDeviceCapabilities to bNumDeviceCaps for compatibility with libusb 2025-07-08 11:11:41 -04:00
libusb20_int.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
libusb20_ugen20.c Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
libusb_global_linux.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
usb.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00