]> git.sesse.net Git - vlc/commitdiff
Remove libvlc_get_vlc_instance hack from libvlc
authorRafaël Carré <rafael.carre@gmail.com>
Fri, 29 Jan 2010 13:56:20 +0000 (14:56 +0100)
committerRafaël Carré <rafael.carre@gmail.com>
Fri, 29 Jan 2010 13:56:39 +0000 (14:56 +0100)
include/vlc/libvlc.h
src/control/core.c
src/libvlc.sym

index 6de7328bf5ec039a8546f8289eec6bb729f82642..38f4dc2e8d30d63e688ee93d5edac8e9c8d187f0 100644 (file)
@@ -234,20 +234,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
index 341f4ef2e5ca35c0c67c9d587080ad170fd44b56..fd5a44430c3bd7bea12763357ee1d18e12e43b32 100644 (file)
@@ -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 );
index b4d25557403b58e9b03cca119c335ad7a5607be8..23d76671281c6c88535ba680cad9a4a36c36216a 100644 (file)
@@ -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