Commit b5aee88c authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

libvlccore: Make sure all symbol listed in libvlccore.sym are exported.

parent c302959a
...@@ -800,11 +800,6 @@ VLC_EXPORT( void *, vlc_memset, ( void *, int, size_t ) ); ...@@ -800,11 +800,6 @@ VLC_EXPORT( void *, vlc_memset, ( void *, int, size_t ) );
/***************************************************************************** /*****************************************************************************
* I18n stuff * I18n stuff
*****************************************************************************/ *****************************************************************************/
#ifdef WIN32
VLC_EXPORT( char *, vlc_dgettext, ( const char *package, const char *msgid ) );
VLC_EXPORT( int, vlc_wclosedir, (void *) );
#endif
VLC_EXPORT( char *, vlc_gettext, ( const char *msgid ) ); VLC_EXPORT( char *, vlc_gettext, ( const char *msgid ) );
/***************************************************************************** /*****************************************************************************
......
...@@ -59,8 +59,6 @@ struct msghdr ...@@ -59,8 +59,6 @@ struct msghdr
int msg_flags; int msg_flags;
}; };
VLC_EXPORT( ssize_t, vlc_sendmsg, ( int, struct msghdr *, int ) );
VLC_EXPORT( ssize_t, vlc_recvmsg, ( int, struct msghdr *, int ) );
#define sendmsg vlc_sendmsg #define sendmsg vlc_sendmsg
#define recvmsg vlc_recvmsg #define recvmsg vlc_recvmsg
...@@ -81,6 +79,9 @@ VLC_EXPORT( ssize_t, vlc_recvmsg, ( int, struct msghdr *, int ) ); ...@@ -81,6 +79,9 @@ VLC_EXPORT( ssize_t, vlc_recvmsg, ( int, struct msghdr *, int ) );
# define net_errno errno # define net_errno errno
#endif #endif
VLC_EXPORT( ssize_t, vlc_sendmsg, ( int, struct msghdr *, int ) );
VLC_EXPORT( ssize_t, vlc_recvmsg, ( int, struct msghdr *, int ) );
# ifdef __cplusplus # ifdef __cplusplus
extern "C" { extern "C" {
# endif # endif
...@@ -154,19 +155,18 @@ VLC_EXPORT( ssize_t, net_Printf, ( vlc_object_t *p_this, int fd, const v_socket_ ...@@ -154,19 +155,18 @@ VLC_EXPORT( ssize_t, net_Printf, ( vlc_object_t *p_this, int fd, const v_socket_
VLC_EXPORT( ssize_t, __net_vaPrintf, ( vlc_object_t *p_this, int fd, const v_socket_t *, const char *psz_fmt, va_list args ) ); VLC_EXPORT( ssize_t, __net_vaPrintf, ( vlc_object_t *p_this, int fd, const v_socket_t *, const char *psz_fmt, va_list args ) );
/* Don't go to an extra call layer if we have the symbol */
#ifndef HAVE_INET_PTON #ifndef HAVE_INET_PTON
/* only in core, so no need for C++ extern "C" */ #define inet_pton vlc_inet_pton
VLC_EXPORT (int, inet_pton, (int af, const char *src, void *dst) );
#endif #endif
#ifndef HAVE_INET_NTOP #ifndef HAVE_INET_NTOP
#ifdef WIN32 #define inet_ntop vlc_inet_ntop
/* only in core, so no need for C++ extern "C" */
VLC_EXPORT (const char *, inet_ntop, (int af, const void *src,
char *dst, socklen_t cnt) );
#endif
#endif #endif
VLC_EXPORT (int, vlc_inet_pton, (int af, const char *src, void *dst) );
VLC_EXPORT (const char *, vlc_inet_ntop, (int af, const void *src,
char *dst, socklen_t cnt) );
#ifndef HAVE_POLL #ifndef HAVE_POLL
enum enum
{ {
......
...@@ -280,12 +280,15 @@ void vlc_rewinddir(void *); ...@@ -280,12 +280,15 @@ void vlc_rewinddir(void *);
#if defined (WIN32) #if defined (WIN32)
# include <dirent.h> # include <dirent.h>
void *vlc_wopendir (const wchar_t *); void *vlc_wopendir (const wchar_t *);
void *vlc_wclosedir (void *);
struct _wdirent *vlc_wreaddir (void *); struct _wdirent *vlc_wreaddir (void *);
void vlc_rewinddir (void *); void vlc_rewinddir (void *);
# define _wopendir vlc_wopendir # define _wopendir vlc_wopendir
# define _wreaddir vlc_wreaddir # define _wreaddir vlc_wreaddir
# define _wclosedir vlc_wclosedir # define _wclosedir vlc_wclosedir
# define rewinddir vlc_rewinddir # define rewinddir vlc_rewinddir
char *vlc_dgettext ( const char *package, const char *msgid );
#endif #endif
#endif #endif
...@@ -74,6 +74,7 @@ date_Increment ...@@ -74,6 +74,7 @@ date_Increment
date_Init date_Init
date_Move date_Move
date_Set date_Set
DecodeLanguage
decoder_GetDisplayDate decoder_GetDisplayDate
decoder_GetInputAttachment decoder_GetInputAttachment
decoder_GetInputAttachments decoder_GetInputAttachments
...@@ -96,6 +97,9 @@ filename_sanitize ...@@ -96,6 +97,9 @@ filename_sanitize
FromLocale FromLocale
FromLocaleDup FromLocaleDup
GetFallbackEncoding GetFallbackEncoding
GetLang_1
GetLang_2B
GetLang_2T
httpd_ClientIP httpd_ClientIP
httpd_ClientModeBidir httpd_ClientModeBidir
httpd_ClientModeStream httpd_ClientModeStream
...@@ -123,8 +127,6 @@ httpd_UrlNew ...@@ -123,8 +127,6 @@ httpd_UrlNew
httpd_UrlNewUnique httpd_UrlNewUnique
__image_HandlerCreate __image_HandlerCreate
image_HandlerDelete image_HandlerDelete
inet_ntop
inet_pton
InitMD5 InitMD5
input_AddSubtitles input_AddSubtitles
input_Control input_Control
...@@ -389,7 +391,6 @@ __vlc_cond_init ...@@ -389,7 +391,6 @@ __vlc_cond_init
vlc_config_create vlc_config_create
vlc_config_set vlc_config_set
vlc_CPU vlc_CPU
vlc_dgettext
vlc_error vlc_error
__vlc_event_attach __vlc_event_attach
vlc_event_detach vlc_event_detach
...@@ -407,6 +408,8 @@ vlc_gettext ...@@ -407,6 +408,8 @@ vlc_gettext
vlc_iconv vlc_iconv
vlc_iconv_close vlc_iconv_close
vlc_iconv_open vlc_iconv_open
vlc_inet_ntop
vlc_inet_pton
__vlc_list_children __vlc_list_children
__vlc_list_find __vlc_list_find
vlc_list_release vlc_list_release
...@@ -452,7 +455,6 @@ vlc_threadvar_create ...@@ -452,7 +455,6 @@ vlc_threadvar_create
vlc_threadvar_delete vlc_threadvar_delete
vlc_ureduce vlc_ureduce
VLC_Version VLC_Version
vlc_wclosedir
vlc_wraptext vlc_wraptext
vlm_Control vlm_Control
vlm_Delete vlm_Delete
......
...@@ -552,9 +552,9 @@ ssize_t __net_vaPrintf( vlc_object_t *p_this, int fd, const v_socket_t *p_vs, ...@@ -552,9 +552,9 @@ ssize_t __net_vaPrintf( vlc_object_t *p_this, int fd, const v_socket_t *p_vs,
/***************************************************************************** /*****************************************************************************
* inet_pton replacement for obsolete and/or crap operating systems * inet_pton replacement for obsolete and/or crap operating systems
*****************************************************************************/ *****************************************************************************/
#ifndef HAVE_INET_PTON int vlc_inet_pton(int af, const char *src, void *dst)
int inet_pton(int af, const char *src, void *dst)
{ {
#ifndef HAVE_INET_PTON
# ifdef WIN32 # ifdef WIN32
/* As we already know, Microsoft always go its own way, so even if they do /* As we already know, Microsoft always go its own way, so even if they do
* provide IPv6, they don't provide the API. */ * provide IPv6, they don't provide the API. */
...@@ -612,14 +612,16 @@ int inet_pton(int af, const char *src, void *dst) ...@@ -612,14 +612,16 @@ int inet_pton(int af, const char *src, void *dst)
memcpy( dst, &ipv4, 4 ); memcpy( dst, &ipv4, 4 );
# endif /* WIN32 */ # endif /* WIN32 */
return 0; return 0;
} #else /* HAVE_INET_PTON */
return inet_pton( af, src, dst );
#endif /* HAVE_INET_PTON */ #endif /* HAVE_INET_PTON */
}
#ifndef HAVE_INET_NTOP const char *vlc_inet_ntop(int af, const void * src,
#ifdef WIN32
const char *inet_ntop(int af, const void * src,
char * dst, socklen_t cnt) char * dst, socklen_t cnt)
{ {
#ifndef HAVE_INET_NTOP
#ifdef WIN32
switch( af ) switch( af )
{ {
#ifdef AF_INET6 #ifdef AF_INET6
...@@ -662,6 +664,25 @@ const char *inet_ntop(int af, const void * src, ...@@ -662,6 +664,25 @@ const char *inet_ntop(int af, const void * src,
} }
errno = EAFNOSUPPORT; errno = EAFNOSUPPORT;
return NULL; return NULL;
#else /* WIN32 */
return NULL;
#endif /* WIN32 */
#else /* HAVE_INET_NTOP */
return inet_ntop( af, src, dst, cnt );
#endif /* HAVE_INET_NTOP */
} }
#endif
#endif #ifdef WIN32
/* vlc_sendmsg, vlc_recvmsg Defined in winsock.c */
#else /* !WIN32 */
ssize_t vlc_sendmsg (int s, struct msghdr *hdr, int flags)
{
return sendmsg (s, hdr, flags);
}
ssize_t vlc_recvmsg (int s, struct msghdr *hdr, int flags)
{
return recvmsg (s, hdr, flags);
}
#endif /* WIN32 */
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