]> git.sesse.net Git - vlc/blobdiff - include/charset.h
Try to find seamonkey-config too.
[vlc] / include / charset.h
index f8cdd73cefffa058c493e1f3e7aed29ea7968cd8..408733ecd06b65bf2c5b6a3ee3d69ab373ba8bc0 100644 (file)
@@ -24,6 +24,8 @@
 #ifndef __VLC_CHARSET_H
 #define __VLC_CHARSET_H 1
 
+#include <stdarg.h>
+
 # ifdef __cplusplus
 extern "C" {
 # endif
@@ -37,19 +39,38 @@ VLC_EXPORT( char *, ToLocale, ( const char * ) );
 VLC_EXPORT( FILE *, utf8_fopen, ( const char *filename, const char *mode ) );
 VLC_EXPORT( void *, utf8_opendir, ( const char *dirname ) );
 VLC_EXPORT( const char *, utf8_readdir, ( void *dir ) );
+VLC_EXPORT( int, utf8_scandir, ( const char *dirname, char ***namelist, int (*select)( const char * ), int (*compar)( const char **, const char ** ) ) );
 VLC_EXPORT( int, utf8_stat, ( const char *filename, void *buf ) );
 VLC_EXPORT( int, utf8_lstat, ( const char *filename, void *buf ) );
 VLC_EXPORT( int, utf8_mkdir, ( const char *filename ) );
 
-#ifndef __PLUGIN__
-int utf8_fprintf( FILE *, const char *, ... );
-#endif
+VLC_EXPORT( int, utf8_vfprintf, ( FILE *stream, const char *fmt, va_list ap ) );
+VLC_EXPORT( int, utf8_fprintf, ( FILE *, const char *, ... ) );
 
 VLC_EXPORT( char *, EnsureUTF8, ( char * ) );
-VLC_EXPORT( char *, FromUTF32, ( const wchar_t * ) );
+VLC_EXPORT( const char *, IsUTF8, ( const char * ) );
+
+VLC_EXPORT( char *, FromUTF32, ( const uint32_t * ) );
+VLC_EXPORT( char *, FromUTF16, ( const uint16_t * ) );
+
+static inline char *FromWide( const wchar_t *in )
+{
+       return (sizeof( wchar_t ) == 2)
+               ? FromUTF16( (const uint16_t *)in )
+               : FromUTF32( (const uint32_t *)in );
+}
+
+
 VLC_EXPORT( char *, __vlc_fix_readdir_charset, ( vlc_object_t *, const char * ) );
 #define vlc_fix_readdir_charset(a,b) __vlc_fix_readdir_charset(VLC_OBJECT(a),b)
 
+VLC_EXPORT( const char *, GetFallbackEncoding, ( void ) );
+
+extern double i18n_strtod( const char *, char ** );
+extern double i18n_atof( const char * );
+VLC_EXPORT( double, us_strtod, ( const char *, char ** ) );
+VLC_EXPORT( double, us_atof, ( const char * ) );
+
 # ifdef __cplusplus
 }
 # endif