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

intf_Create: remove unused parameters

parent 40caaae0
...@@ -116,8 +116,8 @@ struct intf_dialog_args_t ...@@ -116,8 +116,8 @@ struct intf_dialog_args_t
/***************************************************************************** /*****************************************************************************
* Prototypes * Prototypes
*****************************************************************************/ *****************************************************************************/
#define intf_Create(a,b,c,d) __intf_Create(VLC_OBJECT(a),b,c,d) #define intf_Create(a,b) __intf_Create(VLC_OBJECT(a),b)
VLC_EXPORT( intf_thread_t *, __intf_Create, ( vlc_object_t *, const char *, int, const char *const * ) ); VLC_EXPORT( intf_thread_t *, __intf_Create, ( vlc_object_t *, const char * ) );
VLC_EXPORT( int, intf_RunThread, ( intf_thread_t * ) ); VLC_EXPORT( int, intf_RunThread, ( intf_thread_t * ) );
VLC_EXPORT( void, intf_StopThread, ( intf_thread_t * ) ); VLC_EXPORT( void, intf_StopThread, ( intf_thread_t * ) );
......
...@@ -131,7 +131,7 @@ static int OpenDecoder( vlc_object_t *p_this ) ...@@ -131,7 +131,7 @@ static int OpenDecoder( vlc_object_t *p_this )
vlc_object_release( p_input ); vlc_object_release( p_input );
/* initialise the CMML responder interface */ /* initialise the CMML responder interface */
p_sys->p_intf = intf_Create( p_dec, "cmml", 0, NULL ); p_sys->p_intf = intf_Create( p_dec, "cmml" );
intf_RunThread( p_sys->p_intf ); intf_RunThread( p_sys->p_intf );
return VLC_SUCCESS; return VLC_SUCCESS;
......
...@@ -319,7 +319,7 @@ static void WINAPI ServiceDispatch( DWORD numArgs, char **args ) ...@@ -319,7 +319,7 @@ static void WINAPI ServiceDispatch( DWORD numArgs, char **args )
sprintf( psz_temp, "%s,none", psz_module ); sprintf( psz_temp, "%s,none", psz_module );
/* Try to create the interface */ /* Try to create the interface */
p_new_intf = intf_Create( p_intf, psz_temp, 0, NULL ); p_new_intf = intf_Create( p_intf, psz_temp );
if( p_new_intf == NULL ) if( p_new_intf == NULL )
{ {
msg_Err( p_intf, "interface \"%s\" initialization failed", msg_Err( p_intf, "interface \"%s\" initialization failed",
......
...@@ -1537,7 +1537,7 @@ static int Intf( vlc_object_t *p_this, char const *psz_cmd, ...@@ -1537,7 +1537,7 @@ static int Intf( vlc_object_t *p_this, char const *psz_cmd,
VLC_UNUSED(psz_cmd); VLC_UNUSED(oldval); VLC_UNUSED(p_data); VLC_UNUSED(psz_cmd); VLC_UNUSED(oldval); VLC_UNUSED(p_data);
intf_thread_t *p_newintf = NULL; intf_thread_t *p_newintf = NULL;
p_newintf = intf_Create( p_this->p_libvlc, newval.psz_string, 0, NULL ); p_newintf = intf_Create( p_this->p_libvlc, newval.psz_string );
if( p_newintf ) if( p_newintf )
{ {
if( intf_RunThread( p_newintf ) ) if( intf_RunThread( p_newintf ) )
......
...@@ -80,16 +80,12 @@ static void intf_Destroy( vlc_object_t *obj ) ...@@ -80,16 +80,12 @@ static void intf_Destroy( vlc_object_t *obj )
*****************************************************************************/ *****************************************************************************/
/** /**
* Create the interface, and prepare it for main loop. * Create the interface, and prepare it for main loop.
* You can give some additional options to be used for interface initialization
* *
* \param p_this the calling vlc_object_t * \param p_this the calling vlc_object_t
* \param psz_module a preferred interface module * \param psz_module a preferred interface module
* \param i_options number additional options
* \param ppsz_options additional option strings
* \return a pointer to the created interface thread, NULL on error * \return a pointer to the created interface thread, NULL on error
*/ */
intf_thread_t* __intf_Create( vlc_object_t *p_this, const char *psz_module, intf_thread_t* __intf_Create( vlc_object_t *p_this, const char *psz_module )
int i_options, const char *const *ppsz_options )
{ {
intf_thread_t * p_intf; intf_thread_t * p_intf;
int i; int i;
...@@ -108,9 +104,6 @@ intf_thread_t* __intf_Create( vlc_object_t *p_this, const char *psz_module, ...@@ -108,9 +104,6 @@ intf_thread_t* __intf_Create( vlc_object_t *p_this, const char *psz_module,
p_intf->b_interaction = false; p_intf->b_interaction = false;
p_intf->b_should_run_on_first_thread = false; p_intf->b_should_run_on_first_thread = false;
for( i = 0 ; i< i_options; i++ )
var_OptionParse( p_this, ppsz_options[i], true );
/* Choose the best module */ /* Choose the best module */
p_intf->psz_intf = strdup( psz_module ); p_intf->psz_intf = strdup( psz_module );
p_intf->p_module = module_Need( p_intf, "interface", psz_module, false ); p_intf->p_module = module_Need( p_intf, "interface", psz_module, false );
...@@ -264,7 +257,7 @@ static int AddIntfCallback( vlc_object_t *p_this, char const *psz_cmd, ...@@ -264,7 +257,7 @@ static int AddIntfCallback( vlc_object_t *p_this, char const *psz_cmd,
/* Try to create the interface */ /* Try to create the interface */
sprintf( psz_intf, "%s,none", newval.psz_string ); sprintf( psz_intf, "%s,none", newval.psz_string );
p_intf = intf_Create( p_this->p_libvlc, psz_intf, 0, NULL ); p_intf = intf_Create( p_this->p_libvlc, psz_intf );
free( psz_intf ); free( psz_intf );
if( p_intf == NULL ) if( p_intf == NULL )
{ {
......
...@@ -1131,7 +1131,7 @@ int libvlc_InternalAddIntf( libvlc_int_t *p_libvlc, char const *psz_module, ...@@ -1131,7 +1131,7 @@ int libvlc_InternalAddIntf( libvlc_int_t *p_libvlc, char const *psz_module,
} }
/* Try to create the interface */ /* Try to create the interface */
p_intf = intf_Create( p_libvlc, psz_module ? psz_module : "$intf", 0, NULL ); p_intf = intf_Create( p_libvlc, psz_module ? psz_module : "$intf" );
if( p_intf == NULL ) if( p_intf == NULL )
{ {
msg_Err( p_libvlc, "interface \"%s\" initialization failed", msg_Err( p_libvlc, "interface \"%s\" initialization failed",
......
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