# include "config.h"
#endif
-#include <vlc/vlc.h>
+#include <vlc_common.h>
+#include <vlc_plugin.h>
#include <vlc_playlist.h>
#include <vlc_arrays.h>
vlc_module_begin();
set_shortname( "Bonjour" );
- set_description( _("Bonjour services") );
+ set_description( N_("Bonjour services") );
set_category( CAT_PLAYLIST );
set_subcategory( SUBCAT_PLAYLIST_SD );
set_capability( "services_discovery", 0 );
{
services_discovery_t *p_sd = ( services_discovery_t* )userdata;
services_discovery_sys_t *p_sys = p_sd->p_sys;
+
+ VLC_UNUSED(interface); VLC_UNUSED(host_name);
+#ifdef HAVE_AVAHI_06
+ VLC_UNUSED(flags);
+#endif
#ifdef HAVE_AVAHI_06
if( event == AVAHI_RESOLVER_FAILURE )
#endif
void* userdata )
{
+ VLC_UNUSED(b);
+#ifdef HAVE_AVAHI_06
+ VLC_UNUSED(flags);
+#endif
services_discovery_t *p_sd = ( services_discovery_t* )userdata;
services_discovery_sys_t *p_sys = p_sd->p_sys;
if( event == AVAHI_BROWSER_NEW )
p_sd->p_sys = p_sys = (services_discovery_sys_t *)malloc(
sizeof( services_discovery_sys_t ) );
- if( p_sd->p_sys == NULL )
- {
- msg_Err( p_sd, "out of memory" );
- return VLC_EGENERIC;
- }
+
+ if( !p_sys )
+ return VLC_ENOMEM;
memset( p_sys, 0, sizeof(*p_sys) );
{
services_discovery_sys_t *p_sys = p_sd->p_sys;
- while( !p_sd->b_die )
+ while( vlc_object_alive (p_sd) )
{
if( avahi_simple_poll_iterate( p_sys->simple_poll, 100 ) != 0 )
{