#define PORT_TEXT N_("UDP port")
#define PORT_LONGTEXT N_("Growl UDP port on the Growl server.")
-vlc_module_begin();
- set_category( CAT_INTERFACE );
- set_subcategory( SUBCAT_INTERFACE_CONTROL );
- set_shortname( "Growl-UDP" );
- set_description( N_("Growl UDP Notification Plugin") );
+vlc_module_begin ()
+ set_category( CAT_INTERFACE )
+ set_subcategory( SUBCAT_INTERFACE_CONTROL )
+ set_shortname( "Growl-UDP" )
+ set_description( N_("Growl UDP Notification Plugin") )
add_string( "growl-server", SERVER_DEFAULT, NULL,
- SERVER_TEXT, SERVER_LONGTEXT, false );
+ SERVER_TEXT, SERVER_LONGTEXT, false )
add_password( "growl-password", PASS_DEFAULT, NULL,
- PASS_TEXT, PASS_LONGTEXT, false );
+ PASS_TEXT, PASS_LONGTEXT, false )
add_integer( "growl-port", 9887, NULL,
- PORT_TEXT, PORT_LONGTEXT, true );
+ PORT_TEXT, PORT_LONGTEXT, true )
- set_capability( "interface", 0 );
- set_callbacks( Open, Close );
-vlc_module_end();
+ set_capability( "interface", 0 )
+ set_callbacks( Open, Close )
+vlc_module_end ()
/*****************************************************************************
* Open: initialize and create stuff
{
intf_thread_t *p_intf = (intf_thread_t *)p_this;
- playlist_t *p_playlist = pl_Yield( p_intf );
+ playlist_t *p_playlist = pl_Hold( p_intf );
var_AddCallback( p_playlist, "playlist-current", ItemChange, p_intf );
pl_Release( p_intf );
*****************************************************************************/
static void Close( vlc_object_t *p_this )
{
- playlist_t *p_playlist = pl_Yield( p_this );
+ playlist_t *p_playlist = pl_Hold( p_this );
var_DelCallback( p_playlist, "playlist-current", ItemChange, p_this );
pl_Release( p_this );
}
char *psz_artist = NULL;
char *psz_album = NULL;
input_thread_t *p_input;
- playlist_t *p_playlist = pl_Yield( p_this );
+ playlist_t *p_playlist = pl_Hold( p_this );
p_input = p_playlist->p_input;
pl_Release( p_this );