Browse Source

vlc_plugin: move some category parameter into the core

They are only meant to be used by the core and hidden for the rest since
3a82d263b5.
pull/162/head
Steve Lhomme 2 years ago
parent
commit
b1a0ed0ca9
  1. 16
      include/vlc_plugin.h
  2. 12
      src/libvlc-module.c

16
include/vlc_plugin.h

@ -427,11 +427,6 @@ VLC_METADATA_EXPORTS
#define set_section( text, longtext ) \
add_typedesc_inner( CONFIG_SECTION, text, longtext )
#ifndef VLC_DYNAMIC_PLUGIN
#define add_category_hint(text, longtext) \
add_typedesc_inner( CONFIG_HINT_CATEGORY, text, longtext )
#endif
#define add_string( name, value, text, longtext ) \
add_string_inner(CONFIG_ITEM_STRING, name, text, longtext, value)
@ -458,17 +453,6 @@ VLC_METADATA_EXPORTS
add_string_inner(CONFIG_ITEM_MODULE_LIST, name, text, longtext, value) \
vlc_config_set (VLC_CONFIG_CAPABILITY, VLC_CHECKED_TYPE(const char *, cap));
#ifndef VLC_DYNAMIC_PLUGIN
#define add_module_cat(name, subcategory, value, text, longtext) \
add_string_inner(CONFIG_ITEM_MODULE_CAT, name, text, longtext, value) \
change_integer_range (subcategory /* gruik */, 0)
#define add_module_list_cat(name, subcategory, value, text, longtext) \
add_string_inner(CONFIG_ITEM_MODULE_LIST_CAT, name, text, longtext, \
value) \
change_integer_range (subcategory /* gruik */, 0)
#endif
#define add_integer( name, value, text, longtext ) \
add_int_inner(CONFIG_ITEM_INTEGER, name, text, longtext, value)

12
src/libvlc-module.c

@ -1568,6 +1568,18 @@ static const char *const mouse_wheel_texts[] = {
* add_bool( option_name, b_value, N_(text), N_(longtext) )
*/
#define add_category_hint(text, longtext) \
add_typedesc_inner( CONFIG_HINT_CATEGORY, text, longtext )
#define add_module_cat(name, subcategory, value, text, longtext) \
add_string_inner(CONFIG_ITEM_MODULE_CAT, name, text, longtext, value) \
change_integer_range (subcategory /* gruik */, 0)
#define add_module_list_cat(name, subcategory, value, text, longtext) \
add_string_inner(CONFIG_ITEM_MODULE_LIST_CAT, name, text, longtext, \
value) \
change_integer_range (subcategory /* gruik */, 0)
vlc_module_begin ()
set_description( N_("core program") )

Loading…
Cancel
Save