Changeset b5aee88c089035938b603929d29b5d113553f4fa

Show
Ignore:
Timestamp:
05/27/08 18:53:25 (3 months ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1211907205 +0200
git-parent:

[c302959a487d7aa1a4c5cb38d644e1dce6ccc9cf]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1211905994 +0200
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/vlc_common.h

    rc6c6c0e rb5aee88  
    801801 * I18n stuff 
    802802 *****************************************************************************/ 
    803 #ifdef WIN32 
    804 VLC_EXPORT( char *, vlc_dgettext, ( const char *package, const char *msgid ) ); 
    805 VLC_EXPORT( int, vlc_wclosedir, (void *) ); 
    806 #endif 
    807  
    808803VLC_EXPORT( char *, vlc_gettext, ( const char *msgid ) ); 
    809804 
  • include/vlc_network.h

    r9d85c35 rb5aee88  
    6060}; 
    6161 
    62 VLC_EXPORT( ssize_t, vlc_sendmsg, ( int, struct msghdr *, int ) ); 
    63 VLC_EXPORT( ssize_t, vlc_recvmsg, ( int, struct msghdr *, int ) ); 
    6462#define sendmsg vlc_sendmsg 
    6563#define recvmsg vlc_recvmsg 
     
    8280#endif 
    8381 
     82VLC_EXPORT( ssize_t, vlc_sendmsg, ( int, struct msghdr *, int ) ); 
     83VLC_EXPORT( ssize_t, vlc_recvmsg, ( int, struct msghdr *, int ) ); 
     84 
    8485# ifdef __cplusplus 
    8586extern "C" { 
     
    155156 
    156157 
     158/* Don't go to an extra call layer if we have the symbol */ 
    157159#ifndef HAVE_INET_PTON 
    158 /* only in core, so no need for C++ extern "C" */ 
    159     VLC_EXPORT (int, inet_pton, (int af, const char *src, void *dst) ); 
    160 #endif 
    161  
     160#define inet_pton vlc_inet_pton 
     161#endif 
    162162#ifndef HAVE_INET_NTOP 
    163 #ifdef WIN32 
    164 /* only in core, so no need for C++ extern "C" */ 
    165     VLC_EXPORT (const char *, inet_ntop, (int af, const void *src, 
     163#define inet_ntop vlc_inet_ntop 
     164#endif 
     165 
     166VLC_EXPORT (int, vlc_inet_pton, (int af, const char *src, void *dst) ); 
     167VLC_EXPORT (const char *, vlc_inet_ntop, (int af, const void *src, 
    166168                                          char *dst, socklen_t cnt) ); 
    167 #endif 
    168 #endif 
    169169 
    170170#ifndef HAVE_POLL 
  • src/libvlc.h

    rbb29acd rb5aee88  
    281281#   include <dirent.h> 
    282282void *vlc_wopendir (const wchar_t *); 
     283void *vlc_wclosedir (void *); 
    283284struct _wdirent *vlc_wreaddir (void *); 
    284285void vlc_rewinddir (void *); 
     
    287288#   define _wclosedir vlc_wclosedir 
    288289#   define rewinddir vlc_rewinddir 
     290 
     291char *vlc_dgettext ( const char *package, const char *msgid ); 
    289292#endif 
    290293 
  • src/libvlccore.sym

    r3c810a5 rb5aee88  
    7575date_Move 
    7676date_Set 
     77DecodeLanguage 
    7778decoder_GetDisplayDate 
    7879decoder_GetInputAttachment 
     
    9798FromLocaleDup 
    9899GetFallbackEncoding 
     100GetLang_1 
     101GetLang_2B 
     102GetLang_2T 
    99103httpd_ClientIP 
    100104httpd_ClientModeBidir 
     
    124128__image_HandlerCreate 
    125129image_HandlerDelete 
    126 inet_ntop 
    127 inet_pton 
    128130InitMD5 
    129131input_AddSubtitles 
     
    390392vlc_config_set 
    391393vlc_CPU 
    392 vlc_dgettext 
    393394vlc_error 
    394395__vlc_event_attach 
     
    408409vlc_iconv_close 
    409410vlc_iconv_open 
     411vlc_inet_ntop 
     412vlc_inet_pton 
    410413__vlc_list_children 
    411414__vlc_list_find 
     
    453456vlc_ureduce 
    454457VLC_Version 
    455 vlc_wclosedir 
    456458vlc_wraptext 
    457459vlm_Control 
  • src/network/io.c

    r449fd28 rb5aee88  
    553553 * inet_pton replacement for obsolete and/or crap operating systems 
    554554 *****************************************************************************/ 
     555int vlc_inet_pton(int af, const char *src, void *dst) 
     556{ 
    555557#ifndef HAVE_INET_PTON 
    556 int inet_pton(int af, const char *src, void *dst) 
    557 { 
    558558# ifdef WIN32 
    559559    /* As we already know, Microsoft always go its own way, so even if they do 
     
    613613# endif /* WIN32 */ 
    614614    return 0; 
    615 
     615#else /* HAVE_INET_PTON */ 
     616    return inet_pton( af, src, dst ); 
    616617#endif /* HAVE_INET_PTON */ 
    617  
     618
     619 
     620const char *vlc_inet_ntop(int af, const void * src, 
     621                               char * dst, socklen_t cnt) 
     622
    618623#ifndef HAVE_INET_NTOP 
    619624#ifdef WIN32 
    620 const char *inet_ntop(int af, const void * src, 
    621                                char * dst, socklen_t cnt) 
    622 { 
    623625    switch( af ) 
    624626    { 
     
    663665    errno = EAFNOSUPPORT; 
    664666    return NULL; 
    665 
    666 #endif 
    667 #endif 
     667#else /* WIN32 */ 
     668    return NULL; 
     669#endif /* WIN32 */ 
     670#else /* HAVE_INET_NTOP */ 
     671    return inet_ntop( af, src, dst, cnt ); 
     672#endif /* HAVE_INET_NTOP */ 
     673
     674 
     675#ifdef WIN32 
     676    /* vlc_sendmsg, vlc_recvmsg Defined in winsock.c */ 
     677#else /* !WIN32 */ 
     678ssize_t vlc_sendmsg (int s, struct msghdr *hdr, int flags) 
     679
     680    return sendmsg (s, hdr, flags); 
     681
     682 
     683ssize_t vlc_recvmsg (int s, struct msghdr *hdr, int flags) 
     684
     685    return recvmsg (s, hdr, flags); 
     686
     687#endif /* WIN32 */ 
     688