23#ifndef LIBVLC_MODULES_H
24# define LIBVLC_MODULES_H 1
26# include <stdatomic.h>
51#ifdef HAVE_DYNAMIC_PLUGINS
53 atomic_uintptr_t handle;
67#define MODULE_SHORTCUT_MAX 20
#define VLC_USED
Definition: fourcc_gen.c:32
const char name[16]
Definition: httpd.c:1281
struct vlc_plugin_t vlc_plugin_t
VLC plugin.
char * vlc_dlerror(void)
Formats an error message for vlc_dlopen() or vlc_dlsym().
Definition: plugin.c:65
int vlc_plugin_Map(struct vlc_logger *, vlc_plugin_t *)
Definition: bank.c:699
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)
module_t * vlc_module_create(vlc_plugin_t *)
Definition: entry.c:42
struct vlc_plugin_t * vlc_plugins
List of all plug-ins.
Definition: bank.c:106
vlc_plugin_t * vlc_plugin_describe(vlc_plugin_cb)
Runs a plug-in descriptor.
Definition: entry.c:492
int vlc_dlclose(void *)
Unloads a dynamic library.
Definition: plugin.c:52
vlc_plugin_t * vlc_plugin_create(void)
Definition: entry.c:97
void * vlc_plugin_Symbol(struct vlc_logger *, vlc_plugin_t *, const char *name)
Definition: bank.c:710
void * vlc_dlsym(void *handle, const char *)
Looks up a symbol from a dynamically loaded library.
Definition: plugin.c:57
void module_LoadPlugins(libvlc_int_t *)
Loads module descriptions for all available plugins.
Definition: bank.c:803
void * vlc_dlopen(const char *path, bool)
Loads a dynamically linked library.
Definition: plugin.c:40
void module_InitBank(void)
Init bank.
Definition: bank.c:724
void vlc_plugin_destroy(vlc_plugin_t *)
Destroys a plug-in.
Definition: entry.c:125
void module_EndBank(bool)
Unloads all unused plugin modules and empties the module bank in case of success.
Definition: bank.c:756
void(* vlc_deactivate_cb)(vlc_object_t *)
Plugin deactivation callback.
Definition: modules.h:70
void CacheSave(libvlc_int_t *, const char *, vlc_plugin_t *const *, size_t)
void vlc_module_destroy(module_t *)
Destroys a module.
Definition: entry.c:85
int vlc_plugin_resolve(vlc_plugin_t *, vlc_plugin_cb)
Definition: entry.c:630
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 *)
Definition: textdomain.c:34
Definition: vlc_objects.h:91
Internal module descriptor.
Definition: modules.h:76
const char * psz_longname
Module descriptive name.
Definition: modules.h:88
const char * psz_shortname
Module name.
Definition: modules.h:87
module_t * next
Definition: modules.h:78
const char ** pp_shortcuts
Definition: modules.h:82
const char * psz_help
Long help plain string for "special" modules.
Definition: modules.h:89
const char * psz_help_html
Long help HTML string, shown instead of the plain help where it makes sense to render HTML.
Definition: modules.h:90
void * pf_activate
Definition: modules.h:99
unsigned i_shortcuts
Shortcuts to the module.
Definition: modules.h:81
const char * deactivate_name
Definition: modules.h:98
int i_score
Score for the capability.
Definition: modules.h:94
vlc_plugin_t * plugin
Plug-in/library containing the module.
Definition: modules.h:77
const char * psz_capability
Capability.
Definition: modules.h:93
const char * activate_name
Definition: modules.h:97
vlc_deactivate_cb deactivate
Definition: modules.h:100
Definition: vlc_frame.h:123
Definition: messages.c:85
VLC object common members.
Definition: vlc_objects.h:45
Definition: configuration.h:30
VLC plugin.
Definition: modules.h:33
struct vlc_plugin_t::@102 conf
Variables set by the module to store its config options.
struct vlc_plugin_t * next
Definition: modules.h:34
size_t size
Total count of all items.
Definition: modules.h:46
unsigned modules_count
Definition: modules.h:36
module_t * module
Definition: modules.h:35
size_t booleans
Count of options that are of boolean type.
Definition: modules.h:48
size_t count
Count of real options (excludes hints)
Definition: modules.h:47
struct vlc_param * params
Table of configuration items.
Definition: modules.h:45
const char * textdomain
gettext domain (or NULL)
Definition: modules.h:38
This file implements plugin (module) macros used to define a vlc module.
int(* vlc_plugin_cb)(vlc_set_cb, void *)
Plugin entry point prototype.
Definition: vlc_plugin.h:291