]> git.sesse.net Git - vlc/commitdiff
* include/vlc_common.h: VLC_EXPORT macros can't span on several lines.
authorChristophe Massiot <massiot@videolan.org>
Sat, 6 Aug 2005 11:04:31 +0000 (11:04 +0000)
committerChristophe Massiot <massiot@videolan.org>
Sat, 6 Aug 2005 11:04:31 +0000 (11:04 +0000)
include/vlc_common.h
include/vlc_symbols.h

index 43575a17e10eedcafa2ac9b14d5f0f9265060aef..35cf3dd5c1ff74db7ed04bb806cbadc0e2079b6a 100644 (file)
@@ -841,12 +841,8 @@ static inline void _SetQWBE( uint8_t *p, uint64_t i_qw )
 #ifndef HAVE_SCANDIR
 #   define scandir vlc_scandir
 #   define alphasort vlc_alphasort
-    VLC_EXPORT( int, vlc_scandir, ( const char *name, struct dirent ***namelist,
-                                    int (*filter) ( const struct dirent * ),
-                                    int (*compar) ( const struct dirent **,
-                                                    const struct dirent ** ) ) );
-    VLC_EXPORT( int, vlc_alphasort, ( const struct dirent **a,
-                                      const struct dirent **b ) );
+    VLC_EXPORT( int, vlc_scandir, ( const char *name, struct dirent ***namelist, int (*filter) ( const struct dirent * ), int (*compar) ( const struct dirent **, const struct dirent ** ) ) );
+    VLC_EXPORT( int, vlc_alphasort, ( const struct dirent **a, const struct dirent **b ) );
 #elif !defined(__PLUGIN__)
 #   define vlc_scandir NULL
 #   define vlc_alphasort NULL
index ea42ef5d2b8cf781c0473c751dffc282f5b22045..6fd43eed695c58a09ce033b64a92cdebfdfcc523 100644 (file)
@@ -389,6 +389,8 @@ struct module_symbols_t
     char * (*EnsureUTF8_inner) (char *);
     void *vlc_fix_readdir_charset_deprecated;
     char * (*__vlc_fix_readdir_charset_inner) (vlc_object_t *, const char *);
+    int (*vlc_scandir_inner) (const char *name, struct dirent ***namelist, int (*filter) ( const struct dirent * ), int (*compar) ( const struct dirent **, const struct dirent ** ));
+    int (*vlc_alphasort_inner) (const struct dirent **a, const struct dirent **b);
 };
 # if defined (__PLUGIN__)
 #  define aout_FiltersCreatePipeline (p_symbols)->aout_FiltersCreatePipeline_inner
@@ -762,6 +764,8 @@ struct module_symbols_t
 #  define ToLocale (p_symbols)->ToLocale_inner
 #  define EnsureUTF8 (p_symbols)->EnsureUTF8_inner
 #  define __vlc_fix_readdir_charset (p_symbols)->__vlc_fix_readdir_charset_inner
+#  define vlc_scandir (p_symbols)->vlc_scandir_inner
+#  define vlc_alphasort (p_symbols)->vlc_alphasort_inner
 # elif defined (HAVE_DYNAMIC_PLUGINS) && !defined (__BUILTIN__)
 /******************************************************************
  * STORE_SYMBOLS: store VLC APIs into p_symbols for plugin access.
@@ -1138,6 +1142,8 @@ struct module_symbols_t
     ((p_symbols)->ToLocale_inner) = ToLocale; \
     ((p_symbols)->EnsureUTF8_inner) = EnsureUTF8; \
     ((p_symbols)->__vlc_fix_readdir_charset_inner) = __vlc_fix_readdir_charset; \
+    ((p_symbols)->vlc_scandir_inner) = vlc_scandir; \
+    ((p_symbols)->vlc_alphasort_inner) = vlc_alphasort; \
     (p_symbols)->net_ConvertIPv4_deprecated = NULL; \
     (p_symbols)->vlc_fix_readdir_charset_deprecated = NULL; \