]> git.sesse.net Git - vlc/commitdiff
Remove unused module bank parameters
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 15 Aug 2011 19:16:51 +0000 (22:16 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 15 Aug 2011 19:26:40 +0000 (22:26 +0300)
src/libvlc.c
src/modules/modules.c
src/modules/modules.h

index 7832d53a948852ec2dbd5e8e23993cd4394410c2..8acc696039d2e927bda20d95f7b990984c24f771 100644 (file)
@@ -279,11 +279,11 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
      * main module. We need to do this at this stage to be able to display
      * a short help if required by the user. (short help == main module
      * options) */
-    module_InitBank( p_libvlc );
+    module_InitBank ();
 
     if( config_LoadCmdLine( p_libvlc, i_argc, ppsz_argv, NULL ) )
     {
-        module_EndBank( p_libvlc, false );
+        module_EndBank (false);
         return VLC_EGENERIC;
     }
 
@@ -378,7 +378,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
 
     if( b_exit )
     {
-        module_EndBank( p_libvlc, false );
+        module_EndBank (false);
         return i_ret;
     }
 
@@ -470,7 +470,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
 
     if( b_exit )
     {
-        module_EndBank( p_libvlc, true );
+        module_EndBank (true);
         return i_ret;
     }
 
@@ -501,7 +501,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
                  "that they are valid.\n" );
         PauseConsole();
 #endif
-        module_EndBank( p_libvlc, true );
+        module_EndBank (true);
         return VLC_EGENERIC;
     }
     priv->i_verbose = var_InheritInteger( p_libvlc, "verbose" );
@@ -800,7 +800,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
         {
             module_unneed( p_libvlc, priv->p_memcpy_module );
         }
-        module_EndBank( p_libvlc, true );
+        module_EndBank (true);
         return VLC_EGENERIC;
     }
 
@@ -1047,7 +1047,7 @@ void libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
         config_AutoSaveConfigFile( VLC_OBJECT(p_libvlc) );
 
     /* Free module bank. It is refcounted, so we call this each time  */
-    module_EndBank( p_libvlc, true );
+    module_EndBank (true);
 
     vlc_DeinitActions( p_libvlc, priv->actions );
 }
index 2d52afdd994205b8b895e4200bba5e36fe5b6f29..915b5d7266dd73e9e9c325992261b2054b77fd2c 100644 (file)
@@ -85,16 +85,13 @@ static module_t * AllocatePlugin( vlc_object_t *, const char *, bool );
 static module_t *module_InitStatic (vlc_plugin_cb);
 static void DeleteModule (module_t **, module_t *);
 
-#undef module_InitBank
 /**
  * Init bank
  *
  * Creates a module bank structure which will be filled later
  * on with all the modules found.
- * \param p_this vlc object structure
- * \return nothing
  */
-void module_InitBank( vlc_object_t *p_this )
+void module_InitBank (void)
 {
     vlc_mutex_lock (&modules.lock);
 
@@ -121,14 +118,11 @@ void module_InitBank( vlc_object_t *p_this )
     /*vlc_mutex_unlock (&modules.lock);*/
 }
 
-#undef module_EndBank
 /**
  * Unloads all unused plugin modules and empties the module
  * bank in case of success.
- * \param p_this vlc object structure
- * \return nothing
  */
-void module_EndBank( vlc_object_t *p_this, bool b_plugins )
+void module_EndBank (bool b_plugins)
 {
     module_t *head = NULL;
 
index 6418b67f3cf34a7e4e6092e358978ad80e3bca11..f1ba75156b87cce16e49391abe77a7755935906e 100644 (file)
@@ -112,12 +112,10 @@ module_t *vlc_module_create (void);
 module_t *vlc_submodule_create (module_t *module);
 void vlc_module_destroy (module_t *);
 
-void  module_InitBank( vlc_object_t * );
-#define module_InitBank(a) module_InitBank(VLC_OBJECT(a))
+void module_InitBank (void);
 void module_LoadPlugins( vlc_object_t * );
 #define module_LoadPlugins(a) module_LoadPlugins(VLC_OBJECT(a))
-void module_EndBank( vlc_object_t *, bool );
-#define module_EndBank(a,b) module_EndBank(VLC_OBJECT(a), b)
+void module_EndBank (bool);
 
 int vlc_bindtextdomain (const char *);