/* Number of tries before we unload an unused module */
#define MODULE_HIDE_DELAY 50
-#define MODULE_SHORTCUT_MAX 20
+#define MODULE_SHORTCUT_MAX 50
/* The module handle type. */
#if defined(HAVE_DL_DYLD)
{
VLC_COMMON_MEMBERS
+ int i_usage;
module_symbols_t symbols;
+
+ vlc_bool_t b_main;
+ vlc_bool_t b_builtins;
+ vlc_bool_t b_plugins;
+
+ /* Plugins cache */
+ vlc_bool_t b_cache;
+ vlc_bool_t b_cache_dirty;
+ vlc_bool_t b_cache_delete;
+
+ int i_cache;
+ module_cache_t **pp_cache;
+
+ int i_loaded_cache;
+ module_cache_t **pp_loaded_cache;
};
/*****************************************************************************
/*
* Variables set by the module to identify itself
*/
+ char *psz_shortname; /* Module name */
char *psz_longname; /* Module descriptive name */
/*
char * psz_filename; /* Module filename */
vlc_bool_t b_builtin; /* Set to true if the module is built in */
+ vlc_bool_t b_loaded; /* Set to true if the dll is loaded */
/*
* Symbol table we send to the module so that it can access vlc symbols
module_symbols_t *p_symbols;
};
+/*****************************************************************************
+ * Module cache description structure
+ *****************************************************************************/
+struct module_cache_t
+{
+ /* Mandatory cache entry header */
+ char *psz_file;
+ int64_t i_time;
+ int64_t i_size;
+ vlc_bool_t b_junk;
+
+ /* Optional extra data */
+ module_t *p_module;
+};
+
/*****************************************************************************
* Exported functions.
*****************************************************************************/