]> git.sesse.net Git - vlc/commitdiff
Kill VLC_OBJECT_INTF
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 23 May 2009 18:17:47 +0000 (21:17 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 23 May 2009 18:17:47 +0000 (21:17 +0300)
src/interface/interface.c
src/libvlc.h
src/misc/objects.c

index 46192d83b024f6df25d1df530c5b2c9085f78ccb..00871e4a98612afad9fd8f0c2882b5ad4b2ad5fc 100644 (file)
@@ -73,9 +73,11 @@ int intf_Create( vlc_object_t *p_this, const char *psz_module )
 {
     libvlc_int_t *p_libvlc = p_this->p_libvlc;
     intf_thread_t * p_intf;
+    static const char psz_type[] = "interface";
 
     /* Allocate structure */
-    p_intf = vlc_object_create( p_libvlc, VLC_OBJECT_INTF );
+    p_intf = vlc_custom_create( p_libvlc, sizeof( *p_intf ),
+                                VLC_OBJECT_GENERIC, psz_type );
     if( !p_intf )
         return VLC_ENOMEM;
 
index 09a09522330807db6727eea1bc059d59090a20c9..97e4adefa9bbbd098411fb15ba4e9db65d800c25 100644 (file)
@@ -53,7 +53,6 @@ void system_End       ( libvlc_int_t * );
 #define vlc_object_signal_unlocked( obj )
 
 vlc_list_t *vlc_list_find( vlc_object_t *, int, int );
-#define VLC_OBJECT_INTF        (-4)
 
 /*
  * Threads subsystem
index b0e6e625d5c18f2bf085738dee953efd8f909302..eea00ba1176f60d1277cb02f464c39479d4f6404 100644 (file)
@@ -205,10 +205,6 @@ void * __vlc_object_create( vlc_object_t *p_this, int i_type )
 
     switch( i_type )
     {
-        case VLC_OBJECT_INTF:
-            i_size = sizeof(intf_thread_t);
-            psz_type = "interface";
-            break;
         case VLC_OBJECT_DECODER:
             i_size = sizeof(decoder_t);
             psz_type = "decoder";