[vlc-devel] commit: Remove libvlc_get_vlc_instance hack from libvlc ( Rafaël Carré )
git version control
git at videolan.org
Fri Jan 29 15:01:49 CET 2010
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Fri Jan 29 14:56:20 2010 +0100| [b554afa92d9bfa07c957a25ff065219bf2de1bcf] | committer: Rafaël Carré
Remove libvlc_get_vlc_instance hack from libvlc
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b554afa92d9bfa07c957a25ff065219bf2de1bcf
---
include/vlc/libvlc.h | 14 --------------
src/control/core.c | 7 -------
src/libvlc.sym | 1 -
3 files changed, 0 insertions(+), 22 deletions(-)
diff --git a/include/vlc/libvlc.h b/include/vlc/libvlc.h
index 6de7328..38f4dc2 100644
--- a/include/vlc/libvlc.h
+++ b/include/vlc/libvlc.h
@@ -235,20 +235,6 @@ VLC_PUBLIC_API const char * libvlc_get_changeset(void);
struct vlc_object_t;
/**
- * Get the internal main VLC object.
- * Use of this function is usually a hack and should be avoided.
- * @note
- * You will need to link with libvlccore to make any use of the underlying VLC
- * object. The libvlccore programming and binary interfaces are not stable.
- * @warning
- * Remember to release the object with vlc_object_release().
- *
- * \param p_instance the libvlc instance
- * @return a VLC object of type "libvlc"
- */
-VLC_PUBLIC_API struct vlc_object_t *libvlc_get_vlc_instance(libvlc_instance_t *p_instance);
-
-/**
* Frees an heap allocation (char *) returned by a LibVLC API.
* If you know you're using the same underlying C run-time as the LibVLC
* implementation, then you can call ANSI C free() directly instead.
diff --git a/src/control/core.c b/src/control/core.c
index 341f4ef..fd5a444 100644
--- a/src/control/core.c
+++ b/src/control/core.c
@@ -194,13 +194,6 @@ const char * libvlc_get_changeset(void)
return psz_vlc_changeset;
}
-/* export internal libvlc_instance for ugly hacks with libvlccore */
-vlc_object_t *libvlc_get_vlc_instance( libvlc_instance_t* p_instance )
-{
- vlc_object_hold( p_instance->p_libvlc_int ) ;
- return (vlc_object_t*) p_instance->p_libvlc_int ;
-}
-
void libvlc_free( void *ptr )
{
free( ptr );
diff --git a/src/libvlc.sym b/src/libvlc.sym
index b4d2555..23d7667 100644
--- a/src/libvlc.sym
+++ b/src/libvlc.sym
@@ -41,7 +41,6 @@ libvlc_get_fullscreen
libvlc_get_input_thread
libvlc_get_log_verbosity
libvlc_get_version
-libvlc_get_vlc_instance
libvlc_log_clear
libvlc_log_close
libvlc_log_count
More information about the vlc-devel
mailing list