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

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


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

config: remove advanced from add_savefile()

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

 include/vlc_plugin.h        | 2 +-
 modules/audio_output/file.c | 3 +--
 modules/demux/demuxdump.c   | 4 ++--
 modules/keystore/file.c     | 2 +-
 modules/logger/file.c       | 3 +--
 5 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/include/vlc_plugin.h b/include/vlc_plugin.h
index 731bf1c45e..015ea817ea 100644
--- a/include/vlc_plugin.h
+++ b/include/vlc_plugin.h
@@ -376,7 +376,7 @@ VLC_METADATA_EXPORTS
 #define add_loadfile(name, value, text, longtext) \
     add_string_inner(CONFIG_ITEM_LOADFILE, name, text, longtext, value)
 
-#define add_savefile( name, value, text, longtext, advc ) \
+#define add_savefile(name, value, text, longtext) \
     add_string_inner(CONFIG_ITEM_SAVEFILE, name, text, longtext, value)
 
 #define add_directory( name, value, text, longtext, advc ) \
diff --git a/modules/audio_output/file.c b/modules/audio_output/file.c
index 6c6c59cfb4..61232d055f 100644
--- a/modules/audio_output/file.c
+++ b/modules/audio_output/file.c
@@ -114,8 +114,7 @@ vlc_module_begin ()
     set_category( CAT_AUDIO )
     set_subcategory( SUBCAT_AUDIO_AOUT )
 
-    add_savefile( "audiofile-file", "audiofile.wav", FILE_TEXT,
-                  FILE_LONGTEXT, false )
+    add_savefile("audiofile-file", "audiofile.wav", FILE_TEXT, FILE_LONGTEXT)
     add_string( "audiofile-format", "s16",
                 FORMAT_TEXT, FORMAT_TEXT, true )
         change_string_list( format_list, format_list )
diff --git a/modules/demux/demuxdump.c b/modules/demux/demuxdump.c
index bccfe90659..2bd04884e1 100644
--- a/modules/demux/demuxdump.c
+++ b/modules/demux/demuxdump.c
@@ -48,8 +48,8 @@ vlc_module_begin ()
     set_capability( "demux", 0 )
     add_module( "demuxdump-access", "sout access", "file", ACCESS_TEXT,
                 ACCESS_TEXT, true )
-    add_savefile( "demuxdump-file", "stream-demux.dump", FILE_TEXT,
-                  FILE_LONGTEXT, false )
+    add_savefile("demuxdump-file", "stream-demux.dump",
+                 FILE_TEXT, FILE_LONGTEXT)
     add_bool( "demuxdump-append", false, APPEND_TEXT, APPEND_LONGTEXT,
               false )
     set_callbacks( Open, Close )
diff --git a/modules/keystore/file.c b/modules/keystore/file.c
index 4c014831ad..ae37575422 100644
--- a/modules/keystore/file.c
+++ b/modules/keystore/file.c
@@ -55,7 +55,7 @@ vlc_module_begin()
     set_category(CAT_ADVANCED)
     set_subcategory(SUBCAT_ADVANCED_MISC)
     set_callbacks(Open, Close)
-    add_savefile("keystore-file", NULL, NULL, NULL, true)
+    add_savefile("keystore-file", NULL, NULL, NULL)
         change_private()
     set_capability("keystore", 0)
     add_shortcut("file_plaintext")
diff --git a/modules/logger/file.c b/modules/logger/file.c
index 6b6dfd2973..b52caac34e 100644
--- a/modules/logger/file.c
+++ b/modules/logger/file.c
@@ -224,8 +224,7 @@ vlc_module_begin()
     set_callbacks(Open, Close)
 
     add_bool("file-logging", false, FILE_LOG_TEXT, FILE_LOG_LONGTEXT, false)
-    add_savefile("logfile", NULL,
-                 LOGFILE_NAME_TEXT, LOGFILE_NAME_LONGTEXT, false)
+    add_savefile("logfile", NULL, LOGFILE_NAME_TEXT, LOGFILE_NAME_LONGTEXT)
     add_string("logmode", "text", LOGMODE_TEXT, LOGMODE_LONGTEXT, false)
         change_string_list(mode_list, mode_list_text)
     add_integer("log-verbose", -1, LOGVERBOSE_TEXT, LOGVERBOSE_LONGTEXT, false)



More information about the vlc-commits mailing list