]> git.sesse.net Git - vlc/blobdiff - src/modules/modules.h
Make AddRef() and Release() atomic.
[vlc] / src / modules / modules.h
index 039cefa301f595e47fc01a2c1618d2306938180c..60b00eee01a83149e705f696f38019085381b375 100644 (file)
 #ifndef LIBVLC_MODULES_H
 # define LIBVLC_MODULES_H 1
 
-
-/* Number of tries before we unload an unused module */
-#define MODULE_HIDE_DELAY 50
-
 /*****************************************************************************
  * module_bank_t: the module bank
  *****************************************************************************
@@ -100,6 +96,10 @@ struct module_t
     module_t   *submodule;
     unsigned    submodule_count;
 
+    /** Shortcuts to the module */
+    unsigned    i_shortcuts;
+    char        **pp_shortcuts;
+
     /*
      * Variables set by the module to identify itself
      */
@@ -107,9 +107,6 @@ struct module_t
     char *psz_longname;                   /**< Module descriptive name */
     char *psz_help;        /**< Long help string for "special" modules */
 
-    /** Shortcuts to the module */
-    char *pp_shortcuts[ MODULE_SHORTCUT_MAX ];
-
     char    *psz_capability;                                 /**< Capability */
     int      i_score;                          /**< Score for the capability */