X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_plugin.h;h=c1a150ecbc1b180530d13a5af353b6b70aaff9a9;hb=5995ceeb4cd344894f24bfd9402e18972fd5adca;hp=9854dd2c3fd85bced5d3b4a8ec305e8ccb647a72;hpb=17b5ee09d8f74c1e0a7d1d6c1610b6078075ac3b;p=vlc diff --git a/include/vlc_plugin.h b/include/vlc_plugin.h index 9854dd2c3f..c1a150ecbc 100644 --- a/include/vlc_plugin.h +++ b/include/vlc_plugin.h @@ -120,8 +120,8 @@ enum vlc_module_properties /** * Current plugin ABI version */ -# define MODULE_SYMBOL 1_1_0e -# define MODULE_SUFFIX "__1_1_0e" +# define MODULE_SYMBOL 1_2_0b +# define MODULE_SUFFIX "__1_2_0b" /***************************************************************************** * Add a few defines. You do not want to read this section. Really. @@ -195,14 +195,9 @@ enum vlc_module_properties if (vlc_plugin_set (p_module, NULL, VLC_SUBMODULE_CREATE, &p_submodule)) \ goto error; -#define add_requirement( cap ) \ - if (vlc_module_set (p_module, VLC_MODULE_CPU_REQUIREMENT, \ - (int)(CPU_CAPABILITY_##cap))) \ - goto error; - -#define add_shortcut( shortcut ) \ +#define add_shortcut( ... ) \ if (vlc_module_set (p_submodule, VLC_MODULE_SHORTCUT, \ - (const char *)(shortcut))) \ + sizeof((const char*[]){__VA_ARGS__})/sizeof(const char*), __VA_ARGS__)) \ goto error; #define set_shortname( shortname ) \ @@ -231,7 +226,7 @@ enum vlc_module_properties || vlc_module_set (p_submodule, VLC_MODULE_CB_CLOSE, deactivate)) \ goto error; -#define linked_with_a_crap_library_which_uses_atexit( ) \ +#define cannot_unload_broken_library( ) \ if (vlc_module_set (p_submodule, VLC_MODULE_NO_UNLOAD)) \ goto error; @@ -347,17 +342,11 @@ enum vlc_module_properties add_int_inner( CONFIG_ITEM_INTEGER, name, text, longtext, advc, \ p_callback, value ) -#if !defined(WIN32) && !defined(SYS_LINUX) -#define add_key( name, value, p_callback, text, longtext, advc ) \ - add_int_inner( CONFIG_ITEM_KEY, name, text, longtext, advc, p_callback, \ - value ) -#else #define add_key( name, value, p_callback, text, longtext, advc ) \ add_int_inner( CONFIG_ITEM_KEY, name, text, longtext, advc, \ p_callback, value ) \ add_int_inner( CONFIG_ITEM_KEY, "global-" name, text, longtext, advc, \ p_callback, KEY_UNSET ) -#endif #define add_integer_with_range( name, value, i_min, i_max, p_callback, text, longtext, advc ) \ add_integer( name, value, p_callback, text, longtext, advc ) \ @@ -428,16 +417,19 @@ enum vlc_module_properties vlc_config_set (p_config, VLC_CONFIG_ADD_ACTION, \ (vlc_callback_t)(pf_action), (const char *)(text)); -#define change_internal() \ - vlc_config_set (p_config, VLC_CONFIG_PRIVATE); - #define change_need_restart() \ vlc_config_set (p_config, VLC_CONFIG_RESTART); #define change_autosave() \ vlc_config_set (p_config, VLC_CONFIG_PERSISTENT); -#define change_unsaveable() \ +/* For options that are saved but hidden from the preferences panel */ +#define change_private() \ + vlc_config_set (p_config, VLC_CONFIG_PRIVATE); + +/* For options that cannot be saved in the configuration */ +#define change_volatile() \ + change_private() \ vlc_config_set (p_config, VLC_CONFIG_VOLATILE); #define change_safe() \