[vlc-commits] config: remove advanced from add_category_hint()

Rémi Denis-Courmont git at videolan.org
Tue Apr 24 20:42:24 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Apr 24 21:01:54 2018 +0300| [85a0ba10f7287e9dda57ba63fd54cb7a1266f9b4] | committer: Rémi Denis-Courmont

config: remove advanced from add_category_hint()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=85a0ba10f7287e9dda57ba63fd54cb7a1266f9b4
---

 include/vlc_plugin.h    |  2 +-
 modules/demux/mp4/mp4.c |  2 +-
 src/libvlc-module.c     | 20 ++++++++++----------
 3 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/include/vlc_plugin.h b/include/vlc_plugin.h
index 60fb077dc3..7cfcd625b7 100644
--- a/include/vlc_plugin.h
+++ b/include/vlc_plugin.h
@@ -361,7 +361,7 @@ VLC_METADATA_EXPORTS
 #define set_section( text, longtext ) \
     add_typedesc_inner( CONFIG_SECTION, text, longtext )
 
-#define add_category_hint( text, longtext, advc ) \
+#define add_category_hint(text, longtext) \
     add_typedesc_inner( CONFIG_HINT_CATEGORY, text, longtext )
 
 #define add_usage_hint( text ) \
diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index f1adc2de30..105ca72d55 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -64,7 +64,7 @@ vlc_module_begin ()
     set_capability( "demux", 240 )
     set_callbacks( Open, Close )
 
-    add_category_hint("Hacks", NULL, true)
+    add_category_hint("Hacks", NULL)
     add_bool( CFG_PREFIX"m4a-audioonly", false, MP4_M4A_TEXT, MP4_M4A_LONGTEXT, true )
 
     add_submodule()
diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index e4a290e0f5..13d95fcc40 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -1467,7 +1467,7 @@ static const char *const mouse_wheel_texts[] = {
 /*
  * Quick usage guide for the configuration options:
  *
- * add_category_hint( N_(text), N_(longtext), b_advanced_option )
+ * add_category_hint(N_(text), N_(longtext))
  * add_usage_hint( N_(text), b_advanced_option )
  * add_string( option_name, value, N_(text), N_(longtext),
                b_advanced_option )
@@ -1485,7 +1485,7 @@ vlc_module_begin ()
 /* Audio options */
     set_category( CAT_AUDIO )
     set_subcategory( SUBCAT_AUDIO_GENERAL )
-    add_category_hint( N_("Audio"), AOUT_CAT_LONGTEXT , false )
+    add_category_hint(N_("Audio"), AOUT_CAT_LONGTEXT)
 
     add_bool( "audio", 1, AUDIO_TEXT, AUDIO_LONGTEXT, false )
         change_safe ()
@@ -1548,7 +1548,7 @@ vlc_module_begin ()
 /* Video options */
     set_category( CAT_VIDEO )
     set_subcategory( SUBCAT_VIDEO_GENERAL )
-    add_category_hint( N_("Video"), VOUT_CAT_LONGTEXT , false )
+    add_category_hint(N_("Video"), VOUT_CAT_LONGTEXT)
 
     add_bool( "video", 1, VIDEO_TEXT, VIDEO_LONGTEXT, true )
         change_safe ()
@@ -1672,7 +1672,7 @@ vlc_module_begin ()
 /* Subpictures options */
     set_subcategory( SUBCAT_VIDEO_SUBPIC )
     set_section( N_("On Screen Display") , NULL )
-    add_category_hint( N_("Subpictures"), SUB_CAT_LONGTEXT , false )
+    add_category_hint(N_("Subpictures"), SUB_CAT_LONGTEXT)
 
     add_bool( "spu", 1, SPU_TEXT, SPU_LONGTEXT, false )
         change_safe ()
@@ -1934,14 +1934,14 @@ vlc_module_begin ()
 
 /* Decoder options */
     set_subcategory( SUBCAT_INPUT_VCODEC )
-    add_category_hint( N_("Decoders"), CODEC_CAT_LONGTEXT , true )
+    add_category_hint(N_("Decoders"), CODEC_CAT_LONGTEXT)
     add_string( "codec", NULL, CODEC_TEXT,
                 CODEC_LONGTEXT, true )
     add_string( "encoder",  NULL, ENCODER_TEXT,
                 ENCODER_LONGTEXT, true )
 
     set_subcategory( SUBCAT_INPUT_ACCESS )
-    add_category_hint( N_("Input"), INPUT_CAT_LONGTEXT , false )
+    add_category_hint(N_("Input"), INPUT_CAT_LONGTEXT)
     add_module( "access", "access", NULL, ACCESS_TEXT, ACCESS_LONGTEXT, true )
 
     set_subcategory( SUBCAT_INPUT_DEMUX )
@@ -1959,7 +1959,7 @@ vlc_module_begin ()
 /* Stream output options */
     set_category( CAT_SOUT )
     set_subcategory( SUBCAT_SOUT_GENERAL )
-    add_category_hint( N_("Stream output"), SOUT_CAT_LONGTEXT , true )
+    add_category_hint(N_("Stream output"), SOUT_CAT_LONGTEXT)
 
     add_string( "sout", NULL, SOUT_TEXT, SOUT_LONGTEXT, true )
     add_bool( "sout-display", false, SOUT_DISPLAY_TEXT,
@@ -2024,7 +2024,7 @@ vlc_module_begin ()
 /* Misc options */
     set_subcategory( SUBCAT_ADVANCED_MISC )
     set_section( N_("Special modules"), NULL )
-    add_category_hint( N_("Miscellaneous"), MISC_CAT_LONGTEXT, true )
+    add_category_hint(N_("Miscellaneous"), MISC_CAT_LONGTEXT)
     add_module( "vod-server", "vod server", NULL, VOD_SERVER_TEXT,
                 VOD_SERVER_LONGTEXT, true )
 
@@ -2067,7 +2067,7 @@ vlc_module_begin ()
 /* Playlist options */
     set_category( CAT_PLAYLIST )
     set_subcategory( SUBCAT_PLAYLIST_GENERAL )
-    add_category_hint( N_("Playlist"), PLAYLIST_CAT_LONGTEXT , false )
+    add_category_hint(N_("Playlist"), PLAYLIST_CAT_LONGTEXT)
     add_bool( "random", 0, RANDOM_TEXT, RANDOM_LONGTEXT, false )
         change_short('Z')
         change_safe()
@@ -2175,7 +2175,7 @@ vlc_module_begin ()
 
 /* Hotkey options*/
     set_subcategory( SUBCAT_INTERFACE_HOTKEYS )
-    add_category_hint( N_("Hot keys"), HOTKEY_CAT_LONGTEXT , false )
+    add_category_hint(N_("Hot keys"), HOTKEY_CAT_LONGTEXT)
 
     add_integer( "hotkeys-y-wheel-mode", 0, MOUSE_Y_WHEEL_MODE_TEXT,
                  MOUSE_Y_WHEEL_MODE_LONGTEXT, false )



More information about the vlc-commits mailing list