Commit bb5a8eb8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove SD object type

parent 182f9a35
/***************************************************************************** /*****************************************************************************
* vlc_objects.h: vlc_object_t definition and manipulation methods * vlc_objects.h: vlc_object_t definition and manipulation methods
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2006 the VideoLAN team * Copyright (C) 2002-2008 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
#define VLC_OBJECT_SD (-26)
#define VLC_OBJECT_XML (-27) #define VLC_OBJECT_XML (-27)
#define VLC_OBJECT_OSDMENU (-28) #define VLC_OBJECT_OSDMENU (-28)
#define VLC_OBJECT_STATS (-29) #define VLC_OBJECT_STATS (-29)
......
...@@ -128,7 +128,6 @@ static int vlc_object_type_from_string( const char *psz_name ) ...@@ -128,7 +128,6 @@ static int vlc_object_type_from_string( const char *psz_name )
{ VLC_OBJECT_STREAM, "stream" }, { VLC_OBJECT_STREAM, "stream" },
{ VLC_OBJECT_OPENGL, "opengl" }, { VLC_OBJECT_OPENGL, "opengl" },
{ VLC_OBJECT_FILTER, "filter" }, { VLC_OBJECT_FILTER, "filter" },
{ VLC_OBJECT_SD, "sd" },
{ VLC_OBJECT_XML, "xml" }, { VLC_OBJECT_XML, "xml" },
{ VLC_OBJECT_OSDMENU, "osdmenu" }, { VLC_OBJECT_OSDMENU, "osdmenu" },
{ VLC_OBJECT_HTTPD_HOST, "httpd_host" }, { VLC_OBJECT_HTTPD_HOST, "httpd_host" },
......
/***************************************************************************** /*****************************************************************************
* objects.c: vlc_object_t handling * objects.c: vlc_object_t handling
***************************************************************************** *****************************************************************************
* Copyright (C) 2004-2007 the VideoLAN team * Copyright (C) 2004-2008 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
...@@ -266,10 +266,6 @@ void * __vlc_object_create( vlc_object_t *p_this, int i_type ) ...@@ -266,10 +266,6 @@ void * __vlc_object_create( vlc_object_t *p_this, int i_type )
i_size = sizeof(playlist_t); i_size = sizeof(playlist_t);
psz_type = "playlist"; psz_type = "playlist";
break; break;
case VLC_OBJECT_SD:
i_size = sizeof(services_discovery_t);
psz_type = "services discovery";
break;
case VLC_OBJECT_INPUT: case VLC_OBJECT_INPUT:
i_size = sizeof(input_thread_t); i_size = sizeof(input_thread_t);
psz_type = "input"; psz_type = "input";
......
...@@ -55,7 +55,9 @@ char ** __services_discovery_GetServicesNames( vlc_object_t * p_super, ...@@ -55,7 +55,9 @@ char ** __services_discovery_GetServicesNames( vlc_object_t * p_super,
services_discovery_t * services_discovery_t *
services_discovery_Create ( vlc_object_t * p_super, const char * psz_module_name ) services_discovery_Create ( vlc_object_t * p_super, const char * psz_module_name )
{ {
services_discovery_t *p_sd = vlc_object_create( p_super, VLC_OBJECT_SD ); services_discovery_t *p_sd;
p_sd = vlc_custom_create( p_super, sizeof( *p_sd ), VLC_OBJECT_GENERIC,
"services discovery" );
if( !p_sd ) if( !p_sd )
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment