From 3c4fac1eecf58f2d15ebd728ac1f01e0799cb204 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Thu, 21 Jan 2010 18:53:02 +0100 Subject: [PATCH] libvlc: add some missing 'extern "C"' --- include/vlc/libvlc_media.h | 8 ++++++++ include/vlc/libvlc_media_discoverer.h | 8 ++++++++ include/vlc/libvlc_media_library.h | 8 ++++++++ include/vlc/libvlc_media_player.h | 8 ++++++++ 4 files changed, 32 insertions(+) diff --git a/include/vlc/libvlc_media.h b/include/vlc/libvlc_media.h index d300722256..637d115bb0 100644 --- a/include/vlc/libvlc_media.h +++ b/include/vlc/libvlc_media.h @@ -31,6 +31,10 @@ #ifndef VLC_LIBVLC_MEDIA_H #define VLC_LIBVLC_MEDIA_H 1 +# ifdef __cplusplus +extern "C" { +# endif + /***************************************************************************** * media *****************************************************************************/ @@ -361,4 +365,8 @@ VLC_PUBLIC_API void * /** @}*/ +# ifdef __cplusplus +} +# endif + #endif /* VLC_LIBVLC_MEDIA_H */ diff --git a/include/vlc/libvlc_media_discoverer.h b/include/vlc/libvlc_media_discoverer.h index dabf51a3bb..38392dd870 100644 --- a/include/vlc/libvlc_media_discoverer.h +++ b/include/vlc/libvlc_media_discoverer.h @@ -31,6 +31,10 @@ #ifndef VLC_LIBVLC_MEDIA_DISCOVERER_H #define VLC_LIBVLC_MEDIA_DISCOVERER_H 1 +# ifdef __cplusplus +extern "C" { +# endif + /***************************************************************************** * Services/Media Discovery *****************************************************************************/ @@ -99,4 +103,8 @@ VLC_PUBLIC_API int /**@} */ +# ifdef __cplusplus +} +# endif + #endif /* */ diff --git a/include/vlc/libvlc_media_library.h b/include/vlc/libvlc_media_library.h index c7a5772eb8..5325d5d58a 100644 --- a/include/vlc/libvlc_media_library.h +++ b/include/vlc/libvlc_media_library.h @@ -31,6 +31,10 @@ #ifndef VLC_LIBVLC_MEDIA_LIBRARY_H #define VLC_LIBVLC_MEDIA_LIBRARY_H 1 +# ifdef __cplusplus +extern "C" { +# endif + /***************************************************************************** * Media Library *****************************************************************************/ @@ -106,4 +110,8 @@ VLC_PUBLIC_API libvlc_media_list_t * /** @} */ +# ifdef __cplusplus +} +# endif + #endif /* VLC_LIBVLC_MEDIA_LIBRARY_H */ diff --git a/include/vlc/libvlc_media_player.h b/include/vlc/libvlc_media_player.h index c429993e78..51866f5119 100644 --- a/include/vlc/libvlc_media_player.h +++ b/include/vlc/libvlc_media_player.h @@ -31,6 +31,10 @@ #ifndef VLC_LIBVLC_MEDIA_PLAYER_H #define VLC_LIBVLC_MEDIA_PLAYER_H 1 +# ifdef __cplusplus +extern "C" { +# endif + /***************************************************************************** * Media Player *****************************************************************************/ @@ -1160,4 +1164,8 @@ VLC_PUBLIC_API void libvlc_audio_set_channel( libvlc_instance_t *, /** @} media_player */ +# ifdef __cplusplus +} +# endif + #endif /* VLC_LIBVLC_MEDIA_PLAYER_H */ -- 2.39.2