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

libvlc: remove deprecated SD functions

parent 26d96c35
...@@ -154,32 +154,6 @@ LIBVLC_DEPRECATED int ...@@ -154,32 +154,6 @@ LIBVLC_DEPRECATED int
/** @}*/ /** @}*/
/**
* \ingroup libvlc libvlc_media_discoverer
* @{
*/
/**
* \deprecated Use libvlc_media_discoverer_new() and libvlc_media_discoverer_start().
*/
LIBVLC_DEPRECATED LIBVLC_API libvlc_media_discoverer_t *
libvlc_media_discoverer_new_from_name( libvlc_instance_t * p_inst,
const char * psz_name );
/**
* Get media service discover object its localized name.
*
* \deprecated Useless, use libvlc_media_discoverer_list_get() to get the
* longname of the service discovery.
*
* \param p_mdis media discover object
* \return localized name or NULL if the media_discoverer is not started
*/
LIBVLC_DEPRECATED LIBVLC_API char *
libvlc_media_discoverer_localized_name( libvlc_media_discoverer_t * p_mdis );
/** @}*/
/** /**
* \ingroup libvlc libvlc_core * \ingroup libvlc libvlc_core
* @{ * @{
......
...@@ -64,10 +64,8 @@ libvlc_log_unset ...@@ -64,10 +64,8 @@ libvlc_log_unset
libvlc_media_add_option libvlc_media_add_option
libvlc_media_add_option_flag libvlc_media_add_option_flag
libvlc_media_discoverer_is_running libvlc_media_discoverer_is_running
libvlc_media_discoverer_localized_name
libvlc_media_discoverer_media_list libvlc_media_discoverer_media_list
libvlc_media_discoverer_new libvlc_media_discoverer_new
libvlc_media_discoverer_new_from_name
libvlc_media_discoverer_release libvlc_media_discoverer_release
libvlc_media_discoverer_list_get libvlc_media_discoverer_list_get
libvlc_media_discoverer_list_release libvlc_media_discoverer_list_release
......
...@@ -208,29 +208,6 @@ libvlc_media_discoverer_stop( libvlc_media_discoverer_t * p_mdis ) ...@@ -208,29 +208,6 @@ libvlc_media_discoverer_stop( libvlc_media_discoverer_t * p_mdis )
p_mdis->p_sd = NULL; p_mdis->p_sd = NULL;
} }
/**************************************************************************
* new_from_name (Public)
*
* \deprecated Use libvlc_media_discoverer_new and libvlc_media_discoverer_start
**************************************************************************/
libvlc_media_discoverer_t *
libvlc_media_discoverer_new_from_name( libvlc_instance_t * p_inst,
const char * psz_name )
{
libvlc_media_discoverer_t *p_mdis = libvlc_media_discoverer_new( p_inst, psz_name );
if( !p_mdis )
return NULL;
if( libvlc_media_discoverer_start( p_mdis ) != 0)
{
libvlc_media_discoverer_release( p_mdis );
return NULL;
}
return p_mdis;
}
/************************************************************************** /**************************************************************************
* release (Public) * release (Public)
**************************************************************************/ **************************************************************************/
...@@ -257,17 +234,6 @@ libvlc_media_discoverer_release( libvlc_media_discoverer_t * p_mdis ) ...@@ -257,17 +234,6 @@ libvlc_media_discoverer_release( libvlc_media_discoverer_t * p_mdis )
free( p_mdis ); free( p_mdis );
} }
/**************************************************************************
* localized_name (Public)
**************************************************************************/
char *
libvlc_media_discoverer_localized_name( libvlc_media_discoverer_t * p_mdis )
{
if( p_mdis->p_sd == NULL || p_mdis->p_sd->description == NULL )
return NULL;
return strdup( p_mdis->p_sd->description );
}
/************************************************************************** /**************************************************************************
* media_list (Public) * media_list (Public)
**************************************************************************/ **************************************************************************/
......
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