]> git.sesse.net Git - vlc/blob - include/iso_lang.h
* ./src/misc/iso_lang.c: code simplifications.
[vlc] / include / iso_lang.h
1 /*****************************************************************************
2  * iso_lang.h: function to decode language code (in dvd or a52 for instance).
3  *****************************************************************************
4  * Copyright (C) 1998-2001 VideoLAN
5  * $Id: iso_lang.h,v 1.5 2002/05/20 22:36:42 sam Exp $
6  *
7  * Author: Stéphane Borel <stef@via.ecp.fr>
8  *         Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  * 
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
23  *****************************************************************************/
24
25 struct iso639_lang_s
26 {
27     char * psz_eng_name;        /* Description in English */
28     char * psz_native_name;     /* Description in native language */
29     char * psz_iso639_1;        /* ISO-639-1 (2 characters) code */
30     char * psz_iso639_2T;       /* ISO-639-2/T (3 characters) English code */
31     char * psz_iso639_2B;       /* ISO-639-2/B (3 characters) native code */
32 };
33
34 #ifndef __PLUGIN__
35 const iso639_lang_t * GetLang_1( const char * psz_iso639_1 );
36 const iso639_lang_t * GetLang_2T( const char * psz_iso639_2T );
37 const iso639_lang_t * GetLang_2B( const char * psz_iso639_2B );
38 const char * DecodeLanguage( u16 );
39 #else
40 #   define GetLang_1 p_symbols->GetLang_1
41 #   define GetLang_2T p_symbols->GetLang_2T
42 #   define GetLang_2B p_symbols->GetLang_2B
43 #   define DecodeLanguage p_symbols->DecodeLanguage
44 #endif
45