*****************************************************************************/
struct intf_sys_t
{
- msg_subscription_t *p_sub;
+ msg_subscription_t sub;
FILE *p_file;
const char *footer;
};
N_("Log filename"), N_("Specify the log filename."), false )
add_string( "logmode", "text", LOGMODE_TEXT, LOGMODE_LONGTEXT,
false )
- change_string_list( mode_list, mode_list_text, 0 )
+ change_string_list( mode_list, mode_list_text )
#ifdef HAVE_SYSLOG_H
add_string( "syslog-facility", fac_name[0], SYSLOG_FACILITY_TEXT,
SYSLOG_FACILITY_LONGTEXT, true )
- change_string_list( fac_name, fac_name, 0 )
+ change_string_list( fac_name, fac_name )
#endif
add_integer( "log-verbose", -1, LOGVERBOSE_TEXT, LOGVERBOSE_LONGTEXT,
false )
fputs( header, p_sys->p_file );
}
- p_sys->p_sub = vlc_Subscribe( cb, p_intf );
+ vlc_Subscribe( &p_sys->sub, cb, p_intf );
return VLC_SUCCESS;
}
intf_sys_t *p_sys = p_intf->p_sys;
/* Flush the queue and unsubscribe from the message queue */
- vlc_Unsubscribe( p_sys->p_sub );
+ vlc_Unsubscribe( &p_sys->sub );
/* Close the log file */
#ifdef HAVE_SYSLOG_H