[vlc-devel] commit: libvlc: add some missing 'extern "C"' ( Rémi Duraffort )

git version control git at videolan.org
Thu Jan 21 19:01:28 CET 2010


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Jan 21 18:53:02 2010 +0100| [3c4fac1eecf58f2d15ebd728ac1f01e0799cb204] | committer: Rémi Duraffort 

libvlc: add some missing 'extern "C"'

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3c4fac1eecf58f2d15ebd728ac1f01e0799cb204
---

 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(+), 0 deletions(-)

diff --git a/include/vlc/libvlc_media.h b/include/vlc/libvlc_media.h
index d300722..637d115 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 dabf51a..38392dd 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 /* <vlc/libvlc.h> */
diff --git a/include/vlc/libvlc_media_library.h b/include/vlc/libvlc_media_library.h
index c7a5772..5325d5d 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 c429993..51866f5 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 */




More information about the vlc-devel mailing list