Commit 299ef0c0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Oups

parent 73508ddd
...@@ -490,7 +490,7 @@ struct module_symbols_t ...@@ -490,7 +490,7 @@ struct module_symbols_t
int (*utf8_scandir_inner) (const char *dirname, char ***namelist, int (*select)( const char * ), int (*compar)( const char **, const char ** )); int (*utf8_scandir_inner) (const char *dirname, char ***namelist, int (*select)( const char * ), int (*compar)( const char **, const char ** ));
char * (*decode_URI_duplicate_inner) (const char *psz); char * (*decode_URI_duplicate_inner) (const char *psz);
void (*decode_URI_inner) (char *psz); void (*decode_URI_inner) (char *psz);
char * (*encode_URI_inner) (const char *psz); char * (*encode_URI_component_inner) (const char *psz);
}; };
# if defined (__PLUGIN__) # if defined (__PLUGIN__)
# define aout_FiltersCreatePipeline (p_symbols)->aout_FiltersCreatePipeline_inner # define aout_FiltersCreatePipeline (p_symbols)->aout_FiltersCreatePipeline_inner
...@@ -961,7 +961,7 @@ struct module_symbols_t ...@@ -961,7 +961,7 @@ struct module_symbols_t
# define utf8_scandir (p_symbols)->utf8_scandir_inner # define utf8_scandir (p_symbols)->utf8_scandir_inner
# define decode_URI_duplicate (p_symbols)->decode_URI_duplicate_inner # define decode_URI_duplicate (p_symbols)->decode_URI_duplicate_inner
# define decode_URI (p_symbols)->decode_URI_inner # define decode_URI (p_symbols)->decode_URI_inner
# define encode_URI (p_symbols)->encode_URI_inner # define encode_URI_component (p_symbols)->encode_URI_component_inner
# elif defined (HAVE_DYNAMIC_PLUGINS) && !defined (__BUILTIN__) # elif defined (HAVE_DYNAMIC_PLUGINS) && !defined (__BUILTIN__)
/****************************************************************** /******************************************************************
* STORE_SYMBOLS: store VLC APIs into p_symbols for plugin access. * STORE_SYMBOLS: store VLC APIs into p_symbols for plugin access.
...@@ -1435,7 +1435,7 @@ struct module_symbols_t ...@@ -1435,7 +1435,7 @@ struct module_symbols_t
((p_symbols)->utf8_scandir_inner) = utf8_scandir; \ ((p_symbols)->utf8_scandir_inner) = utf8_scandir; \
((p_symbols)->decode_URI_duplicate_inner) = decode_URI_duplicate; \ ((p_symbols)->decode_URI_duplicate_inner) = decode_URI_duplicate; \
((p_symbols)->decode_URI_inner) = decode_URI; \ ((p_symbols)->decode_URI_inner) = decode_URI; \
((p_symbols)->encode_URI_inner) = encode_URI; \ ((p_symbols)->encode_URI_component_inner) = encode_URI_component; \
(p_symbols)->net_ConvertIPv4_deprecated = NULL; \ (p_symbols)->net_ConvertIPv4_deprecated = NULL; \
(p_symbols)->__stats_CounterGet_deprecated = NULL; \ (p_symbols)->__stats_CounterGet_deprecated = NULL; \
(p_symbols)->__stats_TimerDumpAll_deprecated = NULL; \ (p_symbols)->__stats_TimerDumpAll_deprecated = NULL; \
......
...@@ -173,12 +173,12 @@ VLC_EXPORT( char *, unescape_URI_duplicate, ( const char *psz ) ); ...@@ -173,12 +173,12 @@ VLC_EXPORT( char *, unescape_URI_duplicate, ( const char *psz ) );
VLC_EXPORT( void, unescape_URI, ( char *psz ) ); VLC_EXPORT( void, unescape_URI, ( char *psz ) );
VLC_EXPORT( char *, decode_URI_duplicate, ( const char *psz ) ); VLC_EXPORT( char *, decode_URI_duplicate, ( const char *psz ) );
VLC_EXPORT( void, decode_URI, ( char *psz ) ); VLC_EXPORT( void, decode_URI, ( char *psz ) );
VLC_EXPORT( char *, encode_URI, ( const char *psz ) ); VLC_EXPORT( char *, encode_URI_component, ( const char *psz ) );
static inline char *vlc_UrlEncode( const char *psz_url ) static inline char *vlc_UrlEncode( const char *psz_url )
{ {
/* FIXME: do not encode / : ? and & _when_ not needed */ /* FIXME: do not encode / : ? and & _when_ not needed */
return encode_URI( psz_url ); return encode_URI_component( psz_url );
} }
/***************************************************************************** /*****************************************************************************
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment