]> git.sesse.net Git - vlc/blobdiff - src/control/core.c
LibVLC: use VLC variables inheritance for drawable and UI events
[vlc] / src / control / core.c
index 25f190e790d868ec2b258bc25fbdfc0fcaa8bffb..fd5a44430c3bd7bea12763357ee1d18e12e43b32 100644 (file)
@@ -65,23 +65,8 @@ static void libvlc_exception_not_handled( const char *psz )
     abort();
 }
 
-void libvlc_exception_raise( libvlc_exception_t *p_exception,
-                             const char *psz_format, ... )
+void libvlc_exception_raise( libvlc_exception_t *p_exception )
 {
-    va_list args;
-
-    /* Make sure that there is no unnoticed previous exception */
-    if( p_exception && p_exception->b_raised )
-    {
-        libvlc_exception_not_handled( libvlc_errmsg() );
-        libvlc_exception_clear( p_exception );
-    }
-
-    /* Unformat-ize the message */
-    va_start( args, psz_format );
-    libvlc_vprinterr( psz_format, args );
-    va_end( args );
-
     /* Does caller care about exceptions ? */
     if( p_exception == NULL ) {
         /* Print something, so that lazy third-parties can easily
@@ -182,15 +167,9 @@ void libvlc_release( libvlc_instance_t *p_instance )
     }
 }
 
-int libvlc_add_intf( libvlc_instance_t *p_i, const char *name,
-                      libvlc_exception_t *p_e )
+int libvlc_add_intf( libvlc_instance_t *p_i, const char *name )
 {
-    if( libvlc_InternalAddIntf( p_i->p_libvlc_int, name ) )
-    {
-        libvlc_exception_raise( p_e, "Interface initialization failed" );
-        return -1;
-    }
-    return 0;
+    return libvlc_InternalAddIntf( p_i->p_libvlc_int, name ) ? -1 : 0;
 }
 
 void libvlc_wait( libvlc_instance_t *p_i )
@@ -215,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 );