summaryrefslogtreecommitdiffstats
path: root/libhb/lang.h
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/lang.h')
-rw-r--r--libhb/lang.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libhb/lang.h b/libhb/lang.h
index 0b353573f..21aab70af 100644
--- a/libhb/lang.h
+++ b/libhb/lang.h
@@ -14,7 +14,7 @@ typedef struct iso639_lang_t
{
char * eng_name; /* Description in English */
char * native_name; /* Description in native language */
- char * iso639_1; /* ISO-639-1 (2 characters) code */
+ char * iso639_1; /* ISO-639-1 (2 characters) code */
char * iso639_2; /* ISO-639-2/t (3 character) code */
char * iso639_2b; /* ISO-639-2/b code (if different from above) */
@@ -23,6 +23,9 @@ typedef struct iso639_lang_t
#ifdef __cplusplus
extern "C" {
#endif
+/* find language, match any of names in lang struct */
+iso639_lang_t * lang_lookup( const char * str );
+
/* find language associated with ISO-639-1 language code */
iso639_lang_t * lang_for_code( int code );