VLC 4.0.0-dev
|
This file implements plugin (module) macros used to define a vlc module. More...
Go to the source code of this file.
Macros | |
#define | CONFIG_HINT_CATEGORY 0x02 /* Start of new category */ |
#define | CONFIG_SUBCATEGORY 0x07 /* Set subcategory */ |
#define | CONFIG_SECTION 0x08 /* Start of new section */ |
#define | CONFIG_ITEM_FLOAT (1 << 5) /* Float option */ |
#define | CONFIG_ITEM_INTEGER (2 << 5) /* Integer option */ |
#define | CONFIG_ITEM_RGB (CONFIG_ITEM_INTEGER | 0x01) /* RGB color option */ |
#define | CONFIG_ITEM_BOOL (3 << 5) /* Bool option */ |
#define | CONFIG_ITEM_STRING (4 << 5) /* String option */ |
#define | CONFIG_ITEM_PASSWORD (CONFIG_ITEM_STRING | 0x01) /* Password option (*) */ |
#define | CONFIG_ITEM_KEY (CONFIG_ITEM_STRING | 0x02) /* Hot key option */ |
#define | CONFIG_ITEM_MODULE (CONFIG_ITEM_STRING | 0x04) /* Module option */ |
#define | CONFIG_ITEM_MODULE_CAT (CONFIG_ITEM_STRING | 0x05) /* Module option */ |
#define | CONFIG_ITEM_MODULE_LIST (CONFIG_ITEM_STRING | 0x06) /* Module option */ |
#define | CONFIG_ITEM_MODULE_LIST_CAT (CONFIG_ITEM_STRING | 0x07) /* Module option */ |
#define | CONFIG_ITEM_LOADFILE (CONFIG_ITEM_STRING | 0x0C) /* Read file option */ |
#define | CONFIG_ITEM_SAVEFILE (CONFIG_ITEM_STRING | 0x0D) /* Written file option */ |
#define | CONFIG_ITEM_DIRECTORY (CONFIG_ITEM_STRING | 0x0E) /* Directory option */ |
#define | CONFIG_ITEM_FONT (CONFIG_ITEM_STRING | 0x0F) /* Font option */ |
#define | CONFIG_CLASS(x) ((x) & ~0x1F) |
#define | CONFIG_ITEM(x) (((x) & ~0xF) != 0) |
#define | IsConfigStringType(type) (((type) & CONFIG_ITEM_STRING) != 0) |
#define | IsConfigIntegerType(type) (((type) & CONFIG_ITEM_INTEGER) != 0) |
#define | IsConfigFloatType(type) ((type) == CONFIG_ITEM_FLOAT) |
#define | VLC_API_VERSION_STRING "4.0.6" |
Current plugin ABI version. | |
#define | CONCATENATE(y, z) CRUDE_HACK( y, z ) |
#define | CRUDE_HACK(y, z) y##__##z |
#define | STRINGIFY_NAME_(z) #z |
#define | STRINGIFY_NAME(z) STRINGIFY_NAME_( z ) |
#define | EXTERN_SYMBOL |
#define | VLC_ENTRY_FUNC(name) int (name)(vlc_set_cb, void *) |
#define | VLC_MODULE_ENTRY(name) CONCATENATE(vlc_entry, name) |
#define | VLC_DECL_MODULE_ENTRY(name) VLC_ENTRY_FUNC(VLC_MODULE_ENTRY(name)) |
#define | VLC_SYMBOL(symbol) CONCATENATE(symbol, MODULE_NAME) |
#define | VLC_MODULE_NAME_HIDDEN_SYMBOL |
#define | CDECL_SYMBOL |
#define | DLL_SYMBOL |
#define | vlc_plugin_set(...) vlc_set (opaque, NULL, __VA_ARGS__) |
#define | vlc_module_set(...) vlc_set (opaque, module, __VA_ARGS__) |
#define | vlc_config_set(...) vlc_set (opaque, config, __VA_ARGS__) |
#define | VLC_CHECKED_TYPE(type, value) (type){ value } |
#define | vlc_module_begin() |
#define | vlc_module_end() |
#define | add_submodule() |
#define | add_shortcut(...) |
#define | set_shortname(shortname) |
#define | set_description(desc) |
#define | set_help(help) |
#define | set_help_html(help_html) |
#define | set_capability(cap, score) |
#define | set_callback(activate) |
#define | set_callbacks(activate, deactivate) |
#define | cannot_unload_broken_library() |
#define | set_text_domain(dom) |
#define | add_type_inner(type) vlc_plugin_set (VLC_CONFIG_CREATE, (type), &config); |
#define | add_typedesc_inner(type, text, longtext) |
#define | add_typename_inner(type, name, text, longtext) |
#define | add_string_inner(type, name, text, longtext, v) |
#define | add_int_inner(type, name, text, longtext, v) |
#define | set_subcategory(id) |
#define | set_section(text, longtext) add_typedesc_inner( CONFIG_SECTION, text, longtext ) |
#define | add_string(name, value, text, longtext) add_string_inner(CONFIG_ITEM_STRING, name, text, longtext, value) |
#define | add_password(name, value, text, longtext) add_string_inner(CONFIG_ITEM_PASSWORD, name, text, longtext, value) |
#define | add_loadfile(name, value, text, longtext) add_string_inner(CONFIG_ITEM_LOADFILE, name, text, longtext, value) |
#define | add_savefile(name, value, text, longtext) add_string_inner(CONFIG_ITEM_SAVEFILE, name, text, longtext, value) |
#define | add_directory(name, value, text, longtext) add_string_inner(CONFIG_ITEM_DIRECTORY, name, text, longtext, value) |
#define | add_font(name, value, text, longtext) add_string_inner(CONFIG_ITEM_FONT, name, text, longtext, value) |
#define | add_module(name, cap, value, text, longtext) |
#define | add_module_list(name, cap, value, text, longtext) |
#define | add_integer(name, value, text, longtext) add_int_inner(CONFIG_ITEM_INTEGER, name, text, longtext, value) |
#define | add_rgb(name, value, text, longtext) |
#define | add_key(name, value, text, longtext) |
#define | add_integer_with_range(name, value, min, max, text, longtext) |
#define | add_float(name, v, text, longtext) |
#define | add_float_with_range(name, value, min, max, text, longtext) |
#define | add_bool(name, v, text, longtext) |
#define | add_obsolete_inner(name, type) |
#define | add_obsolete_bool(name) add_obsolete_inner( name, CONFIG_ITEM_BOOL ) |
#define | add_obsolete_integer(name) add_obsolete_inner( name, CONFIG_ITEM_INTEGER ) |
#define | add_obsolete_float(name) add_obsolete_inner( name, CONFIG_ITEM_FLOAT ) |
#define | add_obsolete_string(name) add_obsolete_inner( name, CONFIG_ITEM_STRING ) |
#define | change_short(ch) vlc_config_set (VLC_CONFIG_SHORTCUT, VLC_CHECKED_TYPE(char, ch)); |
#define | change_string_list(list, list_text) |
#define | change_integer_list(list, list_text) |
#define | change_integer_range(minv, maxv) |
#define | change_float_range(minv, maxv) |
#define | change_private() vlc_config_set (VLC_CONFIG_PRIVATE); |
#define | change_volatile() |
#define | change_safe() vlc_config_set (VLC_CONFIG_SAFE); |
#define | VLC_CONFIG_INTEGER_ENUM(cb) |
#define | VLC_CONFIG_STRING_ENUM(cb) |
#define | VLC_META_EXPORT(name, value) |
#define | VLC_API_VERSION_EXPORT VLC_META_EXPORT(api_version, VLC_API_VERSION_STRING) |
#define | VLC_COPYRIGHT_VIDEOLAN |
#define | VLC_LICENSE_LGPL_2_1_PLUS |
#define | VLC_LICENSE_GPL_2_PLUS |
#define | VLC_COPYRIGHT_EXPORT |
#define | VLC_LICENSE_EXPORT |
#define | VLC_METADATA_EXPORTS |
Typedefs | |
typedef int(* | vlc_set_cb) (void *, void *, int,...) |
typedef int(* | vlc_plugin_cb) (vlc_set_cb, void *) |
Plugin entry point prototype. | |
Functions | |
int | vlc_entry__MODULE_NAME (vlc_set_cb, void *) |
int | vlc_entry_cfg_int_enum__MODULE_NAME (const char *name, int64_t **values, char ***descs) |
int | vlc_entry_cfg_str_enum__MODULE_NAME (const char *name, char ***values, char ***descs) |
This file implements plugin (module) macros used to define a vlc module.
#define add_bool | ( | name, | |
v, | |||
text, | |||
longtext | |||
) |
#define add_directory | ( | name, | |
value, | |||
text, | |||
longtext | |||
) | add_string_inner(CONFIG_ITEM_DIRECTORY, name, text, longtext, value) |
#define add_float | ( | name, | |
v, | |||
text, | |||
longtext | |||
) |
#define add_float_with_range | ( | name, | |
value, | |||
min, | |||
max, | |||
text, | |||
longtext | |||
) |
#define add_font | ( | name, | |
value, | |||
text, | |||
longtext | |||
) | add_string_inner(CONFIG_ITEM_FONT, name, text, longtext, value) |
#define add_int_inner | ( | type, | |
name, | |||
text, | |||
longtext, | |||
v | |||
) |
#define add_integer | ( | name, | |
value, | |||
text, | |||
longtext | |||
) | add_int_inner(CONFIG_ITEM_INTEGER, name, text, longtext, value) |
#define add_integer_with_range | ( | name, | |
value, | |||
min, | |||
max, | |||
text, | |||
longtext | |||
) |
#define add_key | ( | name, | |
value, | |||
text, | |||
longtext | |||
) |
#define add_loadfile | ( | name, | |
value, | |||
text, | |||
longtext | |||
) | add_string_inner(CONFIG_ITEM_LOADFILE, name, text, longtext, value) |
#define add_module | ( | name, | |
cap, | |||
value, | |||
text, | |||
longtext | |||
) |
#define add_module_list | ( | name, | |
cap, | |||
value, | |||
text, | |||
longtext | |||
) |
#define add_obsolete_bool | ( | name | ) | add_obsolete_inner( name, CONFIG_ITEM_BOOL ) |
#define add_obsolete_float | ( | name | ) | add_obsolete_inner( name, CONFIG_ITEM_FLOAT ) |
#define add_obsolete_inner | ( | name, | |
type | |||
) |
#define add_obsolete_integer | ( | name | ) | add_obsolete_inner( name, CONFIG_ITEM_INTEGER ) |
#define add_obsolete_string | ( | name | ) | add_obsolete_inner( name, CONFIG_ITEM_STRING ) |
#define add_password | ( | name, | |
value, | |||
text, | |||
longtext | |||
) | add_string_inner(CONFIG_ITEM_PASSWORD, name, text, longtext, value) |
#define add_rgb | ( | name, | |
value, | |||
text, | |||
longtext | |||
) |
#define add_savefile | ( | name, | |
value, | |||
text, | |||
longtext | |||
) | add_string_inner(CONFIG_ITEM_SAVEFILE, name, text, longtext, value) |
#define add_shortcut | ( | ... | ) |
#define add_string | ( | name, | |
value, | |||
text, | |||
longtext | |||
) | add_string_inner(CONFIG_ITEM_STRING, name, text, longtext, value) |
#define add_string_inner | ( | type, | |
name, | |||
text, | |||
longtext, | |||
v | |||
) |
#define add_submodule | ( | ) |
#define add_type_inner | ( | type | ) | vlc_plugin_set (VLC_CONFIG_CREATE, (type), &config); |
#define add_typedesc_inner | ( | type, | |
text, | |||
longtext | |||
) |
#define add_typename_inner | ( | type, | |
name, | |||
text, | |||
longtext | |||
) |
#define cannot_unload_broken_library | ( | ) |
#define CDECL_SYMBOL |
#define change_float_range | ( | minv, | |
maxv | |||
) |
#define change_integer_list | ( | list, | |
list_text | |||
) |
#define change_integer_range | ( | minv, | |
maxv | |||
) |
#define change_private | ( | ) | vlc_config_set (VLC_CONFIG_PRIVATE); |
#define change_safe | ( | ) | vlc_config_set (VLC_CONFIG_SAFE); |
#define change_short | ( | ch | ) | vlc_config_set (VLC_CONFIG_SHORTCUT, VLC_CHECKED_TYPE(char, ch)); |
#define change_string_list | ( | list, | |
list_text | |||
) |
#define change_volatile | ( | ) |
#define CONCATENATE | ( | y, | |
z | |||
) | CRUDE_HACK( y, z ) |
#define CONFIG_CLASS | ( | x | ) | ((x) & ~0x1F) |
#define CONFIG_HINT_CATEGORY 0x02 /* Start of new category */ |
#define CONFIG_ITEM | ( | x | ) | (((x) & ~0xF) != 0) |
#define CONFIG_ITEM_BOOL (3 << 5) /* Bool option */ |
#define CONFIG_ITEM_DIRECTORY (CONFIG_ITEM_STRING | 0x0E) /* Directory option */ |
#define CONFIG_ITEM_FLOAT (1 << 5) /* Float option */ |
#define CONFIG_ITEM_FONT (CONFIG_ITEM_STRING | 0x0F) /* Font option */ |
#define CONFIG_ITEM_INTEGER (2 << 5) /* Integer option */ |
#define CONFIG_ITEM_KEY (CONFIG_ITEM_STRING | 0x02) /* Hot key option */ |
#define CONFIG_ITEM_LOADFILE (CONFIG_ITEM_STRING | 0x0C) /* Read file option */ |
#define CONFIG_ITEM_MODULE (CONFIG_ITEM_STRING | 0x04) /* Module option */ |
#define CONFIG_ITEM_MODULE_CAT (CONFIG_ITEM_STRING | 0x05) /* Module option */ |
#define CONFIG_ITEM_MODULE_LIST (CONFIG_ITEM_STRING | 0x06) /* Module option */ |
#define CONFIG_ITEM_MODULE_LIST_CAT (CONFIG_ITEM_STRING | 0x07) /* Module option */ |
#define CONFIG_ITEM_PASSWORD (CONFIG_ITEM_STRING | 0x01) /* Password option (*) */ |
#define CONFIG_ITEM_RGB (CONFIG_ITEM_INTEGER | 0x01) /* RGB color option */ |
#define CONFIG_ITEM_SAVEFILE (CONFIG_ITEM_STRING | 0x0D) /* Written file option */ |
#define CONFIG_ITEM_STRING (4 << 5) /* String option */ |
#define CONFIG_SECTION 0x08 /* Start of new section */ |
#define CONFIG_SUBCATEGORY 0x07 /* Set subcategory */ |
#define CRUDE_HACK | ( | y, | |
z | |||
) | y##__##z |
#define DLL_SYMBOL |
#define EXTERN_SYMBOL |
#define IsConfigFloatType | ( | type | ) | ((type) == CONFIG_ITEM_FLOAT) |
#define IsConfigIntegerType | ( | type | ) | (((type) & CONFIG_ITEM_INTEGER) != 0) |
#define IsConfigStringType | ( | type | ) | (((type) & CONFIG_ITEM_STRING) != 0) |
#define set_callback | ( | activate | ) |
#define set_callbacks | ( | activate, | |
deactivate | |||
) |
#define set_capability | ( | cap, | |
score | |||
) |
#define set_description | ( | desc | ) |
#define set_help | ( | help | ) |
#define set_help_html | ( | help_html | ) |
#define set_section | ( | text, | |
longtext | |||
) | add_typedesc_inner( CONFIG_SECTION, text, longtext ) |
#define set_shortname | ( | shortname | ) |
#define set_subcategory | ( | id | ) |
#define set_text_domain | ( | dom | ) |
#define STRINGIFY_NAME | ( | z | ) | STRINGIFY_NAME_( z ) |
#define STRINGIFY_NAME_ | ( | z | ) | #z |
#define VLC_API_VERSION_EXPORT VLC_META_EXPORT(api_version, VLC_API_VERSION_STRING) |
#define VLC_API_VERSION_STRING "4.0.6" |
Current plugin ABI version.
#define VLC_CHECKED_TYPE | ( | type, | |
value | |||
) | (type){ value } |
#define VLC_CONFIG_INTEGER_ENUM | ( | cb | ) |
#define vlc_config_set | ( | ... | ) | vlc_set (opaque, config, __VA_ARGS__) |
#define VLC_CONFIG_STRING_ENUM | ( | cb | ) |
#define VLC_COPYRIGHT_EXPORT |
#define VLC_COPYRIGHT_VIDEOLAN |
#define VLC_DECL_MODULE_ENTRY | ( | name | ) | VLC_ENTRY_FUNC(VLC_MODULE_ENTRY(name)) |
#define VLC_ENTRY_FUNC | ( | name | ) | int (name)(vlc_set_cb, void *) |
#define VLC_LICENSE_EXPORT |
#define VLC_LICENSE_GPL_2_PLUS |
#define VLC_LICENSE_LGPL_2_1_PLUS |
#define VLC_META_EXPORT | ( | name, | |
value | |||
) |
#define VLC_METADATA_EXPORTS |
#define vlc_module_begin | ( | ) |
#define vlc_module_end | ( | ) |
#define VLC_MODULE_ENTRY | ( | name | ) | CONCATENATE(vlc_entry, name) |
#define VLC_MODULE_NAME_HIDDEN_SYMBOL |
#define vlc_module_set | ( | ... | ) | vlc_set (opaque, module, __VA_ARGS__) |
#define vlc_plugin_set | ( | ... | ) | vlc_set (opaque, NULL, __VA_ARGS__) |
#define VLC_SYMBOL | ( | symbol | ) | CONCATENATE(symbol, MODULE_NAME) |
typedef int(* vlc_plugin_cb) (vlc_set_cb, void *) |
Plugin entry point prototype.
typedef int(* vlc_set_cb) (void *, void *, int,...) |
enum vlc_config_cat |
enum vlc_config_subcat |
int vlc_entry__MODULE_NAME | ( | vlc_set_cb | vlc_set, |
void * | opaque | ||
) |
int vlc_entry_cfg_int_enum__MODULE_NAME | ( | const char * | name, |
int64_t ** | values, | ||
char *** | descs | ||
) |
int vlc_entry_cfg_str_enum__MODULE_NAME | ( | const char * | name, |
char *** | values, | ||
char *** | descs | ||
) |