VLC 4.0.0-dev
|
Go to the source code of this file.
Data Structures | |
struct | vlc_plugin_t |
VLC plugin. More... | |
struct | module_t |
Internal module descriptor. More... | |
Macros | |
#define | MODULE_SHORTCUT_MAX 20 |
Typedefs | |
typedef struct vlc_plugin_t | vlc_plugin_t |
VLC plugin. | |
typedef void(* | vlc_deactivate_cb) (vlc_object_t *) |
Plugin deactivation callback. | |
Functions | |
vlc_plugin_t * | vlc_plugin_create (void) |
void | vlc_plugin_destroy (vlc_plugin_t *) |
Destroys a plug-in. | |
module_t * | vlc_module_create (vlc_plugin_t *) |
void | vlc_module_destroy (module_t *) |
Destroys a module. | |
vlc_plugin_t * | vlc_plugin_describe (vlc_plugin_cb) |
Runs a plug-in descriptor. | |
int | vlc_plugin_resolve (vlc_plugin_t *, vlc_plugin_cb) |
void | module_InitBank (void) |
Init bank. | |
void | module_LoadPlugins (libvlc_int_t *) |
Loads module descriptions for all available plugins. | |
void | module_EndBank (bool) |
Unloads all unused plugin modules and empties the module bank in case of success. | |
int | vlc_plugin_Map (struct vlc_logger *, vlc_plugin_t *) |
void * | vlc_plugin_Symbol (struct vlc_logger *, vlc_plugin_t *, const char *name) |
size_t | module_list_cap (module_t *const **tab, const char *name) |
Lists of all VLC modules with a given capability. | |
int | vlc_bindtextdomain (const char *) |
void * | vlc_dlopen (const char *path, bool) |
Loads a dynamically linked library. | |
int | vlc_dlclose (void *) |
Unloads a dynamic library. | |
void * | vlc_dlsym (void *handle, const char *name) |
Looks up a symbol from a dynamically loaded library. | |
char * | vlc_dlerror (void) |
Formats an error message for vlc_dlopen() or vlc_dlsym(). | |
vlc_plugin_t * | vlc_cache_load (libvlc_int_t *, const char *, block_t **) |
vlc_plugin_t * | vlc_cache_lookup (vlc_plugin_t **, const char *relpath) |
void | CacheSave (libvlc_int_t *, const char *, vlc_plugin_t *const *, size_t) |
Variables | |
struct vlc_plugin_t * | vlc_plugins |
List of all plug-ins. | |
#define MODULE_SHORTCUT_MAX 20 |
typedef void(* vlc_deactivate_cb) (vlc_object_t *) |
Plugin deactivation callback.
typedef struct vlc_plugin_t vlc_plugin_t |
VLC plugin.
void CacheSave | ( | libvlc_int_t * | , |
const char * | , | ||
vlc_plugin_t *const * | , | ||
size_t | |||
) |
void module_EndBank | ( | bool | b_plugins | ) |
Unloads all unused plugin modules and empties the module bank in case of success.
References block_ChainRelease, caches, caps_tree, config_UnsortConfig(), vlc_plugin_t::count, modules, vlc_plugin_t::next, tdestroy(), vlc_modcap_free(), vlc_mutex_assert, vlc_mutex_lock(), vlc_mutex_unlock(), vlc_plugin_destroy(), vlc_plugin_Unmap(), and vlc_plugins.
Referenced by libvlc_InternalCleanup().
void module_InitBank | ( | void | ) |
Init bank.
Creates a module bank structure which will be filled later on with all the modules found.
References config_SortConfig(), likely, module_InitStatic(), modules, VLC_MODULE_ENTRY, vlc_mutex_lock(), and vlc_plugin_store().
Referenced by libvlc_InternalInit().
size_t module_list_cap | ( | module_t *const ** | tab, |
const char * | name | ||
) |
Lists of all VLC modules with a given capability.
This functions returns a table of all VLC modules whose capability matches the supplied capability name. Entries are sorted by decreasing module score.
tab | pointer to the table of modules [OUT] |
name | capability nul-terminated string (cannot be NULL) |
void module_LoadPlugins | ( | libvlc_int_t * | obj | ) |
Loads module descriptions for all available plugins.
Fills the module bank structure with the plugin modules.
obj | vlc object structure |
References config_SortConfig(), config_UnsortConfig(), module_InitStaticModules(), modules, msg_Dbg, twalk(), vlc_modcap_sort(), and vlc_mutex_unlock().
Referenced by libvlc_InternalInit().
int vlc_bindtextdomain | ( | const char * | domain | ) |
References config_GetSysPath(), LocaleFree, ToLocale, unlikely, and VLC_LOCALE_DIR.
Referenced by libvlc_InternalInit().
vlc_plugin_t * vlc_cache_load | ( | libvlc_int_t * | , |
const char * | , | ||
block_t ** | |||
) |
vlc_plugin_t * vlc_cache_lookup | ( | vlc_plugin_t ** | , |
const char * | relpath | ||
) |
int vlc_dlclose | ( | void * | handle | ) |
Unloads a dynamic library.
This function unloads a previously opened dynamically linked library using a system dependent method.
handle | handle of the library |
0 | on success |
-1 | on error (none are defined though) |
char * vlc_dlerror | ( | void | ) |
Formats an error message for vlc_dlopen() or vlc_dlsym().
References FromLocaleDup, and strdup().
void * vlc_dlopen | ( | const char * | path, |
bool | lazy | ||
) |
Loads a dynamically linked library.
path | library file path |
lazy | whether to resolve the symbols lazily |
References ToLocaleDup, unlikely, and VLC_UNUSED.
void * vlc_dlsym | ( | void * | handle, |
const char * | name | ||
) |
Looks up a symbol from a dynamically loaded library.
This function looks for a named symbol within a loaded library.
handle | handle to the library |
name | function name |
References name.
module_t * vlc_module_create | ( | vlc_plugin_t * | plugin | ) |
References vlc_plugin_t::modules_count, and module_t::next.
Referenced by vlc_plugin_desc_cb().
void vlc_module_destroy | ( | module_t * | module | ) |
vlc_plugin_t * vlc_plugin_create | ( | void | ) |
References vlc_plugin_t::booleans, vlc_plugin_t::conf, vlc_plugin_t::count, vlc_plugin_t::modules_count, vlc_plugin_t::params, vlc_plugin_t::size, vlc_plugin_t::textdomain, and unlikely.
Referenced by vlc_plugin_describe().
vlc_plugin_t * vlc_plugin_describe | ( | vlc_plugin_cb | entry | ) |
Runs a plug-in descriptor.
This loads the plug-in meta-data in memory.
References unlikely, vlc_plugin_create(), vlc_plugin_desc_cb(), and vlc_plugin_destroy().
Referenced by module_InitStatic().
void vlc_plugin_destroy | ( | vlc_plugin_t * | plugin | ) |
Destroys a plug-in.
References vlc_plugin_t::conf, config_Free(), vlc_plugin_t::params, vlc_plugin_t::size, and vlc_module_destroy().
Referenced by module_EndBank(), and vlc_plugin_describe().
int vlc_plugin_Map | ( | struct vlc_logger * | log, |
vlc_plugin_t * | plugin | ||
) |
Referenced by vlc_module_map().
int vlc_plugin_resolve | ( | vlc_plugin_t * | plugin, |
vlc_plugin_cb | entry | ||
) |
References vlc_plugin_get_symbol(), and vlc_plugin_get_symbols().
void * vlc_plugin_Symbol | ( | struct vlc_logger * | log, |
vlc_plugin_t * | plugin, | ||
const char * | name | ||
) |
References name.
Referenced by config_GetIntChoices(), and config_GetPszChoices().
|
extern |
List of all plug-ins.
Referenced by config_LoadCmdLine(), config_ResetAll(), config_SaveConfigFile(), config_SortConfig(), module_EndBank(), module_list_get(), Usage(), and vlc_plugin_store().