Update after filrs added and renamed
[vlc.git] / include / iso_lang.h
blobed984e561e2bd9cf5a70e89dd33460cc81a339d0
1 /*****************************************************************************
2 * iso_lang.h: function to decode language code (in dvd or a52 for instance).
3 *****************************************************************************
4 * Copyright (C) 1998-2001 the VideoLAN team
5 * $Id$
7 * Author: Stéphane Borel <stef@via.ecp.fr>
8 * Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
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.
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.
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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
25 #if !defined( __LIBVLC__ )
26 #error You are not libvlc or one of its plugins. You cannot include this file
27 #endif
29 struct iso639_lang_t
31 const char * psz_eng_name; /* Description in English */
32 const char * psz_native_name; /* Description in native language */
33 const char * psz_iso639_1; /* ISO-639-1 (2 characters) code */
34 const char * psz_iso639_2T; /* ISO-639-2/T (3 characters) English code */
35 const char * psz_iso639_2B; /* ISO-639-2/B (3 characters) native code */
38 #if defined( __cplusplus )
39 extern "C" {
40 #endif
41 VLC_EXPORT( const iso639_lang_t *, GetLang_1, ( const char * ) );
42 VLC_EXPORT( const iso639_lang_t *, GetLang_2T, ( const char * ) );
43 VLC_EXPORT( const iso639_lang_t *, GetLang_2B, ( const char * ) );
44 VLC_EXPORT( const char *, DecodeLanguage, ( uint16_t ) );
45 #if defined( __cplusplus )
47 #endif