]> git.sesse.net Git - vlc/blobdiff - include/iso_lang.h
small cleanup #11362
[vlc] / include / iso_lang.h
index 8b02b94aa3a0e497db1832b703b5551582bc202b..54a8de3369b7a2867c6f0143ea377d8c01055644 100644 (file)
@@ -2,7 +2,7 @@
  * iso_lang.h: function to decode language code (in dvd or a52 for instance).
  *****************************************************************************
  * Copyright (C) 1998-2001 VideoLAN
- * $Id: iso_lang.h,v 1.5 2002/05/20 22:36:42 sam Exp $
+ * $Id$
  *
  * Author: Stéphane Borel <stef@via.ecp.fr>
  *         Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
@@ -11,7 +11,7 @@
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
@@ -22,7 +22,7 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
  *****************************************************************************/
 
-struct iso639_lang_s
+struct iso639_lang_t
 {
     char * psz_eng_name;        /* Description in English */
     char * psz_native_name;     /* Description in native language */
@@ -31,15 +31,14 @@ struct iso639_lang_s
     char * psz_iso639_2B;       /* ISO-639-2/B (3 characters) native code */
 };
 
-#ifndef __PLUGIN__
-const iso639_lang_t * GetLang_1( const char * psz_iso639_1 );
-const iso639_lang_t * GetLang_2T( const char * psz_iso639_2T );
-const iso639_lang_t * GetLang_2B( const char * psz_iso639_2B );
-const char * DecodeLanguage( u16 );
-#else
-#   define GetLang_1 p_symbols->GetLang_1
-#   define GetLang_2T p_symbols->GetLang_2T
-#   define GetLang_2B p_symbols->GetLang_2B
-#   define DecodeLanguage p_symbols->DecodeLanguage
+#if defined( __cplusplus )
+extern "C" {
+#endif
+VLC_EXPORT( const iso639_lang_t *, GetLang_1, ( const char * ) );
+VLC_EXPORT( const iso639_lang_t *, GetLang_2T, ( const char * ) );
+VLC_EXPORT( const iso639_lang_t *, GetLang_2B, ( const char * ) );
+VLC_EXPORT( const char *, DecodeLanguage, ( uint16_t ) );
+#if defined( __cplusplus )
+}
 #endif