/*****************************************************************************
* 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 ) );
/*****************************************************************************
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 recvmsg vlc_recvmsg
# define net_errno errno
#endif
+VLC_EXPORT( ssize_t, vlc_sendmsg, ( int, struct msghdr *, int ) );
+VLC_EXPORT( ssize_t, vlc_recvmsg, ( int, struct msghdr *, int ) );
+
# ifdef __cplusplus
extern "C" {
# endif
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
-/* only in core, so no need for C++ extern "C" */
- VLC_EXPORT (int, inet_pton, (int af, const char *src, void *dst) );
+#define inet_pton vlc_inet_pton
#endif
-
#ifndef HAVE_INET_NTOP
-#ifdef WIN32
-/* 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
+#define inet_ntop vlc_inet_ntop
#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
enum
{
#if defined (WIN32)
# include <dirent.h>
void *vlc_wopendir (const wchar_t *);
+void *vlc_wclosedir (void *);
struct _wdirent *vlc_wreaddir (void *);
void vlc_rewinddir (void *);
# define _wopendir vlc_wopendir
# define _wreaddir vlc_wreaddir
# define _wclosedir vlc_wclosedir
# define rewinddir vlc_rewinddir
+
+char *vlc_dgettext ( const char *package, const char *msgid );
#endif
#endif
date_Init
date_Move
date_Set
+DecodeLanguage
decoder_GetDisplayDate
decoder_GetInputAttachment
decoder_GetInputAttachments
FromLocale
FromLocaleDup
GetFallbackEncoding
+GetLang_1
+GetLang_2B
+GetLang_2T
httpd_ClientIP
httpd_ClientModeBidir
httpd_ClientModeStream
httpd_UrlNewUnique
__image_HandlerCreate
image_HandlerDelete
-inet_ntop
-inet_pton
InitMD5
input_AddSubtitles
input_Control
vlc_config_create
vlc_config_set
vlc_CPU
-vlc_dgettext
vlc_error
__vlc_event_attach
vlc_event_detach
vlc_iconv
vlc_iconv_close
vlc_iconv_open
+vlc_inet_ntop
+vlc_inet_pton
__vlc_list_children
__vlc_list_find
vlc_list_release
vlc_threadvar_delete
vlc_ureduce
VLC_Version
-vlc_wclosedir
vlc_wraptext
vlm_Control
vlm_Delete
/*****************************************************************************
* inet_pton replacement for obsolete and/or crap operating systems
*****************************************************************************/
-#ifndef HAVE_INET_PTON
-int inet_pton(int af, const char *src, void *dst)
+int vlc_inet_pton(int af, const char *src, void *dst)
{
+#ifndef HAVE_INET_PTON
# ifdef WIN32
/* As we already know, Microsoft always go its own way, so even if they do
* provide IPv6, they don't provide the API. */
memcpy( dst, &ipv4, 4 );
# endif /* WIN32 */
return 0;
-}
+#else /* HAVE_INET_PTON */
+ return inet_pton( af, src, dst );
#endif /* HAVE_INET_PTON */
+}
-#ifndef HAVE_INET_NTOP
-#ifdef WIN32
-const char *inet_ntop(int af, const void * src,
+const char *vlc_inet_ntop(int af, const void * src,
char * dst, socklen_t cnt)
{
+#ifndef HAVE_INET_NTOP
+#ifdef WIN32
switch( af )
{
#ifdef AF_INET6
}
errno = EAFNOSUPPORT;
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 */
+