# include "config.h"
#endif
-#include <vlc/vlc.h>
+#include <vlc_common.h>
+#include <vlc_plugin.h>
#include <vlc_services_discovery.h>
/*****************************************************************************
#define endItem( ) { NULL, NULL, { NULL }, NULL }
#define item( title, url ) { url, title, { NULL }, NULL }
#define itemWithOption( title, url, option ) { url, title, { option, NULL }, NULL }
-#define itemWithChildren( title, children ) { "vlc:skip", title, { NULL }, children }
+#define itemWithChildren( title, children ) { "vlc://nop", title, { NULL }, children }
/* WARN: We support only two levels */
add_obsolete_integer( "shoutcast-limit" );
set_shortname( "Shoutcast");
- set_description( _("Shoutcast radio listings") );
+ set_description( N_("Shoutcast radio listings") );
set_capability( "services_discovery", 0 );
set_callbacks( OpenShoutRadio, Close );
add_shortcut( "shoutcast" );
add_submodule();
set_shortname( "ShoutcastTV" );
- set_description( _("Shoutcast TV listings") );
+ set_description( N_("Shoutcast TV listings") );
set_capability( "services_discovery", 0 );
set_callbacks( OpenShoutTV, Close );
add_shortcut( "shoutcasttv" );
add_submodule();
set_shortname( "frenchtv");
- set_description( _("French TV") );
+ set_description( N_("French TV") );
set_capability( "services_discovery", 0 );
set_callbacks( OpenFrenchTV, Close );
add_shortcut( "frenchtv" );
add_submodule();
set_shortname( "Freebox");
- set_description( _("Freebox TV listing (French ISP free.fr services)") );
+ set_description( N_("Freebox TV listing (French ISP free.fr services)") );
set_capability( "services_discovery", 0 );
set_callbacks( OpenFreebox, Close );
add_shortcut( "freebox" );
/* Read every subitems, and add them in ItemAdded */
vlc_event_attach( &p_input->event_manager, vlc_InputItemSubItemAdded,
ItemAdded, &category );
- input_Read( p_sd, p_input, VLC_TRUE );
+ input_Read( p_sd, p_input, true );
vlc_event_detach( &p_input->event_manager, vlc_InputItemSubItemAdded,
ItemAdded, &category );