]> git.sesse.net Git - vlc/commitdiff
intf_Create: remove unused parameters
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 31 May 2008 10:29:30 +0000 (13:29 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 31 May 2008 10:29:30 +0000 (13:29 +0300)
include/vlc_interface.h
modules/codec/cmml/cmml.c
modules/control/ntservice.c
modules/control/rc.c
src/interface/interface.c
src/libvlc-common.c

index 04c7c19db6a1102585c89c059c326272a1c8e934..23fa959525ae4b443c19a2ecf9734a57663ed08e 100644 (file)
@@ -116,8 +116,8 @@ struct intf_dialog_args_t
 /*****************************************************************************
  * Prototypes
  *****************************************************************************/
-#define intf_Create(a,b,c,d) __intf_Create(VLC_OBJECT(a),b,c,d)
-VLC_EXPORT( intf_thread_t *, __intf_Create,     ( vlc_object_t *, const char *, int, const char *const * ) );
+#define intf_Create(a,b) __intf_Create(VLC_OBJECT(a),b)
+VLC_EXPORT( intf_thread_t *, __intf_Create,     ( vlc_object_t *, const char * ) );
 VLC_EXPORT( int,               intf_RunThread,  ( intf_thread_t * ) );
 VLC_EXPORT( void,              intf_StopThread, ( intf_thread_t * ) );
 
index ef66d4a821d02fadfff0e08fd751663ece5c6848..0f6ae97a2863473f030580842adb4022a1dd29e8 100644 (file)
@@ -131,7 +131,7 @@ static int OpenDecoder( vlc_object_t *p_this )
     vlc_object_release( p_input );
 
     /* 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 );
 
     return VLC_SUCCESS;
index 7eed573b3ab7408f1fd51e95c8596f87587d4ba1..6a6c10e88f791394e95ffda160837469e85f95bd 100644 (file)
@@ -319,7 +319,7 @@ static void WINAPI ServiceDispatch( DWORD numArgs, char **args )
             sprintf( psz_temp, "%s,none", psz_module );
 
             /* 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 )
             {
                 msg_Err( p_intf, "interface \"%s\" initialization failed",
index 05aa08a37f87a656656499d58ff8752993e65150..b16130b22bd2c7cf976ff8ae6d34c09bf74fd2b3 100644 (file)
@@ -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);
     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( intf_RunThread( p_newintf ) )
index c4d75f18e18810da900b32af60b923e8110dfa70..24a25c34d03e578e62f25311ae7c006a81b01f69 100644 (file)
@@ -80,16 +80,12 @@ static void intf_Destroy( vlc_object_t *obj )
  *****************************************************************************/
 /**
  * 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 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
  */
-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* __intf_Create( vlc_object_t *p_this, const char *psz_module )
 {
     intf_thread_t * p_intf;
     int i;
@@ -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_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 */
     p_intf->psz_intf = strdup( psz_module );
     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,
 
     /* Try to create the interface */
     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 );
     if( p_intf == NULL )
     {
index 47b0302569fd1b63fd7aad6d4dc175026bb9d807..24d2290f870687f92440e796c014d9115c3b5e94 100644 (file)
@@ -1131,7 +1131,7 @@ int libvlc_InternalAddIntf( libvlc_int_t *p_libvlc, char const *psz_module,
     }
 
     /* 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 )
     {
         msg_Err( p_libvlc, "interface \"%s\" initialization failed",