]> git.sesse.net Git - vlc/commitdiff
* include/configuration.h: added a new flag to the configuration stucture to
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Thu, 20 Feb 2003 01:52:47 +0000 (01:52 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Thu, 20 Feb 2003 01:52:47 +0000 (01:52 +0000)
indicate wether it is an "advanced" option or not. The goal with this is to
hide the user from all the strange options that very seldom needs to be
changed. added an extra argument to all the add_* macros to indicate wether
the item is advanced or not.
* src/libvlc.h: added an "show advanced options" config option default
disabled
* src/libvlc.c: the advanced options are not listed by vlc --help and
friends unless --advanced is used
* modules/gtk/preferences.c: the gtk/gnome preferences dialog don't show
advanced options unless advanced is set
all: set the advanced flag to VLC_FALSE or VLC_TRUE for all options, by
using some common sense. Please check and correct

note: All interfaces should still work like they used to, see the change in
modules/gtk/preferences.c to find out how to "hide" options.

second note: I think I've changed all the modules, but I could not test
everyone for compilation, expect some broken modules (the fix is to add ",
VLC_TRUE" as last argument to the add_* I forgot)

63 files changed:
configure.ac.in
include/configuration.h
modules/access/dvd/dvd.c
modules/access/dvdplay/dvd.c
modules/access/dvdread/dvdread.c
modules/access/file.c
modules/access/ftp.c
modules/access/http.c
modules/access/mms/mms.c
modules/access/satellite/satellite.c
modules/access/slp.c
modules/access/udp.c
modules/audio_filter/converter/a52tofloat32.c
modules/audio_filter/converter/mpgatofixed32.c
modules/audio_output/alsa.c
modules/audio_output/file.c
modules/audio_output/oss.c
modules/codec/a52old/a52old.c
modules/codec/ffmpeg/ffmpeg.c
modules/codec/mpeg_video/parser.c
modules/codec/spudec/spudec.c
modules/codec/xvid.c
modules/control/gestures.c
modules/control/rc/rc.c
modules/demux/avi/avi.c
modules/demux/demuxdump.c
modules/demux/mpeg/ts.c
modules/demux/util/id3.c
modules/demux/util/sub.c
modules/encoder/ffmpeg/encoder.c
modules/encoder/xvid.c
modules/gui/beos/BeOS.cpp
modules/gui/familiar/familiar.c
modules/gui/gtk/gnome.c
modules/gui/gtk/gtk.c
modules/gui/gtk/preferences.c
modules/gui/kde/interface.h
modules/gui/kde/kde.cpp
modules/gui/macosx/macosx.m
modules/gui/win32/win32.cpp
modules/gui/wxwindows/fileinfo.cpp
modules/gui/wxwindows/wxwindows.cpp
modules/misc/dummy/dummy.c
modules/misc/logger/logger.c
modules/misc/sap.c
modules/video_filter/adjust.c
modules/video_filter/clone.c
modules/video_filter/crop.c
modules/video_filter/deinterlace/deinterlace.c
modules/video_filter/distort.c
modules/video_filter/motionblur.c
modules/video_filter/transform.c
modules/video_filter/wall.c
modules/video_output/directx/directx.c
modules/video_output/fb.c
modules/video_output/ggi.c
modules/video_output/mga/xmga.c
modules/video_output/x11/x11.c
modules/video_output/x11/xvideo.c
modules/visualization/xosd/xosd.c
src/libvlc.c
src/libvlc.h
src/misc/configuration.c

index d183e86daf5c5e8c9dd4ef363549ea2daa02c40c..a4c70546cdde1c298dda683cef06506753c2144b 100644 (file)
@@ -1336,6 +1336,7 @@ then
     PLUGINS="${PLUGINS} ipv6"],[AC_MSG_RESULT(no)])
 fi
 
+        
 dnl
 dnl  AVI demux plugin
 dnl
@@ -1753,7 +1754,7 @@ then
     LDFLAGS_vorbis="${LDFLAGS_vorbis} -lvorbis -logg"
    ],[])
 fi
-
+         
 dnl
 dnl  Tremor plugin
 dnl
index 16e79169478b28efc3f365b1142e6eca03acb8d2..048acb5a115d1601e3842dcc7a8c6cee6858d327 100644 (file)
@@ -4,7 +4,7 @@
  * It includes functions allowing to declare, get or set configuration options.
  *****************************************************************************
  * Copyright (C) 1999, 2000 VideoLAN
- * $Id: configuration.h,v 1.23 2003/01/06 00:37:29 garf Exp $
+ * $Id: configuration.h,v 1.24 2003/02/20 01:52:45 sigmunau Exp $
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
  *
@@ -69,7 +69,7 @@ struct module_config_t
 
     vlc_mutex_t *p_lock;            /* Lock to use when modifying the config */
     vlc_bool_t   b_dirty;          /* Dirty flag to indicate a config change */
-
+    vlc_bool_t b_advanced;            /* Flag to indicate an advanced option */
 };
 
 /*****************************************************************************
@@ -119,8 +119,8 @@ VLC_EXPORT( void, config_UnsetCallbacks, ( module_config_t * ) );
  *   allow for a more user friendly interface.
  *****************************************************************************/
 
-#define add_category_hint( text, longtext ) \
-    { static module_config_t tmp = { CONFIG_HINT_CATEGORY, NULL, NULL, '\0', text, longtext }; p_config[ i_config ] = tmp; } i_config++
+#define add_category_hint( text, longtext, advc ) \
+    { static module_config_t tmp = { CONFIG_HINT_CATEGORY, NULL, NULL, '\0', text, longtext }; p_config[ i_config ] = tmp; p_config[i_config].b_advanced = advc; } i_config++
 #define add_subcategory_hint( text, longtext ) \
     { static module_config_t tmp = { CONFIG_HINT_SUBCATEGORY, NULL, NULL, '\0', text, longtext }; p_config[ i_config ] = tmp; } i_config++
 #define end_subcategory_hint \
@@ -128,38 +128,38 @@ VLC_EXPORT( void, config_UnsetCallbacks, ( module_config_t * ) );
 #define add_usage_hint( text ) \
     { static module_config_t tmp = { CONFIG_HINT_USAGE, NULL, NULL, '\0', text }; p_config[ i_config ] = tmp; } i_config++
 
-#define add_string( name, psz_value, p_callback, text, longtext ) \
-    { static module_config_t tmp = { CONFIG_ITEM_STRING, NULL, name, '\0', text, longtext, psz_value }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; } i_config++
+#define add_string( name, psz_value, p_callback, text, longtext, advc ) \
+    { static module_config_t tmp = { CONFIG_ITEM_STRING, NULL, name, '\0', text, longtext, psz_value }; tmp.b_advanced = advc; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; } i_config++
 #define add_string_from_list( name, psz_value, ppsz_list, p_callback, text, \
-      longtext ) \
-    { static module_config_t tmp = { CONFIG_ITEM_STRING, NULL, name, '\0', text, longtext, psz_value, 0, 0, 0, 0, 0, 0, NULL, ppsz_list }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; } i_config++
-#define add_file( name, psz_value, p_callback, text, longtext ) \
-    { static module_config_t tmp = { CONFIG_ITEM_FILE, NULL, name, '\0', text, longtext, psz_value, 0, 0 }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; } i_config++
-#define add_module( name, psz_caps, psz_value, p_callback, text, longtext ) \
-    { static module_config_t tmp = { CONFIG_ITEM_MODULE, psz_caps, name, '\0', text, longtext, psz_value }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; } i_config++
-#define add_integer( name, i_value, p_callback, text, longtext ) \
-    { static module_config_t tmp = { CONFIG_ITEM_INTEGER, NULL, name, '\0', text, longtext, NULL, i_value }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; } i_config++
-#define add_integer_with_range( name, i_value, i_min, i_max, p_callback, text, longtext ) \
-    { static module_config_t tmp = { CONFIG_ITEM_INTEGER, NULL, name, '\0', text, longtext, NULL, i_value, 0, i_min, i_max }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; } i_config++
-#define add_float( name, f_value, p_callback, text, longtext ) \
-    { static module_config_t tmp = { CONFIG_ITEM_FLOAT, NULL, name, '\0', text, longtext, NULL, 0, f_value }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; } i_config++
-#define add_float_with_range( name, f_value, f_min, f_max, p_callback, text, longtext ) \
-    { static module_config_t tmp = { CONFIG_ITEM_FLOAT, NULL, name, '\0', text, longtext, NULL, 0, f_value, 0, 0, f_min, f_max }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; } i_config++
-#define add_bool( name, b_value, p_callback, text, longtext ) \
-    { static module_config_t tmp = { CONFIG_ITEM_BOOL, NULL, name, '\0', text, longtext, NULL, b_value }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; } i_config++
+      longtext, advc ) \
+    { static module_config_t tmp = { CONFIG_ITEM_STRING, NULL, name, '\0', text, longtext, psz_value, 0, 0, 0, 0, 0, 0, NULL, ppsz_list }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; p_config[i_config].b_advanced = advc; } i_config++
+#define add_file( name, psz_value, p_callback, text, longtext, advc ) \
+    { static module_config_t tmp = { CONFIG_ITEM_FILE, NULL, name, '\0', text, longtext, psz_value, 0, 0 }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; p_config[i_config].b_advanced = advc; } i_config++
+#define add_module( name, psz_caps, psz_value, p_callback, text, longtext, advc ) \
+    { static module_config_t tmp = { CONFIG_ITEM_MODULE, psz_caps, name, '\0', text, longtext, psz_value }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; p_config[i_config].b_advanced = advc; } i_config++
+#define add_integer( name, i_value, p_callback, text, longtext, advc ) \
+    { static module_config_t tmp = { CONFIG_ITEM_INTEGER, NULL, name, '\0', text, longtext, NULL, i_value }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; p_config[i_config].b_advanced = advc; } i_config++
+#define add_integer_with_range( name, i_value, i_min, i_max, p_callback, text, longtext, advc ) \
+    { static module_config_t tmp = { CONFIG_ITEM_INTEGER, NULL, name, '\0', text, longtext, NULL, i_value, 0, i_min, i_max }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; p_config[i_config].b_advanced = advc; } i_config++
+#define add_float( name, f_value, p_callback, text, longtext, advc ) \
+    { static module_config_t tmp = { CONFIG_ITEM_FLOAT, NULL, name, '\0', text, longtext, NULL, 0, f_value }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; p_config[i_config].b_advanced = advc; } i_config++
+#define add_float_with_range( name, f_value, f_min, f_max, p_callback, text, longtext, advc ) \
+    { static module_config_t tmp = { CONFIG_ITEM_FLOAT, NULL, name, '\0', text, longtext, NULL, 0, f_value, 0, 0, f_min, f_max }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; p_config[i_config].b_advanced = advc; } i_config++
+#define add_bool( name, b_value, p_callback, text, longtext, advc ) \
+    { static module_config_t tmp = { CONFIG_ITEM_BOOL, NULL, name, '\0', text, longtext, NULL, b_value }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; p_config[i_config].b_advanced = advc; } i_config++
 
 /* These should be seldom used. They were added just to provide easy shortcuts
  * for the command line interface */
-#define add_string_with_short( name, ch, psz_value, p_callback, text, ltext ) \
-    { static module_config_t tmp = { CONFIG_ITEM_STRING, NULL, name, ch, text, ltext, psz_value }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; } i_config++
-#define add_file_with_short( name, ch, psz_value, p_callback, text, ltext ) \
-    { static module_config_t tmp = { CONFIG_ITEM_FILE, NULL, name, ch, text, ltext, psz_value }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; } i_config++
+#define add_string_with_short( name, ch, psz_value, p_callback, text, ltext, advc ) \
+    { static module_config_t tmp = { CONFIG_ITEM_STRING, NULL, name, ch, text, ltext, psz_value }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; p_config[i_config].b_advanced = advc; } i_config++
+#define add_file_with_short( name, ch, psz_value, p_callback, text, ltext, advc ) \
+    { static module_config_t tmp = { CONFIG_ITEM_FILE, NULL, name, ch, text, ltext, psz_value }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; p_config[i_config].b_advanced = advc; } i_config++
 #define add_module_with_short( name, ch, psz_caps, psz_value, p_callback, \
-    text, ltext) \
-    { static module_config_t tmp = { CONFIG_ITEM_MODULE, psz_caps, name, ch, text, ltext, psz_value }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; } i_config++
-#define add_integer_with_short( name, ch, i_value, p_callback, text, ltext ) \
-    { static module_config_t tmp = { CONFIG_ITEM_INTEGER, NULL, name, ch, text, ltext, NULL, i_value }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; } i_config++
-#define add_float_with_short( name, ch, f_value, p_callback, text, ltext ) \
-    { static module_config_t tmp = { CONFIG_ITEM_FLOAT, NULL, name, ch, text, ltext, NULL, 0, f_value }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; } i_config++
-#define add_bool_with_short( name, ch, b_value, p_callback, text, ltext ) \
-    { static module_config_t tmp = { CONFIG_ITEM_BOOL, NULL, name, ch, text, ltext, NULL, b_value }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; } i_config++
+    text, ltext, advc) \
+    { static module_config_t tmp = { CONFIG_ITEM_MODULE, psz_caps, name, ch, text, ltext, psz_value }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; p_config[i_config].b_advanced = advc; } i_config++
+#define add_integer_with_short( name, ch, i_value, p_callback, text, ltext, advc ) \
+    { static module_config_t tmp = { CONFIG_ITEM_INTEGER, NULL, name, ch, text, ltext, NULL, i_value }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; p_config[i_config].b_advanced = advc; } i_config++
+#define add_float_with_short( name, ch, f_value, p_callback, text, ltext, advc ) \
+    { static module_config_t tmp = { CONFIG_ITEM_FLOAT, NULL, name, ch, text, ltext, NULL, 0, f_value }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; p_config[i_config].b_advanced = advc;} i_config++
+#define add_bool_with_short( name, ch, b_value, p_callback, text, ltext, advc ) \
+    { static module_config_t tmp = { CONFIG_ITEM_BOOL, NULL, name, ch, text, ltext, NULL, b_value }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; p_config[i_config].b_advanced = advc;} i_config++
index 10b7e4cee939e2e05238d73a0d9e5c7e260c7652..a1b217e2995b216210197dfcc44a3efd0f4c63f3 100644 (file)
@@ -2,7 +2,7 @@
  * dvd.c : DVD input module for vlc
  *****************************************************************************
  * Copyright (C) 2000-2001 VideoLAN
- * $Id: dvd.c,v 1.4 2003/01/28 22:03:21 sam Exp $
+ * $Id: dvd.c,v 1.5 2003/02/20 01:52:45 sigmunau Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -83,9 +83,10 @@ static char *cssmethod_list[] = { "title", "disc", "key", NULL };
 
 vlc_module_begin();
     int i;
-    add_category_hint( N_("[dvd:][device][@raw_device][@[title][,[chapter][,angle]]]"), NULL );
+    add_usage_hint( N_("[dvd:][device][@raw_device][@[title][,[chapter][,angle]]]") );
+    add_category_hint( N_("dvd"), NULL, VLC_TRUE );
     add_string_from_list( "dvdcss-method", NULL, cssmethod_list, NULL,
-                          CSSMETHOD_TEXT, CSSMETHOD_LONGTEXT );
+                          CSSMETHOD_TEXT, CSSMETHOD_LONGTEXT, VLC_TRUE );
 #ifdef GOD_DAMN_DMCA
     set_description( _("DVD input module, uses libdvdcss if installed") );
     i = 90;
index 28aa113884a440289dcd7a6f01ce64c0dabe8f2b..60857f7a5609a45100c685bf9ddb625d76124f22 100644 (file)
@@ -7,7 +7,7 @@
  *****************************************************************************
  *    
  * Copyright (C) 2001 VideoLAN
- * $Id: dvd.c,v 1.1 2002/08/04 17:23:42 sam Exp $
+ * $Id: dvd.c,v 1.2 2003/02/20 01:52:45 sigmunau Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -48,7 +48,8 @@ void E_(CloseIntf) ( vlc_object_t * );
  * Module descriptor
  *****************************************************************************/
 vlc_module_begin();
-    add_category_hint( "[dvdplay:][device][@[title][,[chapter][,angle]]]", NULL );
+    add_usage_hint( "[dvdplay:][device][@[title][,[chapter][,angle]]]" );
+    add_category_hint( "dvd", NULL, VLC_TRUE );
     set_description( "dvdplay input module" );
     add_submodule();
         set_capability( "access", 120 );
index 2a7ddf2095209a59911409d892ed21da43b7af90..0e614e8dd831650492168563a1807392e2668046 100644 (file)
@@ -2,7 +2,7 @@
  * dvdread.c : DvdRead input module for vlc
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: dvdread.c,v 1.3 2003/01/23 09:58:02 sam Exp $
+ * $Id: dvdread.c,v 1.4 2003/02/20 01:52:45 sigmunau Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -42,7 +42,7 @@ void E_(EndDVD)    ( vlc_object_t * );
  * Module descriptor
  *****************************************************************************/
 vlc_module_begin();
-    add_category_hint( "[dvdread:][device][@[title][,[chapter][,angle]]]", NULL );
+    add_category_hint( "[dvdread:][device][@[title][,[chapter][,angle]]]", NULL, VLC_TRUE );
     set_description( _("DVDRead input module") );
     add_submodule();
         set_capability( "access", 110 );
index e813366e42837ad8538003aaef9837c5098c2e27..6c50e803d71d65ab0cd3f3004ff861215a2d65da 100644 (file)
@@ -2,7 +2,7 @@
  * file.c: file input (file: access plug-in)
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: file.c,v 1.10 2003/02/08 22:20:28 massiot Exp $
+ * $Id: file.c,v 1.11 2003/02/20 01:52:45 sigmunau Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *
@@ -67,8 +67,8 @@ static ssize_t Read   ( input_thread_t *, byte_t *, size_t );
 
 vlc_module_begin();
     set_description( _("Standard filesystem file reading") );
-    add_category_hint( N_("file"), NULL );
-    add_integer( "file-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT );
+    add_category_hint( N_("file"), NULL, VLC_TRUE );
+    add_integer( "file-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE );
     set_capability( "access", 50 );
     add_shortcut( "file" );
     add_shortcut( "stream" );
index 3f048ad3c9dd56150e4e80f4d82b67ab363cd804..588be58aa8ac6a16d1dc137e6f328b77a20523ea 100644 (file)
@@ -2,7 +2,7 @@
  * ftp.c:
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: ftp.c,v 1.7 2003/02/07 23:36:55 marcari Exp $
+ * $Id: ftp.c,v 1.8 2003/02/20 01:52:45 sigmunau Exp $
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *
@@ -94,12 +94,12 @@ static int  ftp_StopStream ( input_thread_t *);
 vlc_module_begin();
     set_description( _("ftp access module") );
     set_capability( "access", 0 );
-    add_category_hint( "stream", NULL );
+    add_category_hint( "stream", NULL, VLC_FALSE );
         add_integer( "ftp-caching", 2 * DEFAULT_PTS_DELAY / 1000, NULL,
-                     CACHING_TEXT, CACHING_LONGTEXT );
-        add_string( "ftp-user", "anonymous", NULL, "ftp user name", "ftp user name" );
-        add_string( "ftp-pwd", "anonymous@dummy.org", NULL, "ftp password", "ftp password, be careful with that option..." );
-        add_string( "ftp-account", "anonymous", NULL, "ftp account", "ftp account" );
+                     CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE );
+        add_string( "ftp-user", "anonymous", NULL, "ftp user name", "ftp user name", VLC_FALSE );
+        add_string( "ftp-pwd", "anonymous@dummy.org", NULL, "ftp password", "ftp password, be careful with that option...", VLC_FALSE );
+        add_string( "ftp-account", "anonymous", NULL, "ftp account", "ftp account", VLC_FALSE );
     add_shortcut( "ftp" );
     set_callbacks( Open, Close );
 vlc_module_end();
index 5bac482d6bd3ee9573dcddef5c18d30f1b4f3c76..1c6962dceb1069852ac8cd8ea77e91fffa239149 100644 (file)
@@ -2,7 +2,7 @@
  * http.c: HTTP access plug-in
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: http.c,v 1.23 2003/02/08 19:10:20 massiot Exp $
+ * $Id: http.c,v 1.24 2003/02/20 01:52:45 sigmunau Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *
@@ -87,9 +87,9 @@ static ssize_t Read    ( input_thread_t *, byte_t *, size_t );
     "value should be set in miliseconds units." )
 
 vlc_module_begin();
-    add_category_hint( N_("http"), NULL );
-    add_string( "http-proxy", NULL, NULL, PROXY_TEXT, PROXY_LONGTEXT );
-    add_integer( "http-caching", 4 * DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT );
+    add_category_hint( N_("http"), NULL, VLC_FALSE );
+    add_string( "http-proxy", NULL, NULL, PROXY_TEXT, PROXY_LONGTEXT, VLC_FALSE );
+    add_integer( "http-caching", 4 * DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE );
     set_description( _("HTTP access module") );
     set_capability( "access", 0 );
     add_shortcut( "http" );
index 861d8e7964bb2a07b030d761c5cf55b3b9e8b02f..4469e81c2ab929d512e61a8f05fe9c51644c337d 100644 (file)
@@ -2,7 +2,7 @@
  * mms.c: MMS access plug-in
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: mms.c,v 1.18 2003/02/07 23:36:55 marcari Exp $
+ * $Id: mms.c,v 1.19 2003/02/20 01:52:45 sigmunau Exp $
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *
@@ -134,20 +134,20 @@ static void mms_ParseURL( url_t *p_url, char *psz_url );
 vlc_module_begin();
     set_description( _("MMS access module") );
     set_capability( "access", 0 );
-    add_category_hint( "stream", NULL );
+    add_category_hint( "stream", NULL, VLC_TRUE );
         add_integer( "mms-caching", 4 * DEFAULT_PTS_DELAY / 1000, NULL,
-                     CACHING_TEXT, CACHING_LONGTEXT );
+                     CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE );
 
         add_bool( "mms-all", 0, NULL,
                   "force selection of all streams",
-                  "force selection of all streams" );
+                  "force selection of all streams", VLC_TRUE );
 
         add_string( "mms-stream", NULL, NULL,
                     "streams selection",
-                    "force this stream selection" );
+                    "force this stream selection", VLC_TRUE );
         add_integer( "mms-maxbitrate", 0, NULL,
                      "max bitrate",
-                     "set max bitrate for auto streams selections" );
+                     "set max bitrate for auto streams selections", VLC_FALSE );
     add_shortcut( "mms" );
     add_shortcut( "mmsu" );
     add_shortcut( "mmst" );
index 87c8496de62ef5e48b774636ca23001cf77ec42d..4b59acd4cf0f496b403b5ad6c264325c0fae4783 100644 (file)
@@ -63,18 +63,21 @@ void E_(Close)   ( vlc_object_t * );
 #define LNB_SLOF_LONGTEXT ""
 
 vlc_module_begin();
-    add_category_hint( N_("Input"), NULL );
-        add_integer( "frequency", 11954, NULL, FREQ_TEXT, FREQ_LONGTEXT );
-        add_integer( "polarization", 0, NULL, POL_TEXT, POL_LONGTEXT );
-        add_integer( "fec", 3, NULL, FEC_TEXT, FEC_LONGTEXT );
-        add_integer( "symbol-rate", 27500, NULL, SRATE_TEXT, SRATE_LONGTEXT );
-        add_bool( "diseqc", 0, NULL, DISEQC_TEXT, DISEQC_LONGTEXT );
+    add_category_hint( N_("Input"), NULL, VLC_FALSE );
+        add_integer( "frequency", 11954, NULL, FREQ_TEXT, FREQ_LONGTEXT,
+                     VLC_FALSE );
+        add_integer( "polarization", 0, NULL, POL_TEXT, POL_LONGTEXT,
+                     VLC_FALSE );
+        add_integer( "fec", 3, NULL, FEC_TEXT, FEC_LONGTEXT, VLC_FALSE );
+        add_integer( "symbol-rate", 27500, NULL, SRATE_TEXT, SRATE_LONGTEXT,
+                     VLC_FALSE );
+        add_bool( "diseqc", 0, NULL, DISEQC_TEXT, DISEQC_LONGTEXT, VLC_FALSE );
         add_integer( "lnb-lof1", 10000, NULL,
-                     LNB_LOF1_TEXT, LNB_LOF1_LONGTEXT );
+                     LNB_LOF1_TEXT, LNB_LOF1_LONGTEXT, VLC_FALSE );
         add_integer( "lnb-lof2", 10000, NULL,
-                     LNB_LOF2_TEXT, LNB_LOF2_LONGTEXT );
+                     LNB_LOF2_TEXT, LNB_LOF2_LONGTEXT, VLC_FALSE );
         add_integer( "lnb-slof", 11700, NULL,
-                     LNB_SLOF_TEXT, LNB_SLOF_LONGTEXT );
+                     LNB_SLOF_TEXT, LNB_SLOF_LONGTEXT, VLC_FALSE );
     set_description( _("satellite input module") );
     set_capability( "access", 0 );
     add_shortcut( "sat" );
index 908cab96bbaef55bd02ddb5714a5d3b96e92b80c..45cc05cb3f2953080d34e854b4e2c812ae94afc8 100644 (file)
@@ -2,7 +2,7 @@
  * slp.c: SLP access plugin
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: slp.c,v 1.7 2003/01/22 16:16:27 lool Exp $
+ * $Id: slp.c,v 1.8 2003/02/20 01:52:45 sigmunau Exp $
  *
  * Authors: Loïc Minier <lool@videolan.org>
  *
@@ -76,14 +76,14 @@ static int  Demux ( input_thread_t * );
 
 vlc_module_begin();
     set_description( _("SLP access module") );
-    add_category_hint( N_("slp"), NULL );
-    add_string( "slp-attrids", "", NULL, ATTRIDS_TEXT, ATTRIDS_LONGTEXT );
+    add_category_hint( N_("slp"), NULL, VLC_TRUE );
+    add_string( "slp-attrids", "", NULL, ATTRIDS_TEXT, ATTRIDS_LONGTEXT, VLC_TRUE );
     add_string( "slp-scopelist", "", NULL, SCOPELIST_TEXT,
-                SCOPELIST_LONGTEXT );
+                SCOPELIST_LONGTEXT, VLC_TRUE );
     add_string( "slp-namingauthority", "*", NULL, NAMINGAUTHORITY_TEXT,
-                NAMINGAUTHORITY_LONGTEXT );
-    add_string( "slp-filter", "", NULL, FILTER_TEXT, FILTER_LONGTEXT );
-    add_string( "slp-lang", "", NULL, LANG_TEXT, LANG_LONGTEXT );
+                NAMINGAUTHORITY_LONGTEXT, VLC_TRUE );
+    add_string( "slp-filter", "", NULL, FILTER_TEXT, FILTER_LONGTEXT, VLC_TRUE );
+    add_string( "slp-lang", "", NULL, LANG_TEXT, LANG_LONGTEXT, VLC_TRUE );
     add_submodule();
         set_capability( "access", 0 );
         set_callbacks( Open, Close );
index 47a01a36e459a78fb6ecdad1e2bd98496dae23d1..03d5989102fac7bba5685fd56c6b44b2b93a6b91 100644 (file)
@@ -2,7 +2,7 @@
  * udp.c: raw UDP & RTP access plug-in
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: udp.c,v 1.13 2003/02/12 13:42:43 massiot Exp $
+ * $Id: udp.c,v 1.14 2003/02/20 01:52:45 sigmunau Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *          Tristan Leteurtre <tooney@via.ecp.fr>
@@ -79,8 +79,8 @@ static ssize_t RTPChoose( input_thread_t *, byte_t *, size_t );
 
 vlc_module_begin();
     set_description( _("raw UDP access module") );
-    add_category_hint( N_("udp"), NULL );
-    add_integer( "udp-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT );
+    add_category_hint( N_("udp"), NULL , VLC_TRUE );
+    add_integer( "udp-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE );
     set_capability( "access", 0 );
     add_shortcut( "udp" );
     add_shortcut( "udpstream" );
index 7c0f3d3cdf56fd30d69e3b5e84c144d892db99b3..3d21801e3fb61fdedb41ce3a591807c4c6f8cdc1 100644 (file)
@@ -4,7 +4,7 @@
  *   (http://liba52.sf.net/).
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: a52tofloat32.c,v 1.12 2003/01/22 18:31:47 massiot Exp $
+ * $Id: a52tofloat32.c,v 1.13 2003/02/20 01:52:45 sigmunau Exp $
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
  *          Christophe Massiot <massiot@via.ecp.fr>
@@ -82,8 +82,8 @@ struct aout_filter_sys_t
     "listening room.")
 
 vlc_module_begin();
-    add_category_hint( N_("Miscellaneous"), NULL );
-    add_bool( "a52-dynrng", 1, NULL, DYNRNG_TEXT, DYNRNG_LONGTEXT );
+    add_category_hint( N_("Miscellaneous"), NULL, VLC_FALSE );
+    add_bool( "a52-dynrng", 1, NULL, DYNRNG_TEXT, DYNRNG_LONGTEXT, VLC_FALSE );
     set_description( _("ATSC A/52 aka AC-3 audio decoder module") );
     set_capability( "audio filter", 100 );
     set_callbacks( Create, Destroy );
index d3f7638263295c242be9f053a845d2f0e17a1178..aa2ddc46f088de128ec40da30b9f7ecd881b8db5 100644 (file)
@@ -3,7 +3,7 @@
  * using MAD (MPEG Audio Decoder)
  *****************************************************************************
  * Copyright (C) 2001 by Jean-Paul Saman
- * $Id: mpgatofixed32.c,v 1.3 2003/01/20 17:52:26 massiot Exp $
+ * $Id: mpgatofixed32.c,v 1.4 2003/02/20 01:52:45 sigmunau Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *          Jean-Paul Saman <jpsaman@wxs.nl>
@@ -57,7 +57,7 @@ struct aout_filter_sys_t
  * Module descriptor
  *****************************************************************************/
 vlc_module_begin();
-    add_category_hint( N_("Miscellaneous"), NULL );
+    add_category_hint( N_("Miscellaneous"), NULL, VLC_TRUE );
     set_description( _("MPEG audio decoder module") );
     set_capability( "audio filter", 100 );
     set_callbacks( Create, Destroy );
index 79adf8ed2e834fe358bf7441c967a58243f1b528..cf7bb369ba321f56ee553a0fb1d8b9e7ebd3fabc 100644 (file)
@@ -2,7 +2,7 @@
  * alsa.c : alsa plugin for vlc
  *****************************************************************************
  * Copyright (C) 2000-2001 VideoLAN
- * $Id: alsa.c,v 1.22 2003/02/10 17:43:21 massiot Exp $
+ * $Id: alsa.c,v 1.23 2003/02/20 01:52:45 sigmunau Exp $
  *
  * Authors: Henri Fallon <henri@videolan.org> - Original Author
  *          Jeffrey Baker <jwbaker@acm.org> - Port to ALSA 1.0 API
@@ -94,10 +94,10 @@ static void ALSAFill     ( aout_instance_t * );
     "and permanently selects analog PCM output." )
 
 vlc_module_begin();
-    add_category_hint( N_("ALSA"), NULL );
+    add_category_hint( N_("ALSA"), NULL, VLC_FALSE );
     add_string( "alsadev", DEFAULT_ALSA_DEVICE, aout_FindAndRestart,
-                N_("ALSA device name"), NULL );
-    add_bool( "spdif", 1, NULL, SPDIF_TEXT, SPDIF_LONGTEXT );
+                N_("ALSA device name"), NULL, VLC_FALSE );
+    add_bool( "spdif", 1, NULL, SPDIF_TEXT, SPDIF_LONGTEXT, VLC_FALSE );
     set_description( _("ALSA audio module") );
     set_capability( "audio output", 50 );
     set_callbacks( Open, Close );
index 1c948bf068c3f9d9a8dd9acad0860c79493384b1..a3f2e24e53583f23a3ba18802dd65cd430fc4b32 100644 (file)
@@ -2,7 +2,7 @@
  * file.c : audio output which writes the samples to a file
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: file.c,v 1.15 2003/02/08 19:10:20 massiot Exp $
+ * $Id: file.c,v 1.16 2003/02/20 01:52:45 sigmunau Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *          Gildas Bazin <gbazin@netcourrier.com>
@@ -105,12 +105,12 @@ static int format_int[] = { VLC_FOURCC('u','8',' ',' '),
 #define PATH_LONGTEXT N_("By default samples.raw")
 
 vlc_module_begin();
-    add_category_hint( N_("Audio"), NULL );
+    add_category_hint( N_("Audio"), NULL, VLC_FALSE );
     add_string_from_list( "audiofile-format", "s16", format_list, NULL,
-                          FORMAT_TEXT, FORMAT_LONGTEXT );
+                          FORMAT_TEXT, FORMAT_LONGTEXT, VLC_TRUE );
     add_string( "audiofile-path", "audiofile.wav", NULL, PATH_TEXT,
-                PATH_LONGTEXT );
-    add_bool( "audiofile-wav", 1, NULL, WAV_TEXT, WAV_LONGTEXT );
+                PATH_LONGTEXT, VLC_FALSE );
+    add_bool( "audiofile-wav", 1, NULL, WAV_TEXT, WAV_LONGTEXT, VLC_TRUE );
     set_description( _("file audio output module") );
     set_capability( "audio output", 0 );
     add_shortcut( "file" );
index 8d7005e9749b4dbbdde8d9f047b0cd9254e60eb5..ba9befc42b08084f462b9a63ee86c71b9d3ce09a 100644 (file)
@@ -2,7 +2,7 @@
  * oss.c : OSS /dev/dsp module for vlc
  *****************************************************************************
  * Copyright (C) 2000-2002 VideoLAN
- * $Id: oss.c,v 1.51 2003/02/10 17:43:21 massiot Exp $
+ * $Id: oss.c,v 1.52 2003/02/20 01:52:45 sigmunau Exp $
  *
  * Authors: Michel Kaempf <maxx@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -112,11 +112,11 @@ static mtime_t BufferDuration( aout_instance_t * p_aout );
     "and permanently selects analog PCM output." )
 
 vlc_module_begin();
-    add_category_hint( N_("OSS"), NULL );
+    add_category_hint( N_("OSS"), NULL, VLC_FALSE );
     add_file( "dspdev", "/dev/dsp", aout_FindAndRestart,
-              N_("OSS dsp device"), NULL );
-    add_bool( "oss-buggy", 0, NULL, BUGGY_TEXT, BUGGY_LONGTEXT );
-    add_bool( "spdif", 1, NULL, SPDIF_TEXT, SPDIF_LONGTEXT );
+              N_("OSS dsp device"), NULL, VLC_FALSE );
+    add_bool( "oss-buggy", 0, NULL, BUGGY_TEXT, BUGGY_LONGTEXT, VLC_TRUE );
+    add_bool( "spdif", 1, NULL, SPDIF_TEXT, SPDIF_LONGTEXT, VLC_FALSE );
     set_description( _("Linux OSS /dev/dsp module") );
     set_capability( "audio output", 100 );
     add_shortcut( "oss" );
index 5c917651be36102b837e4de1b8ee66da5cd48864..2a516e00cf4bcd49e201e5c92283d3cfbb21701b 100644 (file)
@@ -2,7 +2,7 @@
  * a52old.c: A52 decoder module main file
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: a52old.c,v 1.8 2002/10/27 16:58:14 gbazin Exp $
+ * $Id: a52old.c,v 1.9 2003/02/20 01:52:45 sigmunau Exp $
  *
  * Authors: Michel Lespinasse <walken@zoy.org>
  *
@@ -56,11 +56,11 @@ static void BitstreamCallback ( bit_stream_t *, vlc_bool_t );
  * Module descriptor
  *****************************************************************************/
 vlc_module_begin();
-    add_category_hint( N_("Miscellaneous"), NULL );
+    add_category_hint( N_("Miscellaneous"), NULL, VLC_TRUE );
     add_module  ( "a52-downmix", "downmix", NULL, NULL,
-                  N_("A52 downmix module"), NULL );
+                  N_("A52 downmix module"), NULL, VLC_TRUE );
     add_module  ( "a52-imdct", "imdct", NULL, NULL,
-                  N_("A52 IMDCT module"), NULL );
+                  N_("A52 IMDCT module"), NULL, VLC_TRUE );
     set_description( _("software A52 decoder") );
     set_capability( "decoder", 50 );
     set_callbacks( OpenDecoder, NULL );
index e2fb21999d5e2e3fbf23820c295dda34ccc57687..5e900769a2b5b7f386c4eaf392620bf3310a7c5f 100644 (file)
@@ -2,7 +2,7 @@
  * ffmpeg.c: video decoder using ffmpeg library
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: ffmpeg.c,v 1.24 2003/02/18 19:42:57 gbazin Exp $
+ * $Id: ffmpeg.c,v 1.25 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *
@@ -96,45 +96,45 @@ static int ffmpeg_GetFfmpegCodec( vlc_fourcc_t, int *, int *, char ** );
     "64 Qpel chroma"
 
 vlc_module_begin();
-    add_category_hint( N_("ffmpeg"), NULL );
+    add_category_hint( N_("ffmpeg"), NULL, VLC_FALSE );
 #if LIBAVCODEC_BUILD >= 4615
     add_bool( "ffmpeg-dr", 0, NULL,
               "direct rendering", 
-              "direct rendering" );
+              "direct rendering", VLC_TRUE );
 #endif
 #if LIBAVCODEC_BUILD >= 4611
     add_integer ( "ffmpeg-error-resilience", -1, NULL, 
-                  "error resilience", ERROR_RESILIENCE_LONGTEXT );
+                  "error resilience", ERROR_RESILIENCE_LONGTEXT, VLC_TRUE );
     add_integer ( "ffmpeg-workaround-bugs", 1, NULL, 
-                  "workaround bugs", WORKAROUND_BUGS_LONGTEXT );
+                  "workaround bugs", WORKAROUND_BUGS_LONGTEXT, VLC_FALSE );
 #endif
-    add_bool( "ffmpeg-hurry-up", 0, NULL, "hurry up", HURRY_UP_LONGTEXT );
+    add_bool( "ffmpeg-hurry-up", 0, NULL, "hurry up", HURRY_UP_LONGTEXT, VLC_FALSE );
     
-    add_category_hint( N_("Post processing"), NULL );
+    add_category_hint( N_("Post processing"), NULL, VLC_FALSE );
     add_module( "ffmpeg-pp", "postprocessing",NULL, NULL,
-                N_( "ffmpeg postprocessing module" ), NULL ); 
+                N_( "ffmpeg postprocessing module" ), NULL, VLC_FALSE ); 
     add_integer( "ffmpeg-pp-q", 0, NULL,
-                 "post processing quality", POSTPROCESSING_Q_LONGTEXT );
+                 "post processing quality", POSTPROCESSING_Q_LONGTEXT, VLC_FALSE );
     add_bool( "ffmpeg-pp-auto", 0, NULL,
-              "auto-level Post processing quality", POSTPROCESSING_AQ_LONGTEXT );
+              "auto-level Post processing quality", POSTPROCESSING_AQ_LONGTEXT, VLC_FALSE );
     add_bool( "ffmpeg-db-yv", 0, NULL, 
               "force vertical luminance deblocking", 
-              "force vertical luminance deblocking (override other settings)" );
+              "force vertical luminance deblocking (override other settings)", VLC_TRUE );
     add_bool( "ffmpeg-db-yh", 0, NULL, 
               "force horizontal luminance deblocking",
-              "force horizontal luminance deblocking (override other settings)" );
+              "force horizontal luminance deblocking (override other settings)", VLC_TRUE );
     add_bool( "ffmpeg-db-cv", 0, NULL, 
               "force vertical chrominance deblocking",
-              "force vertical chrominance deblocking (override other settings)" );
+              "force vertical chrominance deblocking (override other settings)", VLC_TRUE );
     add_bool( "ffmpeg-db-ch", 0, NULL, 
               "force horizontal chrominance deblocking",
-              "force horizontal chrominance deblocking (override other settings) " );
+              "force horizontal chrominance deblocking (override other settings) ", VLC_TRUE );
     add_bool( "ffmpeg-dr-y", 0, NULL,
               "force luminance deringing",
-              "force luminance deringing (override other settings)" );
+              "force luminance deringing (override other settings)", VLC_TRUE );
     add_bool( "ffmpeg-dr-c", 0, NULL,
               "force chrominance deringing",
-              "force chrominance deringing (override other settings)" );
+              "force chrominance deringing (override other settings)", VLC_TRUE );
       
     set_description( _("ffmpeg audio/video decoder((MS)MPEG4,SVQ1,H263,WMV,WMA)") );
     set_capability( "decoder", 70 );
index d8171e22ef8bcb9345881361308e9886f894f997..4295ebd95dd711894cdb1e3e8038aa1f343b20d8 100644 (file)
@@ -2,7 +2,7 @@
  * video_parser.c : video parser thread
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: parser.c,v 1.10 2003/02/08 20:32:43 massiot Exp $
+ * $Id: parser.c,v 1.11 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *          Samuel Hocevar <sam@via.ecp.fr>
@@ -81,14 +81,14 @@ static void     BitstreamCallback ( bit_stream_t *, vlc_bool_t );
     "you won't get anything.")
 
 vlc_module_begin();
-    add_category_hint( N_("Miscellaneous"), NULL );
+    add_category_hint( N_("Miscellaneous"), NULL, VLC_TRUE );
     add_module  ( "mpeg-idct", "idct", NULL, NULL,
-                  VDEC_IDCT_TEXT, VDEC_IDCT_LONGTEXT );
+                  VDEC_IDCT_TEXT, VDEC_IDCT_LONGTEXT, VLC_TRUE );
     add_module  ( "mpeg-motion", "motion compensation", NULL, NULL,
-                  VDEC_MOTION_TEXT, VDEC_MOTION_LONGTEXT );
-    add_integer ( "vdec-smp", 0, NULL, VDEC_SMP_TEXT, VDEC_SMP_LONGTEXT );
+                  VDEC_MOTION_TEXT, VDEC_MOTION_LONGTEXT, VLC_TRUE );
+    add_integer ( "vdec-smp", 0, NULL, VDEC_SMP_TEXT, VDEC_SMP_LONGTEXT, VLC_TRUE );
     add_string  ( "vpar-synchro", NULL, NULL, VPAR_SYNCHRO_TEXT,
-                  VPAR_SYNCHRO_LONGTEXT );
+                  VPAR_SYNCHRO_LONGTEXT, VLC_TRUE );
     set_description( _("MPEG I/II video decoder module") );
     set_capability( "decoder", 50 );
     set_callbacks( OpenDecoder, NULL );
index 7ad06901cacbc5fdc8acecb29aba4a2ae25f7fb0..c4208f1caad5bac7817fc6c1ae1951efbb50a45c 100644 (file)
@@ -2,7 +2,7 @@
  * spudec.c : SPU decoder thread
  *****************************************************************************
  * Copyright (C) 2000-2001 VideoLAN
- * $Id: spudec.c,v 1.15 2003/02/17 05:50:31 sam Exp $
+ * $Id: spudec.c,v 1.16 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -53,14 +53,14 @@ static vout_thread_t *FindVout( spudec_thread_t * );
 #define DEFAULT_FONT "font-eutopiabold36.rle"
 
 vlc_module_begin();
-    add_category_hint( N_("subtitles"), NULL );
+    add_category_hint( N_("subtitles"), NULL, VLC_TRUE );
 #if defined(SYS_DARWIN) || defined(SYS_BEOS) \
      || (defined(WIN32) && !defined(UNDER_CE))
     add_file( "spudec-font", NULL, NULL,
-              FONT_TEXT, FONT_LONGTEXT );
+              FONT_TEXT, FONT_LONGTEXT, VLC_TRUE );
 #else
     add_file( "spudec-font", "share/" DEFAULT_FONT, NULL,
-              FONT_TEXT, FONT_LONGTEXT );
+              FONT_TEXT, FONT_LONGTEXT, VLC_TRUE );
 #endif
     set_description( _("subtitles decoder module") );
     set_capability( "decoder", 50 );
index ab9f857f34b611e42deb76b92aabf655f27ce549..ff2fda6daa715eb9ef980104e9e1bd92ae8d78a0 100644 (file)
@@ -2,7 +2,7 @@
  * xvid.c: a decoder for libxvidcore, the Xvid video codec
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: xvid.c,v 1.4 2003/01/07 21:49:01 fenrir Exp $
+ * $Id: xvid.c,v 1.5 2003/02/20 01:52:45 sigmunau Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -49,7 +49,7 @@ vlc_module_begin();
     set_capability( "decoder", 50 );
     set_callbacks( OpenDecoder, NULL );
     add_bool( "xvid-direct-render", 0, NULL, "direct rendering",
-              "Use libxvidcore's direct rendering feature." );
+              "Use libxvidcore's direct rendering feature.", VLC_TRUE );
 vlc_module_end();
 
 /*****************************************************************************
index 11471b0c4afe90ac0b81b46cffb27c99b0bbeaad..bf3782fe0bed9d205801591057dc4196defdae33 100644 (file)
@@ -2,7 +2,7 @@
  * geatures.c: control vlc with mouse gestures
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: gestures.c,v 1.1 2003/02/09 23:42:06 sigmunau Exp $
+ * $Id: gestures.c,v 1.2 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
  *
@@ -86,10 +86,10 @@ static void RunIntf        ( intf_thread_t *p_intf );
 static char *button_list[] = { "left", "middle", "right", NULL };
 
 vlc_module_begin();
-    add_category_hint( N_( "Gestures" ), NULL );
-    add_integer( "gestures-threshold", 30, NULL, THRESHOLD_TEXT, THRESHOLD_LONGTEXT );
+    add_category_hint( N_( "Gestures" ), NULL, VLC_FALSE );
+    add_integer( "gestures-threshold", 30, NULL, THRESHOLD_TEXT, THRESHOLD_LONGTEXT, VLC_TRUE );
     add_string_from_list( "gestures-button", "right", button_list, NULL,
-                          BUTTON_TEXT, BUTTON_LONGTEXT );
+                          BUTTON_TEXT, BUTTON_LONGTEXT, VLC_FALSE );
     set_description( _("mouse gestures control module") );
 
     set_capability( "interface", 0 );
index 1028c56c7bd0114d7e2bf80a64eb29be7043aa72..814dfd6d3601e829dfd3a05b56b67088431971a7 100644 (file)
@@ -2,7 +2,7 @@
  * rc.c : remote control stdin/stdout plugin for vlc
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: rc.c,v 1.26 2003/02/17 16:56:02 gbazin Exp $
+ * $Id: rc.c,v 1.27 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Peter Surda <shurdeek@panorama.sth.ac.at>
  *
@@ -81,10 +81,10 @@ static int  AudioConfig  ( vlc_object_t *, char const *,
 #define TTY_LONGTEXT N_("Force the rc plugin to use stdin as if it was a TTY.")
 
 vlc_module_begin();
-    add_category_hint( N_("Remote control"), NULL );
-    add_bool( "rc-show-pos", 0, NULL, POS_TEXT, POS_LONGTEXT );
+    add_category_hint( N_("Remote control"), NULL, VLC_TRUE );
+    add_bool( "rc-show-pos", 0, NULL, POS_TEXT, POS_LONGTEXT, VLC_TRUE );
 #ifdef HAVE_ISATTY
-    add_bool( "fake-tty", 0, NULL, TTY_TEXT, TTY_LONGTEXT );
+    add_bool( "fake-tty", 0, NULL, TTY_TEXT, TTY_LONGTEXT, VLC_TRUE );
 #endif
     set_description( _("remote control interface module") );
     set_capability( "interface", 20 );
index c15e5a9d161ccbc3b9cff490471c4b7add1579b8..c91fc0178873e34e8d7708831dc2c1af50cd65d6 100644 (file)
@@ -2,7 +2,7 @@
  * avi.c : AVI file Stream input module for vlc
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: avi.c,v 1.34 2003/01/27 16:28:42 fenrir Exp $
+ * $Id: avi.c,v 1.35 2003/02/20 01:52:46 sigmunau Exp $
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *
  * This program is free software; you can redistribute it and/or modify
@@ -57,13 +57,13 @@ static int    AVIDemux_UnSeekable( input_thread_t *p_input );
  * Module descriptor
  *****************************************************************************/
 vlc_module_begin();
-    add_category_hint( "demuxer", NULL );
+    add_category_hint( "avi-demuxer", NULL, VLC_TRUE );
         add_bool( "avi-interleaved", 0, NULL,
                   "force interleaved method",
-                  "force interleaved method" );
+                  "force interleaved method", VLC_TRUE );
         add_bool( "avi-index", 0, NULL,
                   "force index creation",
-                  "force index creation" );
+                  "force index creation", VLC_TRUE );
 
     set_description( "avi demuxer" );
     set_capability( "demux", 212 );
index 6de982f456c7eba295401c4364608f27f1f4e222..cad828d7dec9870d88bb685ac271d13d3995c3f0 100644 (file)
@@ -2,7 +2,7 @@
  * demuxdump.c : Pseudo demux module for vlc (dump raw stream)
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: demuxdump.c,v 1.4 2003/02/02 09:17:39 titer Exp $
+ * $Id: demuxdump.c,v 1.5 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *
@@ -48,10 +48,10 @@ static void Desactivate ( vlc_object_t * );
 vlc_module_begin();
     set_description( _("Dump Demux input") );
     set_capability( "demux", 0 );
-    add_category_hint( "File", NULL );
+    add_category_hint( "File", NULL, VLC_FALSE );
         add_string( "demuxdump-file", NULL, NULL, 
                     "dump file name", 
-                    "file name for dumping raw stream read by demux" );
+                    "file name for dumping raw stream read by demux", VLC_FALSE );
     set_callbacks( Activate, Desactivate );
     add_shortcut( "dump" );
 vlc_module_end();
index ad9e3a9716c97b36e3f3a341af0066effdd590f7..609d9ce61e103c69a6c04b6d95ca22b21ec3f77c 100644 (file)
@@ -2,7 +2,7 @@
  * mpeg_ts.c : Transport Stream input module for vlc
  *****************************************************************************
  * Copyright (C) 2000-2001 VideoLAN
- * $Id: ts.c,v 1.17 2003/02/12 13:42:43 massiot Exp $
+ * $Id: ts.c,v 1.18 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Henri Fallon <henri@via.ecp.fr>
  *          Johan Bilien <jobi@via.ecp.fr>
@@ -115,10 +115,10 @@ vlc_module_begin();
     set_capability( "demux", 170 );
     add_shortcut( "ts_dvbpsi" );
 #endif
-    add_category_hint( N_("Miscellaneous"), NULL );
+    add_category_hint( N_("Miscellaneous"), NULL, VLC_TRUE );
     add_bool( "vls-backwards-compat", 0, NULL,
-              VLS_BACKWARDS_COMPAT_TEXT, VLS_BACKWARDS_COMPAT_LONGTEXT );
-    add_bool( "buggy-psi", 0, NULL, BUGGY_PSI_TEXT, BUGGY_PSI_LONGTEXT );
+              VLS_BACKWARDS_COMPAT_TEXT, VLS_BACKWARDS_COMPAT_LONGTEXT, VLC_TRUE );
+    add_bool( "buggy-psi", 0, NULL, BUGGY_PSI_TEXT, BUGGY_PSI_LONGTEXT, VLC_TRUE );
     set_callbacks( Activate, Deactivate );
 vlc_module_end();
 
index 9fd0ec8192cba7281b330510a93a1ebf2b1fbbe8..9d52fe1cd08bb11de0a6111749b64c0401d610b5 100644 (file)
@@ -2,7 +2,7 @@
  * id3.c: simple id3 tag skipper
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: id3.c,v 1.2 2002/10/13 14:26:48 sigmunau Exp $
+ * $Id: id3.c,v 1.3 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
  * 
@@ -89,7 +89,6 @@ static int SkipID3Tag( vlc_object_t *p_this )
     
     version = p_peek[3];  /* These may become usfull later, */
     revision = p_peek[4]; /* but we ignore them for now */
-
     b_footer = p_peek[5] & 0x10;
     i_size = (p_peek[6] << 21) +
              (p_peek[7] << 14) +
@@ -108,7 +107,8 @@ static int SkipID3Tag( vlc_object_t *p_this )
         return( VLC_EGENERIC );
     }
 
-    msg_Dbg( p_input, "ID3 tag found, skiping %d bytes", i_size );
+    msg_Dbg( p_input, "ID3v2.%d revision %d tag found, skiping %d bytes",
+             version, revision, i_size );
     p_input->p_current_data += i_size; /* seek passed end of ID3 tag */
     return ( VLC_SUCCESS );
 }
index 1d621039ae65c142d5629c9e574304b4cfb716f7..083d887c8d2c0982c742e85a651db600ece533f7 100644 (file)
@@ -2,7 +2,7 @@
  * sub.c
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: sub.c,v 1.5 2003/02/09 13:25:42 fenrir Exp $
+ * $Id: sub.c,v 1.6 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *
@@ -69,18 +69,18 @@ static char *ppsz_sub_type[] = { "microdvd", "subrip", "ssa1", "ssa2-4", NULL };
 vlc_module_begin();
     set_description( _("text subtitle demux") );
     set_capability( "subtitle demux", 12 );
-    add_category_hint( "subtitle", NULL );
+    add_category_hint( "subtitle", NULL, VLC_TRUE );
         add_string( "sub-file", NULL, NULL,
-                    "subtitle file name", "subtitle file name" );
+                    "subtitle file name", "subtitle file name", VLC_TRUE );
         add_float( "sub-fps", 0.0, NULL,
                    "override frames per second",
-                   SUB_FPS_LONGTEXT );
+                   SUB_FPS_LONGTEXT, VLC_TRUE );
         add_integer( "sub-delay", 0, NULL,
                      "delay subtitles (in 1/10s)",
-                     "delay subtitles (in 1/10s)" );
+                     "delay subtitles (in 1/10s)", VLC_TRUE );
         add_string_from_list( "sub-type", NULL, ppsz_sub_type, NULL,
                               "subtitle type",
-                              SUB_TYPE_LONGTEXT );
+                              SUB_TYPE_LONGTEXT, VLC_TRUE );
     set_callbacks( Open, NULL );
 vlc_module_end();
 
index 16b6956d024609ddc6a885cdb4c77c6ebb6fe470..b101fe9da7ba1b7c4ae5a135def3a7b64fa292f6 100644 (file)
@@ -2,7 +2,7 @@
  * encoder.c : audio/video encoder using ffmpeg library
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: encoder.c,v 1.1 2003/01/22 10:41:57 fenrir Exp $
+ * $Id: encoder.c,v 1.2 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Laurent Aimar
  *
@@ -55,17 +55,17 @@ vlc_module_begin();
     add_submodule();
         set_capability( "video encoder", 100 );
         set_callbacks( E_( OpenEncoderVideo ), E_( CloseEncoderVideo ) );
-        add_category_hint( "video setting", NULL );
-            add_integer( "encoder-ffmpeg-video-bitrate", 1000, NULL, "bitrate (kb/s)", "bitrate (kb/s)" );
-            add_integer( "encoder-ffmpeg-video-max-key-interval", 10, NULL, "max key interval", "maximum   value  of   frames  between   two  keyframes" );
-            add_integer( "encoder-ffmpeg-min-quantizer", 2, NULL, "min quantizer", "range 1-31" );
-            add_integer( "encoder-ffmpeg-max-quantizer", 31, NULL, "max quantizer", "range 1-31" );
+        add_category_hint( "video setting", NULL, VLC_TRUE );
+            add_integer( "encoder-ffmpeg-video-bitrate", 1000, NULL, "bitrate (kb/s)", "bitrate (kb/s)", VLC_TRUE );
+            add_integer( "encoder-ffmpeg-video-max-key-interval", 10, NULL, "max key interval", "maximum   value  of   frames  between   two  keyframes", VLC_TRUE );
+            add_integer( "encoder-ffmpeg-min-quantizer", 2, NULL, "min quantizer", "range 1-31", VLC_TRUE );
+            add_integer( "encoder-ffmpeg-max-quantizer", 31, NULL, "max quantizer", "range 1-31", VLC_TRUE );
 
     add_submodule();
         set_capability( "audio encoder", 50 );
         set_callbacks( E_( OpenEncoderAudio ), E_( CloseEncoderAudio ) );
-        add_category_hint( "audio setting", NULL );
-            add_integer( "encoder-ffmpeg-audio-bitrate", 64, NULL, "bitrate (kb/s)", "bitrate (kb/s)" );
+        add_category_hint( "audio setting", NULL, VLC_TRUE );
+            add_integer( "encoder-ffmpeg-audio-bitrate", 64, NULL, "bitrate (kb/s)", "bitrate (kb/s)", VLC_TRUE );
 
 vlc_module_end();
 
index c86589fd432c786512a2805e03c9d078861a487c..732a45590c3b8e51cfae4733ed36fbbc4b2636f8 100644 (file)
@@ -2,7 +2,7 @@
  * xvid.c: an encoder for libxvidcore, the Xvid video codec
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: xvid.c,v 1.1 2003/01/22 10:41:57 fenrir Exp $
+ * $Id: xvid.c,v 1.2 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Laurent Aimar
  *
@@ -60,30 +60,30 @@ vlc_module_begin();
     set_callbacks( OpenEncoder, CloseEncoder );
 
     add_shortcut( "xvid" );
-    add_category_hint( "general setting", NULL );
-        add_integer( "encoder-xvid-bitrate", 1000, NULL, "bitrate (kb/s)", "bitrate (kb/s)" );
-        add_integer( "encoder-xvid-min-quantizer", 2, NULL, "min quantizer", "range 1-31" );
-        add_integer( "encoder-xvid-max-quantizer", 31, NULL, "max quantizer", "1-31" );
-        add_integer( "encoder-xvid-max-key-interval", -1, NULL, "max key interval", "maximum   value  of   frames  between   two  keyframes" );
+    add_category_hint( "general setting", NULL, VLC_TRUE );
+        add_integer( "encoder-xvid-bitrate", 1000, NULL, "bitrate (kb/s)", "bitrate (kb/s)", VLC_TRUE );
+        add_integer( "encoder-xvid-min-quantizer", 2, NULL, "min quantizer", "range 1-31", VLC_TRUE );
+        add_integer( "encoder-xvid-max-quantizer", 31, NULL, "max quantizer", "1-31", VLC_TRUE );
+        add_integer( "encoder-xvid-max-key-interval", -1, NULL, "max key interval", "maximum   value  of   frames  between   two  keyframes", VLC_TRUE );
     add_category_hint( "advanced setting", NULL );
-        add_integer( "encoder-xvid-reaction-delay-factor", -1, NULL, "rc reaction delay factor", "rate controler parameters");
-        add_integer( "encoder-xvid-averaging-period", -1, NULL, "rc averaging period", "rate controler parameters" );
-        add_integer( "encoder-xvid-buffer", -1, NULL, "rc buffer", "rate controler parameters" );
+        add_integer( "encoder-xvid-reaction-delay-factor", -1, NULL, "rc reaction delay factor", "rate controler parameters", VLC_TRUE);
+        add_integer( "encoder-xvid-averaging-period", -1, NULL, "rc averaging period", "rate controler parameters", VLC_TRUE );
+        add_integer( "encoder-xvid-buffer", -1, NULL, "rc buffer", "rate controler parameters", VLC_TRUE );
     add_category_hint( "advanced frame setting", NULL );
-        add_string_from_list( "encoder-xvid-quantization", "MPEG", ppsz_xvid_quant_algo, NULL, "quantization algorithm", "" );
-        add_bool( "encoder-xvid-halfpel", 1, NULL, "half pixel  motion estimation.", "" );
-        add_bool( "encoder-xvid-4mv", 0, NULL, "fourc vector per macroblock(need halfpel)", "" );
-        add_bool( "encoder-xvid-lumi-mask", 0, NULL, "use a lumimasking algorithm", "" );
-        add_bool( "encoder-xvid-adaptive-quant", 0, NULL, "perform  an  adaptative quantization", "" );
-        add_bool( "encoder-xvid-interlacing", 0, NULL, "use MPEG4  interlaced mode", "" );
-        add_string_from_list( "encoder-xvid-me", "", ppsz_xvid_me, NULL, "motion estimation", "" );
-        add_bool( "encoder-xvid-motion-advanceddiamond", 1, NULL, "motion advanceddiamond", "" );
-        add_bool( "encoder-xvid-motion-halfpeldiamond", 1, NULL, "motion halfpel diamond", "" );
-        add_bool( "encoder-xvid-motion-halfpelrefine", 1, NULL, "motion halfpelrefine", "" );
-        add_bool( "encoder-xvid-motion-extsearch", 1, NULL, "motion extsearch", "" );
-        add_bool( "encoder-xvid-motion-earlystop", 1, NULL, "motion earlystop", "" );
-        add_bool( "encoder-xvid-motion-quickstop", 1, NULL, "motion quickstop", "" );
-        add_bool( "encoder-xvid-motion-usesquares", 0, NULL, "use a square search", "" );
+        add_string_from_list( "encoder-xvid-quantization", "MPEG", ppsz_xvid_quant_algo, NULL, "quantization algorithm", "", VLC_TRUE );
+        add_bool( "encoder-xvid-halfpel", 1, NULL, "half pixel  motion estimation.", "", VLC_TRUE );
+        add_bool( "encoder-xvid-4mv", 0, NULL, "fourc vector per macroblock(need halfpel)", "", VLC_TRUE );
+        add_bool( "encoder-xvid-lumi-mask", 0, NULL, "use a lumimasking algorithm", "", VLC_TRUE );
+        add_bool( "encoder-xvid-adaptive-quant", 0, NULL, "perform  an  adaptative quantization", "", VLC_TRUE );
+        add_bool( "encoder-xvid-interlacing", 0, NULL, "use MPEG4  interlaced mode", "", VLC_TRUE );
+        add_string_from_list( "encoder-xvid-me", "", ppsz_xvid_me, NULL, "motion estimation", "", VLC_TRUE );
+        add_bool( "encoder-xvid-motion-advanceddiamond", 1, NULL, "motion advanceddiamond", "", VLC_TRUE );
+        add_bool( "encoder-xvid-motion-halfpeldiamond", 1, NULL, "motion halfpel diamond", "", VLC_TRUE );
+        add_bool( "encoder-xvid-motion-halfpelrefine", 1, NULL, "motion halfpelrefine", "", VLC_TRUE );
+        add_bool( "encoder-xvid-motion-extsearch", 1, NULL, "motion extsearch", "", VLC_TRUE );
+        add_bool( "encoder-xvid-motion-earlystop", 1, NULL, "motion earlystop", "", VLC_TRUE );
+        add_bool( "encoder-xvid-motion-quickstop", 1, NULL, "motion quickstop", "", VLC_TRUE );
+        add_bool( "encoder-xvid-motion-usesquares", 0, NULL, "use a square search", "", VLC_TRUE );
 vlc_module_end();
 
 
index b89ac679b48d0022a791de7dac9ff04618dbf5fd..92278f1686112da1280c589d5c54173890533dd1 100644 (file)
@@ -2,7 +2,7 @@
  * beos.cpp : BeOS plugin for vlc
  *****************************************************************************
  * Copyright (C) 2000, 2001 VideoLAN
- * $Id: BeOS.cpp,v 1.6 2003/02/09 17:10:52 stippi Exp $
+ * $Id: BeOS.cpp,v 1.7 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -51,28 +51,28 @@ vlc_module_begin();
     add_submodule();
         set_capability( "interface", 100 );
         set_callbacks( E_(OpenIntf), E_(CloseIntf) );
-        add_integer( "beos-intf-width", 0, NULL, "", "" );
-        add_integer( "beos-intf-height", 0, NULL, "", "" );
-        add_integer( "beos-intf-xpos", 0, NULL, "", "" );
-        add_integer( "beos-intf-ypos", 0, NULL, "", "" );
-        add_integer( "beos-playlist-width", 0, NULL, "", "" );
-        add_integer( "beos-playlist-height", 0, NULL, "", "" );
-        add_integer( "beos-playlist-xpos", 0, NULL, "", "" );
-        add_integer( "beos-playlist-ypos", 0, NULL, "", "" );
-        add_bool( "beos-playlist-show", 0, NULL, "", "" );
-        add_integer( "beos-messages-width", 0, NULL, "", "" );
-        add_integer( "beos-messages-height", 0, NULL, "", "" );
-        add_integer( "beos-messages-xpos", 0, NULL, "", "" );
-        add_integer( "beos-messages-ypos", 0, NULL, "", "" );
-        add_bool( "beos-messages-show", 0, NULL, "", "" );
-        add_integer( "beos-settings-width", 0, NULL, "", "" );
-        add_integer( "beos-settings-height", 0, NULL, "", "" );
-        add_integer( "beos-settings-xpos", 0, NULL, "", "" );
-        add_integer( "beos-settings-ypos", 0, NULL, "", "" );
-        add_bool( "beos-settings-show", 0, NULL, "", "" );
-        add_integer( "beos-screenshot-format", 0, NULL, "", "" );
-        add_string( "beos-screenshot-path", 0, NULL, "", "" );
-        add_bool( "beos-use-dvd-menus", 0, NULL, "", "" );
+        add_integer( "beos-intf-width", 0, NULL, "", "", VLC_TRUE );
+        add_integer( "beos-intf-height", 0, NULL, "", "", VLC_TRUE );
+        add_integer( "beos-intf-xpos", 0, NULL, "", "", VLC_TRUE );
+        add_integer( "beos-intf-ypos", 0, NULL, "", "", VLC_TRUE );
+        add_integer( "beos-playlist-width", 0, NULL, "", "", VLC_TRUE );
+        add_integer( "beos-playlist-height", 0, NULL, "", "", VLC_TRUE );
+        add_integer( "beos-playlist-xpos", 0, NULL, "", "", VLC_TRUE );
+        add_integer( "beos-playlist-ypos", 0, NULL, "", "", VLC_TRUE );
+        add_bool( "beos-playlist-show", 0, NULL, "", "", VLC_TRUE );
+        add_integer( "beos-messages-width", 0, NULL, "", "", VLC_TRUE );
+        add_integer( "beos-messages-height", 0, NULL, "", "", VLC_TRUE );
+        add_integer( "beos-messages-xpos", 0, NULL, "", "", VLC_TRUE );
+        add_integer( "beos-messages-ypos", 0, NULL, "", "", VLC_TRUE );
+        add_bool( "beos-messages-show", 0, NULL, "", "", VLC_TRUE );
+        add_integer( "beos-settings-width", 0, NULL, "", "", VLC_TRUE );
+        add_integer( "beos-settings-height", 0, NULL, "", "", VLC_TRUE );
+        add_integer( "beos-settings-xpos", 0, NULL, "", "", VLC_TRUE );
+        add_integer( "beos-settings-ypos", 0, NULL, "", "", VLC_TRUE );
+        add_bool( "beos-settings-show", 0, NULL, "", "", VLC_TRUE );
+        add_integer( "beos-screenshot-format", 0, NULL, "", "", VLC_TRUE );
+        add_string( "beos-screenshot-path", 0, NULL, "", "", VLC_TRUE );
+        add_bool( "beos-use-dvd-menus", 0, NULL, "", "", VLC_TRUE );
     add_submodule();                                     
         set_capability( "video output", 100 );
         set_callbacks( E_(OpenVideo), E_(CloseVideo) );
index 2d1f968594e7b20f1a2a9faf1203a05ed5227852..dadc0efb8849504f5b09d2a5c4e1124728d22cdd 100644 (file)
@@ -2,7 +2,7 @@
  * familiar.c : familiar plugin for vlc
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: familiar.c,v 1.28 2003/01/27 17:41:01 ipkiss Exp $
+ * $Id: familiar.c,v 1.29 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Jean-Paul Saman <jpsaman@wxs.nl>
  *
@@ -66,8 +66,8 @@ gint E_(GtkModeManage)   ( intf_thread_t * p_intf );
  * Module descriptor
  *****************************************************************************/
 vlc_module_begin();
-    add_category_hint( N_("Miscellaneous"), NULL );
-    add_bool( "familiar-autoplayfile", 1, GtkAutoPlayFile, AUTOPLAYFILE_TEXT, AUTOPLAYFILE_LONGTEXT );
+    add_category_hint( N_("Miscellaneous"), NULL, VLC_TRUE );
+    add_bool( "familiar-autoplayfile", 1, GtkAutoPlayFile, AUTOPLAYFILE_TEXT, AUTOPLAYFILE_LONGTEXT, VLC_TRUE );
     set_description( _("Familiar Linux Gtk+ interface module") );
     set_capability( "interface", 70 );
     set_callbacks( Open, Close );
index 09f2920c0e59eb3330b4bdff8ffc4293c66fbd78..5d968d4ecab5e6f719af48fd8c841655c3108e38 100644 (file)
@@ -2,7 +2,7 @@
  * gnome.c : Gnome plugin for vlc
  *****************************************************************************
  * Copyright (C) 2000 VideoLAN
- * $Id: gnome.c,v 1.10 2003/02/05 22:11:52 sam Exp $
+ * $Id: gnome.c,v 1.11 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -69,13 +69,13 @@ vlc_module_begin();
 #else
     int i = getenv( "DISPLAY" ) == NULL ? 15 : 100;
 #endif
-    add_category_hint( N_("GNOME"), NULL );
+    add_category_hint( N_("GNOME"), NULL, VLC_FALSE );
     add_bool( "gnome-tooltips", 1, E_(GtkHideTooltips),
-              TOOLTIPS_TEXT, TOOLTIPS_LONGTEXT );
+              TOOLTIPS_TEXT, TOOLTIPS_LONGTEXT, VLC_FALSE );
     add_bool( "gnome-toolbartext", 1, GtkHideToolbarText, TOOLBAR_TEXT,
-              TOOLBAR_LONGTEXT );
+              TOOLBAR_LONGTEXT, VLC_FALSE );
     add_integer( "gnome-prefs-maxh", 480, NULL,
-                 PREFS_MAXH_TEXT, PREFS_MAXH_LONGTEXT );
+                 PREFS_MAXH_TEXT, PREFS_MAXH_LONGTEXT, VLC_TRUE );
 
     set_description( _("GNOME interface module") );
     set_capability( "interface", i );
index 57053797ad8abfa7a4b299220c0e5d959256cc95..3e141baea88ebdd7502ed7b8c84f25f133158d22 100644 (file)
@@ -2,7 +2,7 @@
  * gtk.c : Gtk+ plugin for vlc
  *****************************************************************************
  * Copyright (C) 2000-2001 VideoLAN
- * $Id: gtk.c,v 1.15 2003/02/05 22:11:52 sam Exp $
+ * $Id: gtk.c,v 1.16 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -68,11 +68,11 @@ vlc_module_begin();
 #else
     int i = getenv( "DISPLAY" ) == NULL ? 10 : 90;
 #endif
-    add_category_hint( N_("Gtk+"), NULL );
+    add_category_hint( N_("Gtk+"), NULL, VLC_FALSE );
     add_bool( "gtk-tooltips", 1, E_(GtkHideTooltips),
-              TOOLTIPS_TEXT, TOOLTIPS_LONGTEXT );
+              TOOLTIPS_TEXT, TOOLTIPS_LONGTEXT, VLC_FALSE );
     add_integer( "gtk-prefs-maxh", 480, NULL,
-                 PREFS_MAXH_TEXT, PREFS_MAXH_LONGTEXT );
+                 PREFS_MAXH_TEXT, PREFS_MAXH_LONGTEXT, VLC_TRUE );
 
     set_description( _("Gtk+ interface module") );
     set_capability( "interface", i );
index a1a61218b5b153b59bd872bdc5b48dd4d1b56329..75224a53cb4972de45efde2f043bf38db778d89a 100644 (file)
@@ -2,7 +2,7 @@
  * gtk_preferences.c: functions to handle the preferences dialog box.
  *****************************************************************************
  * Copyright (C) 2000, 2001 VideoLAN
- * $Id: preferences.c,v 1.8 2003/01/27 17:41:01 ipkiss Exp $
+ * $Id: preferences.c,v 1.9 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
  *          Loïc Minier <lool@via.ecp.fr>
@@ -233,6 +233,10 @@ static void GtkCreateConfigDialog( char *psz_module_name,
 
     if( p_item ) do
     {
+        if( p_item->b_advanced && !config_GetInt( p_intf, "advanced" ))
+        {
+            continue;
+        }
         switch( p_item->i_type )
         {
 
index 17569995582e1bbcee9125bb16013e71902ea2c6..59534e6163d1b38b4734890525ed8d23d62454a6 100644 (file)
@@ -37,7 +37,7 @@ class KInterface : public KMainWindow
     Q_OBJECT
     public:
         KInterface(intf_thread_t *p_intf, QWidget *parent=0,
-                   const char *name=0);
+                   const char *name="VLC");
         ~KInterface();
 
     public slots:
index 15f976e8336f2577f084b9f586ffb4bd80d062b2..5bd02bf4f39964a248ca492b2f4d78068cce78a6 100644 (file)
@@ -2,7 +2,7 @@
  * kde.cpp : KDE plugin for vlc
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: kde.cpp,v 1.8 2003/02/02 01:37:03 sam Exp $
+ * $Id: kde.cpp,v 1.9 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Andres Krapf <dae@chez.com> Sun Mar 25 2001
  *
@@ -51,8 +51,8 @@ static void run(intf_thread_t *p_intf);
  *****************************************************************************/
 vlc_module_begin();
     int i = getenv( "DISPLAY" ) == NULL ? 8 : 85;
-    add_category_hint( "kde", NULL );
-    add_file( "kdeuirc", DATA_PATH "/ui.rc", NULL, N_( "path to ui.rc file" ), NULL );
+    add_category_hint( "kde", NULL, VLC_TRUE );
+    add_file( "kdeuirc", DATA_PATH "/ui.rc", NULL, N_( "path to ui.rc file" ), NULL, VLC_TRUE );
     set_description( _("KDE interface module") );
     set_capability( "interface", i );
     set_program( "kvlc" );
index be85917a4c3e2fe2aefb49828dc771f6350d048d..c6e18a8fdfbb21b3b612e34c86ee9c41ab4e2401 100644 (file)
@@ -2,7 +2,7 @@
  * macosx.m: MacOS X plugin for vlc
  *****************************************************************************
  * Copyright (C) 2001-2003 VideoLAN
- * $Id: macosx.m,v 1.2 2003/01/15 00:49:49 jlj Exp $
+ * $Id: macosx.m,v 1.3 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Colin Delacroix <colin@zoy.org>
  *          Eugenio Jarosiewicz <ej0@cise.ufl.edu>
@@ -58,12 +58,12 @@ vlc_module_begin();
     add_submodule();
         set_capability( "video output", 100 );
         set_callbacks( E_(OpenVideo), E_(CloseVideo) );
-        add_category_hint( N_("Video"), NULL );
-        add_integer( "macosx-vdev", 0, NULL, VDEV_TEXT, VDEV_TEXT );
+        add_category_hint( N_("Video"), NULL, VLC_FALSE );
+        add_integer( "macosx-vdev", 0, NULL, VDEV_TEXT, VDEV_TEXT, VLC_FALSE );
     add_submodule();
         set_capability( "audio output", 100 );
         set_callbacks( E_(OpenAudio), E_(CloseAudio) );
-        add_category_hint( N_("Audio"), NULL );
-        add_integer( "macosx-adev", 0, NULL, ADEV_TEXT, ADEV_TEXT );
+        add_category_hint( N_("Audio"), NULL, VLC_FALSE );
+        add_integer( "macosx-adev", 0, NULL, ADEV_TEXT, ADEV_TEXT, VLC_FALSE );
 vlc_module_end();
 
index 2633aa9f5e405dfd4591ea2f636645ef5153c984..388ab80c8a8ca9be3ad256a478f8e5fdbeef1591 100644 (file)
@@ -2,7 +2,7 @@
  * win32.cpp : Win32 interface plugin for vlc\r
  *****************************************************************************\r
  * Copyright (C) 2002-2003 VideoLAN\r
- * $Id: win32.cpp,v 1.15 2003/02/12 02:11:58 ipkiss Exp $\r
+ * $Id: win32.cpp,v 1.16 2003/02/20 01:52:46 sigmunau Exp $\r
  *\r
  * Authors: Olivier Teulière <ipkiss@via.ecp.fr>\r
  *\r
@@ -305,8 +305,8 @@ int Win32Manage( intf_thread_t *p_intf )
     " Enter -1 if you want to keep all messages." )\r
 \r
 vlc_module_begin();\r
-    add_category_hint( N_("Miscellaneous"), NULL );\r
-    add_integer( "intfwin-max-lines", 500, NULL, MAX_LINES_TEXT, MAX_LINES_LONGTEXT );\r
+    add_category_hint( N_("Miscellaneous"), NULL, VLC_TRUE );\r
+    add_integer( "intfwin-max-lines", 500, NULL, MAX_LINES_TEXT, MAX_LINES_LONGTEXT, VLC_TRUE );\r
     set_description( _("Native Windows interface module") );\r
     set_capability( "interface", 100 );\r
     set_callbacks( E_(Open), E_(Close) );\r
index 10231d1fb1a680608aae643948319063d44901e7..f4e12d3960e31d0438f811ae9c012f6be4164f7e 100644 (file)
@@ -2,7 +2,7 @@
  * fileinfo.cpp : wxWindows plugin for vlc
  *****************************************************************************
  * Copyright (C) 2000-2001 VideoLAN
- * $Id: fileinfo.cpp,v 1.2 2003/01/28 21:08:29 sam Exp $
+ * $Id: fileinfo.cpp,v 1.3 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
  *
@@ -77,7 +77,7 @@ FileInfo::FileInfo( intf_thread_t *_p_intf, Interface *_p_main_interface ):
     intf_thread_t *p_intf = _p_intf;
     input_thread_t *p_input;
 
-    wxTreeCtrl *tree = new wxTreeCtrl( this, -1 );
+    wxTreeCtrl *tree = new wxTreeCtrl( this, -1, wxDefaultPosition, wxDefaultSize, wxTR_HAS_BUTTONS|wxTR_HIDE_ROOT );
     p_input = p_intf->p_sys->p_input;
     /* Create the OK button */
     wxButton *ok_button = new wxButton( this, wxID_OK, _("OK") );
@@ -99,7 +99,6 @@ FileInfo::FileInfo( intf_thread_t *_p_intf, Interface *_p_main_interface ):
     vlc_mutex_lock( &p_input->stream.stream_lock );
     wxTreeItemId root = tree->AddRoot( p_input->psz_name );
     tree->Expand( root );
-    tree->EnsureVisible( root );
     input_info_category_t *p_cat = p_input->stream.p_info;
     
     while ( p_cat ) {
index af01f156f36c2c7cebba549d9b5ac182f0f49565..0ec003ff3cd9c0c9fa2296b5eb53b421f81bcf5b 100644 (file)
@@ -2,7 +2,7 @@
  * wxwindows.cpp : wxWindows plugin for vlc
  *****************************************************************************
  * Copyright (C) 2000-2001 VideoLAN
- * $Id: wxwindows.cpp,v 1.11 2003/01/28 20:02:03 sam Exp $
+ * $Id: wxwindows.cpp,v 1.12 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
  *
@@ -79,7 +79,7 @@ private:
  * Module descriptor
  *****************************************************************************/
 vlc_module_begin();
-    add_category_hint( N_("wxWindows"), NULL );
+    add_category_hint( N_("wxWindows"), NULL, VLC_TRUE );
     set_description( (char *) _("wxWindows interface module") );
     set_capability( "interface", 50 );
     set_callbacks( Open, Close );
index e3e72d042e01557d26d8dc581aa2db307ead5b1f..0c9101d8d219ad3c12f5168682e0f0d1e9e2784f 100644 (file)
@@ -2,7 +2,7 @@
  * dummy.c : dummy plugin for vlc
  *****************************************************************************
  * Copyright (C) 2000, 2001 VideoLAN
- * $Id: dummy.c,v 1.2 2002/08/07 21:36:56 massiot Exp $
+ * $Id: dummy.c,v 1.3 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -61,7 +61,7 @@ vlc_module_begin();
     add_submodule();
         set_capability( "video output", 1 );
         set_callbacks( E_(OpenVideo), NULL );
-        add_category_hint( N_("Video"), NULL );
-        add_string( "dummy-chroma", NULL, NULL, CHROMA_TEXT, CHROMA_LONGTEXT );
+        add_category_hint( N_("Video"), NULL, VLC_FALSE );
+        add_string( "dummy-chroma", NULL, NULL, CHROMA_TEXT, CHROMA_LONGTEXT, VLC_FALSE );
 vlc_module_end();
 
index 8457516839cdb964f2a18aa89eb5f659308d2483..685cae646c3759b327019ce0a619ce0e7b2f7e9e 100644 (file)
@@ -2,7 +2,7 @@
  * logger.c : file logging plugin for vlc
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: logger.c,v 1.3 2002/10/03 17:01:58 gbazin Exp $
+ * $Id: logger.c,v 1.4 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -82,9 +82,9 @@ static void HtmlPrint         ( const msg_item_t *, FILE * );
  * Module descriptor
  *****************************************************************************/
 vlc_module_begin();
-    add_category_hint( N_("Miscellaneous"), NULL );
-    add_string( "logfile", NULL, NULL, N_("log filename"), N_("Specify the log filename.") );
-    add_string( "logmode", NULL, NULL, N_("log format"), N_("Specify the log format. Available choices are \"text\" (default) and \"html\"") );
+    add_category_hint( N_("Miscellaneous"), NULL, VLC_FALSE );
+    add_string( "logfile", NULL, NULL, N_("log filename"), N_("Specify the log filename."), VLC_FALSE );
+    add_string( "logmode", NULL, NULL, N_("log format"), N_("Specify the log format. Available choices are \"text\" (default) and \"html\""), VLC_FALSE );
     set_description( _("file logging interface module") );
     set_capability( "interface", 0 );
     set_callbacks( Open, Close );
index dd4f882758b9a7b201f64706f9a6107d1b7c1a54..6614fc505657fad8b95134af26250564297d3066 100644 (file)
@@ -2,7 +2,7 @@
  * sap.c :  SAP interface module
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: sap.c,v 1.7 2003/01/21 18:43:54 lool Exp $
+ * $Id: sap.c,v 1.8 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Arnaud Schauly <gitan@via.ecp.fr>
  *
@@ -128,9 +128,9 @@ struct media_descr_t {
  * Module descriptor
  *****************************************************************************/
 vlc_module_begin();
-    add_category_hint( N_("SAP"), NULL );
+    add_category_hint( N_("SAP"), NULL, VLC_TRUE );
         add_string( "sap-addr", NULL, NULL,
-                     "SAP multicast address", "SAP multicast address" );
+                     "SAP multicast address", "SAP multicast address", VLC_TRUE );
     set_description( _("SAP interface module") );
     set_capability( "interface", 0 );
     set_callbacks( Activate, NULL);
index 329b139934e855025f07945fb42b518d9f725d53..c565825a15d6bf0366b9b40d75c647cf3d530182 100644 (file)
@@ -2,7 +2,7 @@
  * adjust.c : Contrast/Hue/Saturation/Brightness video plugin for vlc
  *****************************************************************************
  * Copyright (C) 2000, 2001, 2002, 2003 VideoLAN
- * $Id: adjust.c,v 1.9 2003/01/17 16:18:03 sam Exp $
+ * $Id: adjust.c,v 1.10 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Simon Latapie <garf@via.ecp.fr>
  *
@@ -68,11 +68,11 @@ static int  SendEvents( vlc_object_t *, char const *,
 
 
 vlc_module_begin();
-    add_category_hint( N_("Adjust"), NULL );
-    add_float_with_range( "contrast", 1.0, 0.0, 2.0, NULL, CONT_TEXT, CONT_LONGTEXT );
-    add_float_with_range( "brightness", 1.0, 0.0, 2.0, NULL, LUM_TEXT, LUM_LONGTEXT );
-    add_integer_with_range( "hue", 0, 0, 360, NULL, HUE_TEXT, HUE_LONGTEXT );
-    add_float_with_range( "saturation", 1.0, 0.0, 3.0, NULL, SAT_TEXT, SAT_LONGTEXT );
+    add_category_hint( N_("Adjust"), NULL, VLC_FALSE );
+    add_float_with_range( "contrast", 1.0, 0.0, 2.0, NULL, CONT_TEXT, CONT_LONGTEXT, VLC_FALSE );
+    add_float_with_range( "brightness", 1.0, 0.0, 2.0, NULL, LUM_TEXT, LUM_LONGTEXT, VLC_FALSE );
+    add_integer_with_range( "hue", 0, 0, 360, NULL, HUE_TEXT, HUE_LONGTEXT, VLC_FALSE );
+    add_float_with_range( "saturation", 1.0, 0.0, 3.0, NULL, SAT_TEXT, SAT_LONGTEXT, VLC_FALSE );
     set_description( _("contrast/hue/saturation/brightness filter") );
     set_capability( "video filter", 0 );
     add_shortcut( "adjust" );
index b660a2faf9c8c65487eef65c218c8f3dce7ad6a4..5c0b775012d9e1425cbc0a20150227c6b6506025 100644 (file)
@@ -2,7 +2,7 @@
  * clone.c : Clone video plugin for vlc
  *****************************************************************************
  * Copyright (C) 2002, 2003 VideoLAN
- * $Id: clone.c,v 1.6 2003/01/28 22:03:21 sam Exp $
+ * $Id: clone.c,v 1.7 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -55,8 +55,8 @@ static int  SendEvents( vlc_object_t *, char const *,
     "clone the video")
 
 vlc_module_begin();
-    add_category_hint( N_("Miscellaneous"), NULL );
-    add_integer( "clone-count", 2, NULL, COUNT_TEXT, COUNT_LONGTEXT );
+    add_category_hint( N_("Clone"), NULL, VLC_FALSE );
+    add_integer( "clone-count", 2, NULL, COUNT_TEXT, COUNT_LONGTEXT, VLC_FALSE );
     set_description( _("image clone video module") );
     set_capability( "video filter", 0 );
     add_shortcut( "clone" );
index 8e61671a8da1052631fc9cdb9f5ddbfd875cab78..90ebb9fbba52e3cd9f491cbf8095d56045674684 100644 (file)
@@ -2,7 +2,7 @@
  * crop.c : Crop video plugin for vlc
  *****************************************************************************
  * Copyright (C) 2002, 2003 VideoLAN
- * $Id: crop.c,v 1.7 2003/01/17 16:18:03 sam Exp $
+ * $Id: crop.c,v 1.8 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -58,9 +58,9 @@ static int  SendEvents( vlc_object_t *, char const *,
 #define AUTOCROP_LONGTEXT N_("Activate automatic black border cropping")
 
 vlc_module_begin();
-    add_category_hint( N_("Miscellaneous"), NULL );
-    add_string( "crop-geometry", NULL, NULL, GEOMETRY_TEXT, GEOMETRY_LONGTEXT );
-    add_bool( "autocrop", 0, NULL, AUTOCROP_TEXT, AUTOCROP_LONGTEXT );
+    add_category_hint( N_("Crop"), NULL, VLC_FALSE );
+    add_string( "crop-geometry", NULL, NULL, GEOMETRY_TEXT, GEOMETRY_LONGTEXT, VLC_FALSE );
+    add_bool( "autocrop", 0, NULL, AUTOCROP_TEXT, AUTOCROP_LONGTEXT, VLC_FALSE );
     set_description( _("image crop video module") );
     set_capability( "video filter", 0 );
     add_shortcut( "crop" );
index 0b20d9290572dd3f85b0c537bf0219a7f4dbaedd..a295d5b89720493fbfa87648d35491e139356d3f 100644 (file)
@@ -2,7 +2,7 @@
  * deinterlace.c : deinterlacer plugin for vlc
  *****************************************************************************
  * Copyright (C) 2000, 2001, 2002, 2003 VideoLAN
- * $Id: deinterlace.c,v 1.8 2003/01/28 13:03:13 gbazin Exp $
+ * $Id: deinterlace.c,v 1.9 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -78,9 +78,9 @@ static int FilterCallback ( vlc_object_t *, char const *,
 static char *mode_list[] = { "discard", "blend", "mean", "bob", "linear", NULL };
 
 vlc_module_begin();
-    add_category_hint( N_("Miscellaneous"), NULL );
+    add_category_hint( N_("Deinterlace"), NULL, VLC_FALSE );
     add_string_from_list( "deinterlace-mode", "discard", mode_list, NULL,
-                          MODE_TEXT, MODE_LONGTEXT );
+                          MODE_TEXT, MODE_LONGTEXT, VLC_FALSE );
     set_description( _("deinterlacing module") );
     set_capability( "video filter", 0 );
     add_shortcut( "deinterlace" );
index 62a9edc22010eeb5730e360c37b4c41829c80821..b12371b9850daea0eacff2e564b12cd4033d0e37 100644 (file)
@@ -2,7 +2,7 @@
  * distort.c : Misc video effects plugin for vlc
  *****************************************************************************
  * Copyright (C) 2000, 2001, 2002, 2003 VideoLAN
- * $Id: distort.c,v 1.6 2003/01/17 16:18:03 sam Exp $
+ * $Id: distort.c,v 1.7 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -62,9 +62,9 @@ static int  SendEvents   ( vlc_object_t *, char const *,
 static char *mode_list[] = { "wave", "ripple", NULL };
 
 vlc_module_begin();
-    add_category_hint( N_("Miscellaneous"), NULL );
+    add_category_hint( N_("Distort"), NULL, VLC_FALSE );
     add_string_from_list( "distort-mode", "wave", mode_list, NULL,
-                          MODE_TEXT, MODE_LONGTEXT );
+                          MODE_TEXT, MODE_LONGTEXT, VLC_FALSE );
     set_description( _("miscellaneous video effects module") );
     set_capability( "video filter", 0 );
     add_shortcut( "distort" );
index 665088d1307505f5caa6a84afab28aa29e122a3c..a6503b5e7978268a5df819ec6074eb02de0f4d60 100644 (file)
@@ -2,7 +2,7 @@
  * motion_blur.c : motion blur filter for vlc
  *****************************************************************************
  * Copyright (C) 2000, 2001, 2002, 2003 VideoLAN
- * $Id: motionblur.c,v 1.7 2003/01/28 22:03:21 sam Exp $
+ * $Id: motionblur.c,v 1.8 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
  *
@@ -55,8 +55,8 @@ static int  SendEvents( vlc_object_t *, char const *,
 #define MODE_LONGTEXT N_("The degree of blurring from 1 to 127")
 
 vlc_module_begin();
-    add_category_hint( N_("Miscellaneous"), NULL );
-    add_integer( "blur-factor", 80, NULL, MODE_TEXT, MODE_LONGTEXT );
+    add_category_hint( N_("Miscellaneous"), NULL, VLC_FALSE );
+    add_integer( "blur-factor", 80, NULL, MODE_TEXT, MODE_LONGTEXT, VLC_FALSE );
     set_description( _("Motion blur filter") );
     set_capability( "video filter", 0 );
     set_callbacks( Create, Destroy );
index b61eaac158ada1ade42adf82a5e03486df348c98..a5b93847802908fe1b06e2c31aafbbf69eb4b2de 100644 (file)
@@ -2,7 +2,7 @@
  * transform.c : transform image plugin for vlc
  *****************************************************************************
  * Copyright (C) 2000, 2001, 2002, 2003 VideoLAN
- * $Id: transform.c,v 1.8 2003/02/09 12:19:09 sam Exp $
+ * $Id: transform.c,v 1.9 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -60,9 +60,9 @@ static int  SendEvents( vlc_object_t *, char const *,
 static char *type_list[] = { "90", "180", "270", "hflip", "vflip", NULL };
 
 vlc_module_begin();
-    add_category_hint( N_("Miscellaneous"), NULL );
+    add_category_hint( N_("Miscellaneous"), NULL, VLC_FALSE );
     add_string_from_list( "transform-type", "90", type_list, NULL,
-                          TYPE_TEXT, TYPE_LONGTEXT);
+                          TYPE_TEXT, TYPE_LONGTEXT, VLC_FALSE);
     set_description( _("image transformation module") );
     set_capability( "video filter", 0 );
     add_shortcut( "transform" );
index e50168d3f9503195fbb4bbe1413fec0c19d92a0d..80b55683885dd3ae1328e65dd20f6238ba51bea7 100644 (file)
@@ -2,7 +2,7 @@
  * wall.c : Wall video plugin for vlc
  *****************************************************************************
  * Copyright (C) 2000, 2001, 2002, 2003 VideoLAN
- * $Id: wall.c,v 1.6 2003/01/17 16:18:03 sam Exp $
+ * $Id: wall.c,v 1.7 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -63,10 +63,10 @@ static int  SendEvents( vlc_object_t *, char const *,
     "defaults to all")
 
 vlc_module_begin();
-    add_category_hint( N_("Miscellaneous"), NULL );
-    add_integer( "wall-cols", 3, NULL, COLS_TEXT, COLS_LONGTEXT );
-    add_integer( "wall-rows", 3, NULL, ROWS_TEXT, ROWS_LONGTEXT );
-    add_string( "wall-active", NULL, NULL, ACTIVE_TEXT, ACTIVE_LONGTEXT );
+    add_category_hint( N_("Miscellaneous"), NULL, VLC_FALSE );
+    add_integer( "wall-cols", 3, NULL, COLS_TEXT, COLS_LONGTEXT, VLC_FALSE );
+    add_integer( "wall-rows", 3, NULL, ROWS_TEXT, ROWS_LONGTEXT, VLC_FALSE );
+    add_string( "wall-active", NULL, NULL, ACTIVE_TEXT, ACTIVE_LONGTEXT, VLC_FALSE );
     set_description( _("image wall video module") );
     set_capability( "video filter", 0 );
     add_shortcut( "wall" );
index 59988ed3e7398d19d2703363a0251b6053e83693..ec754976cb413eb457034c603bbd7695145af181 100644 (file)
@@ -2,7 +2,7 @@
  * vout.c: Windows DirectX video output display method
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: directx.c,v 1.12 2003/02/01 18:54:10 sam Exp $
+ * $Id: directx.c,v 1.13 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
  *
@@ -104,10 +104,10 @@ static int  DirectXGetSurfaceDesc ( vout_thread_t *p_vout, picture_t *p_pic );
     "This option doesn't have any effect when using overlays." )
 
 vlc_module_begin();
-    add_category_hint( N_("Video"), NULL );
-    add_bool( "directx-on-top", 0, NULL, ON_TOP_TEXT, ON_TOP_LONGTEXT );
-    add_bool( "directx-hw-yuv", 1, NULL, HW_YUV_TEXT, HW_YUV_LONGTEXT );
-    add_bool( "directx-use-sysmem", 0, NULL, SYSMEM_TEXT, SYSMEM_LONGTEXT );
+    add_category_hint( N_("Video"), NULL, VLC_FALSE );
+    add_bool( "directx-on-top", 0, NULL, ON_TOP_TEXT, ON_TOP_LONGTEXT, VLC_FALSE );
+    add_bool( "directx-hw-yuv", 1, NULL, HW_YUV_TEXT, HW_YUV_LONGTEXT, VLC_TRUE );
+    add_bool( "directx-use-sysmem", 0, NULL, SYSMEM_TEXT, SYSMEM_LONGTEXT, VLC_TRUE );
     set_description( _("DirectX video module") );
     set_capability( "video output", 100 );
     add_shortcut( "directx" );
index f3d4c25566a21076802337695315e1a7afbb6d69..17144ba159c7df0cef6b0a7f3df0f76e6adb41ba 100644 (file)
@@ -2,7 +2,7 @@
  * fb.c : framebuffer plugin for vlc
  *****************************************************************************
  * Copyright (C) 2000, 2001 VideoLAN
- * $Id: fb.c,v 1.2 2003/02/15 04:43:19 ipkiss Exp $
+ * $Id: fb.c,v 1.3 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *      
@@ -65,8 +65,8 @@ static void GfxMode        ( int i_tty );
 #define FB_DEV_VAR "fbdev"
 
 vlc_module_begin();                                            
-    add_category_hint( N_("Miscellaneous"), NULL );
-    add_string( FB_DEV_VAR, "/dev/fb0", NULL, N_("framebuffer device"), NULL );
+    add_category_hint( N_("Frame Buffer"), NULL, VLC_FALSE );
+    add_string( FB_DEV_VAR, "/dev/fb0", NULL, N_("framebuffer device"), NULL, VLC_FALSE );
     set_description( _("Linux console framebuffer module") );
     set_capability( "video output", 30 );
     set_callbacks( Create, Destroy );
index 4635d5ccccaaf20830de2cb812b42cc7f6463435..9a45bfbedc76e824ecad014655a2d889089100f1 100644 (file)
@@ -2,7 +2,7 @@
  * ggi.c : GGI plugin for vlc
  *****************************************************************************
  * Copyright (C) 2000, 2001 VideoLAN
- * $Id: ggi.c,v 1.3 2003/02/02 00:46:58 sam Exp $
+ * $Id: ggi.c,v 1.4 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -59,8 +59,8 @@ static void SetPalette     ( vout_thread_t *, u16 *, u16 *, u16 * );
                            " environment variable.")
 
 vlc_module_begin();                                
-    add_category_hint( N_("Miscellaneous"), NULL );
-    add_string( "ggi-display", NULL, NULL, DISPLAY_TEXT, DISPLAY_LONGTEXT );
+    add_category_hint( N_("Miscellaneous"), NULL, VLC_FALSE );
+    add_string( "ggi-display", NULL, NULL, DISPLAY_TEXT, DISPLAY_LONGTEXT, VLC_TRUE );
     set_description( "General Graphics Interface video output" );
     set_capability( "video output", 30 );
     set_callbacks( Create, Destroy );
index 7ee986f5686a2f228cae7459353d04827e86ff89..ce4ae3763f8c0f699d8bb7b7d9fb45ae03adb482 100644 (file)
@@ -2,7 +2,7 @@
  * xmga.c : X11 MGA plugin for vlc
  *****************************************************************************
  * Copyright (C) 1998-2001 VideoLAN
- * $Id: xmga.c,v 1.2 2003/02/02 00:46:58 sam Exp $
+ * $Id: xmga.c,v 1.3 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -101,9 +101,9 @@ static void ToggleCursor   ( vout_thread_t * );
     "use the value of the DISPLAY environment variable.")
 
 vlc_module_begin();  
-    add_category_hint( N_("Miscellaneous"), NULL );
-    add_string( "xmga-display", NULL, NULL, DISPLAY_TEXT, DISPLAY_LONGTEXT );
-    add_bool( "xmga-altfullscreen", 0, NULL, ALT_FS_TEXT, ALT_FS_LONGTEXT );
+    add_category_hint( N_("Miscellaneous"), NULL, VLC_TRUE );
+    add_string( "xmga-display", NULL, NULL, DISPLAY_TEXT, DISPLAY_LONGTEXT, VLC_TRUE );
+    add_bool( "xmga-altfullscreen", 0, NULL, ALT_FS_TEXT, ALT_FS_LONGTEXT, VLC_TRUE );
     set_description( _("X11 MGA module") );
     set_capability( "video output", 60 );
     set_callbacks( Create, Destroy );
index a795522317297a39629a1a4f69ff6ea1eab01c0c..0de457c0979ae3b2e497511726ff66f11f394652 100644 (file)
@@ -2,7 +2,7 @@
  * x11.c : X11 plugin for vlc
  *****************************************************************************
  * Copyright (C) 1998-2001 VideoLAN
- * $Id: x11.c,v 1.4 2003/02/02 00:46:58 sam Exp $
+ * $Id: x11.c,v 1.5 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -59,11 +59,11 @@ extern void E_(Deactivate) ( vlc_object_t * );
     "Use shared memory to communicate between VLC and the X server.")
 
 vlc_module_begin();
-    add_category_hint( N_("X11"), NULL );
-    add_string( "x11-display", NULL, NULL, DISPLAY_TEXT, DISPLAY_LONGTEXT );
-    add_bool( "x11-altfullscreen", 0, NULL, ALT_FS_TEXT, ALT_FS_LONGTEXT );
+    add_category_hint( N_("X11"), NULL, VLC_TRUE );
+    add_string( "x11-display", NULL, NULL, DISPLAY_TEXT, DISPLAY_LONGTEXT, VLC_TRUE );
+    add_bool( "x11-altfullscreen", 0, NULL, ALT_FS_TEXT, ALT_FS_LONGTEXT, VLC_TRUE );
 #ifdef HAVE_SYS_SHM_H
-    add_bool( "x11-shm", 1, NULL, SHM_TEXT, SHM_LONGTEXT );
+    add_bool( "x11-shm", 1, NULL, SHM_TEXT, SHM_LONGTEXT, VLC_TRUE );
 #endif
     set_description( _("X11 module") );
     set_capability( "video output", 50 );
index 882bf265d754867a7acff0e72f02ef41e387722c..0e1eae7919e97efa3126109fe17f974e6c3ec4f6 100644 (file)
@@ -2,7 +2,7 @@
  * xvideo.c : Xvideo plugin for vlc
  *****************************************************************************
  * Copyright (C) 1998-2001 VideoLAN
- * $Id: xvideo.c,v 1.4 2003/02/02 00:46:58 sam Exp $
+ * $Id: xvideo.c,v 1.5 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Shane Harper <shanegh@optusnet.com.au>
  *          Vincent Seguin <seguin@via.ecp.fr>
@@ -70,13 +70,13 @@ extern void E_(Deactivate) ( vlc_object_t * );
     "Use shared memory to communicate between VLC and the X server.")
 
 vlc_module_begin();
-    add_category_hint( N_("XVideo"), NULL );
-    add_string( "xvideo-display", NULL, NULL, DISPLAY_TEXT, DISPLAY_LONGTEXT );
-    add_integer( "xvideo-adaptor", -1, NULL, ADAPTOR_TEXT, ADAPTOR_LONGTEXT );
-    add_bool( "xvideo-altfullscreen", 0, NULL, ALT_FS_TEXT, ALT_FS_LONGTEXT );
-    add_string( "xvideo-chroma", NULL, NULL, CHROMA_TEXT, CHROMA_LONGTEXT );
+    add_category_hint( N_("XVideo"), NULL, VLC_TRUE );
+    add_string( "xvideo-display", NULL, NULL, DISPLAY_TEXT, DISPLAY_LONGTEXT, VLC_TRUE );
+    add_integer( "xvideo-adaptor", -1, NULL, ADAPTOR_TEXT, ADAPTOR_LONGTEXT, VLC_TRUE );
+    add_bool( "xvideo-altfullscreen", 0, NULL, ALT_FS_TEXT, ALT_FS_LONGTEXT, VLC_TRUE );
+    add_string( "xvideo-chroma", NULL, NULL, CHROMA_TEXT, CHROMA_LONGTEXT, VLC_TRUE );
 #ifdef HAVE_SYS_SHM_H
-    add_bool( "xvideo-shm", 1, NULL, SHM_TEXT, SHM_LONGTEXT );
+    add_bool( "xvideo-shm", 1, NULL, SHM_TEXT, SHM_LONGTEXT, VLC_TRUE );
 #endif
     set_description( _("XVideo extension module") );
     set_capability( "video output", 150 );
index 23297ed94a5173e27c07bcc6271e1ec53f8b8d51..eae258e9da5744cfcfdf7bfecf38836beee655e9 100644 (file)
@@ -2,7 +2,7 @@
  * xosd.c : X On Screen Display interface
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: xosd.c,v 1.7 2003/02/03 01:32:37 sam Exp $
+ * $Id: xosd.c,v 1.8 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Loïc Minier <lool@videolan.org>
  *
@@ -73,13 +73,13 @@ static void Run          ( intf_thread_t * );
 
 vlc_module_begin();
     int i = getenv( "DISPLAY" ) == NULL ? 10 : 90;
-    add_category_hint( N_("XOSD module"), NULL );
-    add_bool( "xosd-position", 1, NULL, POSITION_TEXT, POSITION_LONGTEXT );
-    add_integer( "xosd-text-offset", 0, NULL, TXT_OFS_TEXT, TXT_OFS_LONGTEXT );
+    add_category_hint( N_("XOSD module"), NULL, VLC_TRUE );
+    add_bool( "xosd-position", 1, NULL, POSITION_TEXT, POSITION_LONGTEXT, VLC_TRUE );
+    add_integer( "xosd-text-offset", 0, NULL, TXT_OFS_TEXT, TXT_OFS_LONGTEXT, VLC_TRUE );
     add_integer( "xosd-shadow-offset", 1, NULL,
-                 SHD_OFS_TEXT, SHD_OFS_LONGTEXT );
+                 SHD_OFS_TEXT, SHD_OFS_LONGTEXT, VLC_TRUE );
     add_string( "xosd-font", "-misc-fixed-medium-r-*-*-*-300-*-*-*-*-*-*",
-                NULL, FONT_TEXT, FONT_LONGTEXT );
+                NULL, FONT_TEXT, FONT_LONGTEXT, VLC_TRUE );
     set_description( _("xosd interface module") );
     set_capability( "interface", i );
     set_callbacks( Open, Close );
index dbe0e9e2dffcf93eb8a9beec2950574a1ba7a1b0..62f477456420891344e131455aa2eb99eea2275f 100644 (file)
@@ -2,7 +2,7 @@
  * libvlc.c: main libvlc source
  *****************************************************************************
  * Copyright (C) 1998-2002 VideoLAN
- * $Id: libvlc.c,v 1.65 2003/02/19 10:02:57 gbazin Exp $
+ * $Id: libvlc.c,v 1.66 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -1122,7 +1122,10 @@ static void Usage( vlc_t *p_this, char const *psz_module_name )
             char *psz_bra = NULL, *psz_type = NULL, *psz_ket = NULL;
             char *psz_suf = "", *psz_prefix = NULL;
             int i;
-
+            if ( p_item->b_advanced && !config_GetInt( p_this, "advanced" ))
+            {
+                continue;
+            }
             switch( p_item->i_type )
             {
             case CONFIG_HINT_CATEGORY:
index a8367e977ac7305710793d2d1f4c06e19927c6fd..d670dc43f1d48311c12f9f6251b8af517f401298 100644 (file)
@@ -2,7 +2,7 @@
  * libvlc.h: main libvlc header
  *****************************************************************************
  * Copyright (C) 1998-2002 VideoLAN
- * $Id: libvlc.h,v 1.43 2003/02/18 18:33:44 titer Exp $
+ * $Id: libvlc.h,v 1.44 2003/02/20 01:52:46 sigmunau Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -60,6 +60,11 @@ static char *ppsz_sout_vcodec[] = { "", "mpeg1", "mpeg2", "mpeg4", NULL };
     "When this option is turned on, the messages sent to the console will " \
     "be colorized. Your terminal needs Linux color support for this to work.")
 
+#define ADVANCED_TEXT N_("show advanced options")
+#define ADVANCED_LONGTEXT N_( \
+    "When this option is turned on, the interfaces will show all the " \
+    "available options, including those that most users should never touch")
+
 #define INTF_PATH_TEXT N_("interface default search path")
 #define INTF_PATH_LONGTEXT N_( \
     "This option allows you to set the default path that the interface will " \
@@ -430,138 +435,139 @@ static char *ppsz_sout_vcodec[] = { "", "mpeg1", "mpeg2", "mpeg4", NULL };
 
 vlc_module_begin();
     /* Interface options */
-    add_category_hint( N_("Interface"), NULL);
+    add_category_hint( N_("Interface"), NULL, VLC_FALSE );
     add_module_with_short( "intf", 'I', "interface", NULL, NULL,
-                           INTF_TEXT, INTF_LONGTEXT );
-    add_string( "extraintf", NULL, NULL, EXTRAINTF_TEXT, EXTRAINTF_LONGTEXT );
+                           INTF_TEXT, INTF_LONGTEXT, VLC_TRUE );
+    add_string( "extraintf", NULL, NULL, EXTRAINTF_TEXT, EXTRAINTF_LONGTEXT, VLC_TRUE );
     add_integer_with_short( "verbose", 'v', -1, NULL,
-                            VERBOSE_TEXT, VERBOSE_LONGTEXT );
-    add_bool_with_short( "quiet", 'q', 0, NULL, QUIET_TEXT, QUIET_LONGTEXT );
-    add_bool( "color", 0, NULL, COLOR_TEXT, COLOR_LONGTEXT );
-    add_string( "search-path", NULL, NULL, INTF_PATH_TEXT, INTF_PATH_LONGTEXT );
+                            VERBOSE_TEXT, VERBOSE_LONGTEXT, VLC_FALSE );
+    add_bool_with_short( "quiet", 'q', 0, NULL, QUIET_TEXT, QUIET_LONGTEXT, VLC_TRUE );
+    add_bool( "color", 0, NULL, COLOR_TEXT, COLOR_LONGTEXT, VLC_TRUE );
+    add_bool( "advanced", 0, NULL, ADVANCED_TEXT, ADVANCED_LONGTEXT, VLC_FALSE );
+    add_string( "search-path", NULL, NULL, INTF_PATH_TEXT, INTF_PATH_LONGTEXT, VLC_TRUE );
     add_string( "plugin-path", NULL, NULL,
-                PLUGIN_PATH_TEXT, PLUGIN_PATH_LONGTEXT );
+                PLUGIN_PATH_TEXT, PLUGIN_PATH_LONGTEXT, VLC_TRUE );
 
     /* Audio options */
-    add_category_hint( N_("Audio"), NULL);
+    add_category_hint( N_("Audio"), NULL, VLC_FALSE );
     add_module_with_short( "aout", 'A', "audio output", NULL, NULL,
-                           AOUT_TEXT, AOUT_LONGTEXT );
-    add_bool( "audio", 1, NULL, AUDIO_TEXT, AUDIO_LONGTEXT );
+                           AOUT_TEXT, AOUT_LONGTEXT, VLC_FALSE );
+    add_bool( "audio", 1, NULL, AUDIO_TEXT, AUDIO_LONGTEXT, VLC_TRUE );
     add_integer_with_range( "volume", AOUT_VOLUME_DEFAULT, AOUT_VOLUME_MIN,
                             AOUT_VOLUME_MAX, NULL, VOLUME_TEXT,
-                            VOLUME_LONGTEXT );
+                            VOLUME_LONGTEXT, VLC_FALSE );
     add_integer_with_range( "saved-volume", AOUT_VOLUME_DEFAULT,
                             AOUT_VOLUME_MIN, AOUT_VOLUME_MAX, NULL,
-                            VOLUME_SAVE_TEXT, VOLUME_SAVE_LONGTEXT );
-    add_integer( "aout-rate", -1, NULL, AOUT_RATE_TEXT, AOUT_RATE_LONGTEXT );
-    add_integer( "desync", 0, NULL, DESYNC_TEXT, DESYNC_LONGTEXT );
-    add_bool( "headphone", 0, NULL, HEADPHONE_TEXT, HEADPHONE_LONGTEXT );
+                            VOLUME_SAVE_TEXT, VOLUME_SAVE_LONGTEXT, VLC_TRUE );
+    add_integer( "aout-rate", -1, NULL, AOUT_RATE_TEXT, AOUT_RATE_LONGTEXT, VLC_TRUE );
+    add_integer( "desync", 0, NULL, DESYNC_TEXT, DESYNC_LONGTEXT, VLC_TRUE );
+    add_bool( "headphone", 0, NULL, HEADPHONE_TEXT, HEADPHONE_LONGTEXT, VLC_FALSE );
     add_integer( "headphone-dim", 5, NULL, HEADPHONE_DIM_TEXT,
-                 HEADPHONE_DIM_LONGTEXT );
+                 HEADPHONE_DIM_LONGTEXT, VLC_TRUE );
 
     /* Video options */
-    add_category_hint( N_("Video"), NULL );
+    add_category_hint( N_("Video"), NULL, VLC_FALSE );
     add_module_with_short( "vout", 'V', "video output", NULL, NULL,
-                           VOUT_TEXT, VOUT_LONGTEXT );
-    add_bool( "video", 1, NULL, VIDEO_TEXT, VIDEO_LONGTEXT );
-    add_integer( "width", -1, NULL, WIDTH_TEXT, WIDTH_LONGTEXT );
-    add_integer( "height", -1, NULL, HEIGHT_TEXT, HEIGHT_LONGTEXT );
-    add_float( "zoom", 1, NULL, ZOOM_TEXT, ZOOM_LONGTEXT );
-    add_bool( "grayscale", 0, NULL, GRAYSCALE_TEXT, GRAYSCALE_LONGTEXT );
-    add_bool( "fullscreen", 0, NULL, FULLSCREEN_TEXT, FULLSCREEN_LONGTEXT );
-    add_bool( "overlay", 1, NULL, OVERLAY_TEXT, OVERLAY_LONGTEXT );
-    add_integer( "spumargin", -1, NULL, SPUMARGIN_TEXT, SPUMARGIN_LONGTEXT );
+                           VOUT_TEXT, VOUT_LONGTEXT, VLC_FALSE );
+    add_bool( "video", 1, NULL, VIDEO_TEXT, VIDEO_LONGTEXT, VLC_TRUE );
+    add_integer( "width", -1, NULL, WIDTH_TEXT, WIDTH_LONGTEXT, VLC_TRUE );
+    add_integer( "height", -1, NULL, HEIGHT_TEXT, HEIGHT_LONGTEXT, VLC_TRUE );
+    add_float( "zoom", 1, NULL, ZOOM_TEXT, ZOOM_LONGTEXT, VLC_TRUE );
+    add_bool( "grayscale", 0, NULL, GRAYSCALE_TEXT, GRAYSCALE_LONGTEXT, VLC_TRUE );
+    add_bool( "fullscreen", 0, NULL, FULLSCREEN_TEXT, FULLSCREEN_LONGTEXT, VLC_FALSE );
+    add_bool( "overlay", 1, NULL, OVERLAY_TEXT, OVERLAY_LONGTEXT, VLC_TRUE );
+    add_integer( "spumargin", -1, NULL, SPUMARGIN_TEXT, SPUMARGIN_LONGTEXT, VLC_TRUE );
     add_module( "filter", "video filter", NULL, NULL,
-                FILTER_TEXT, FILTER_LONGTEXT );
+                FILTER_TEXT, FILTER_LONGTEXT, VLC_TRUE );
     add_string( "aspect-ratio", "", NULL,
-                ASPECT_RATIO_TEXT, ASPECT_RATIO_TEXT );
+                ASPECT_RATIO_TEXT, ASPECT_RATIO_TEXT, VLC_TRUE );
 #if 0
     add_string( "pixel-ratio", "1", NULL, PIXEL_RATIO_TEXT, PIXEL_RATIO_TEXT );
 #endif
 
     /* Input options */
-    add_category_hint( N_("Input"), NULL );
+    add_category_hint( N_("Input"), NULL, VLC_FALSE );
     add_integer( "server-port", 1234, NULL,
-                 SERVER_PORT_TEXT, SERVER_PORT_LONGTEXT );
+                 SERVER_PORT_TEXT, SERVER_PORT_LONGTEXT, VLC_FALSE );
     add_bool( "network-channel", 0, NULL,
-              NETCHANNEL_TEXT, NETCHANNEL_LONGTEXT );
+              NETCHANNEL_TEXT, NETCHANNEL_LONGTEXT, VLC_TRUE );
     add_string( "channel-server", "localhost", NULL,
-                CHAN_SERV_TEXT, CHAN_SERV_LONGTEXT );
+                CHAN_SERV_TEXT, CHAN_SERV_LONGTEXT, VLC_TRUE );
     add_integer( "channel-port", 6010, NULL,
-                 CHAN_PORT_TEXT, CHAN_PORT_LONGTEXT );
-    add_integer( "mtu", 1500, NULL, MTU_TEXT, MTU_LONGTEXT );
+                 CHAN_PORT_TEXT, CHAN_PORT_LONGTEXT, VLC_TRUE );
+    add_integer( "mtu", 1500, NULL, MTU_TEXT, MTU_LONGTEXT, VLC_TRUE );
 #ifdef SYS_DARWIN
-    add_string( "iface", "en0", NULL, IFACE_TEXT, IFACE_LONGTEXT );
+    add_string( "iface", "en0", NULL, IFACE_TEXT, IFACE_LONGTEXT, VLC_TRUE );
 #else
-    add_string( "iface", "eth0", NULL, IFACE_TEXT, IFACE_LONGTEXT );
+    add_string( "iface", "eth0", NULL, IFACE_TEXT, IFACE_LONGTEXT, VLC_TRUE );
 #endif
-    add_string( "iface-addr", "", NULL, IFACE_ADDR_TEXT, IFACE_ADDR_LONGTEXT );
-    add_integer( "ttl", 1, NULL, TTL_TEXT, TTL_LONGTEXT );
+    add_string( "iface-addr", "", NULL, IFACE_ADDR_TEXT, IFACE_ADDR_LONGTEXT, VLC_TRUE );
+    add_integer( "ttl", 1, NULL, TTL_TEXT, TTL_LONGTEXT, VLC_TRUE );
 
     add_integer( "program", 0, NULL,
-                 INPUT_PROGRAM_TEXT, INPUT_PROGRAM_LONGTEXT );
+                 INPUT_PROGRAM_TEXT, INPUT_PROGRAM_LONGTEXT, VLC_TRUE );
     add_integer( "audio-type", -1, NULL,
-                 INPUT_AUDIO_TEXT, INPUT_AUDIO_LONGTEXT );
+                 INPUT_AUDIO_TEXT, INPUT_AUDIO_LONGTEXT, VLC_TRUE );
     add_integer( "audio-channel", -1, NULL,
-                 INPUT_CHAN_TEXT, INPUT_CHAN_LONGTEXT );
+                 INPUT_CHAN_TEXT, INPUT_CHAN_LONGTEXT, VLC_TRUE );
     add_integer( "spu-channel", -1, NULL,
-                 INPUT_SUBT_TEXT, INPUT_SUBT_LONGTEXT );
+                 INPUT_SUBT_TEXT, INPUT_SUBT_LONGTEXT, VLC_TRUE );
 
-    add_string( "dvd", DVD_DEVICE, NULL, DVD_DEV_TEXT, DVD_DEV_LONGTEXT );
-    add_string( "vcd", VCD_DEVICE, NULL, VCD_DEV_TEXT, VCD_DEV_LONGTEXT );
+    add_string( "dvd", DVD_DEVICE, NULL, DVD_DEV_TEXT, DVD_DEV_LONGTEXT, VLC_FALSE );
+    add_string( "vcd", VCD_DEVICE, NULL, VCD_DEV_TEXT, VCD_DEV_LONGTEXT, VLC_FALSE );
 
-    add_bool_with_short( "ipv6", '6', 0, NULL, IPV6_TEXT, IPV6_LONGTEXT );
-    add_bool_with_short( "ipv4", '4', 0, NULL, IPV4_TEXT, IPV4_LONGTEXT );
+    add_bool_with_short( "ipv6", '6', 0, NULL, IPV6_TEXT, IPV6_LONGTEXT, VLC_FALSE );
+    add_bool_with_short( "ipv4", '4', 0, NULL, IPV4_TEXT, IPV4_LONGTEXT, VLC_FALSE );
 
     /* Decoder options */
-    add_category_hint( N_("Decoders"), NULL );
-    add_module( "codec", "decoder", NULL, NULL, CODEC_TEXT, CODEC_LONGTEXT );
+    add_category_hint( N_("Decoders"), NULL, VLC_TRUE );
+    add_module( "codec", "decoder", NULL, NULL, CODEC_TEXT, CODEC_LONGTEXT, VLC_TRUE );
 
-    add_category_hint( N_("Encoders"), NULL );
-    add_module( "video-encoder", "video encoder", NULL, NULL, ENCODER_VIDEO_TEXT, ENCODER_VIDEO_LONGTEXT );
-    add_module( "audio-encoder", "audio encoder", NULL, NULL, ENCODER_AUDIO_TEXT, ENCODER_AUDIO_LONGTEXT );
+    add_category_hint( N_("Encoders"), NULL, VLC_TRUE );
+    add_module( "video-encoder", "video encoder", NULL, NULL, ENCODER_VIDEO_TEXT, ENCODER_VIDEO_LONGTEXT, VLC_TRUE );
+    add_module( "audio-encoder", "audio encoder", NULL, NULL, ENCODER_AUDIO_TEXT, ENCODER_AUDIO_LONGTEXT, VLC_TRUE );
 
     /* Stream output options */
-    add_category_hint( N_("Stream output"), NULL );
-    add_string( "sout", NULL, NULL, SOUT_TEXT, SOUT_LONGTEXT );
-    add_bool( "sout-audio", 1, NULL, SOUT_AUDIO_TEXT, SOUT_AUDIO_LONGTEXT );
-    add_bool( "sout-video", 1, NULL, SOUT_VIDEO_TEXT, SOUT_VIDEO_LONGTEXT );
-    add_string_from_list( "sout-acodec", "", ppsz_sout_acodec, NULL, SOUT_ACODEC_TEXT, SOUT_ACODEC_LONGTEXT );
-    add_string_from_list( "sout-vcodec", "", ppsz_sout_vcodec, NULL, SOUT_VCODEC_TEXT, SOUT_VCODEC_LONGTEXT );
+    add_category_hint( N_("Stream output"), NULL, VLC_TRUE );
+    add_string( "sout", NULL, NULL, SOUT_TEXT, SOUT_LONGTEXT, VLC_TRUE );
+    add_bool( "sout-audio", 1, NULL, SOUT_AUDIO_TEXT, SOUT_AUDIO_LONGTEXT, VLC_TRUE );
+    add_bool( "sout-video", 1, NULL, SOUT_VIDEO_TEXT, SOUT_VIDEO_LONGTEXT, VLC_TRUE );
+    add_string_from_list( "sout-acodec", "", ppsz_sout_acodec, NULL, SOUT_ACODEC_TEXT, SOUT_ACODEC_LONGTEXT, VLC_TRUE );
+    add_string_from_list( "sout-vcodec", "", ppsz_sout_vcodec, NULL, SOUT_VCODEC_TEXT, SOUT_VCODEC_LONGTEXT, VLC_TRUE );
     add_module( "packetizer", "packetizer", NULL, NULL,
-                PACKETIZER_TEXT, PACKETIZER_LONGTEXT );
-    add_module( "mux", "sout mux", NULL, NULL, MUX_TEXT, MUX_LONGTEXT );
+                PACKETIZER_TEXT, PACKETIZER_LONGTEXT, VLC_TRUE );
+    add_module( "mux", "sout mux", NULL, NULL, MUX_TEXT, MUX_LONGTEXT, VLC_TRUE );
     add_module( "access_output", "sout access", NULL, NULL,
-                ACCESS_OUTPUT_TEXT, ACCESS_OUTPUT_LONGTEXT );
+                ACCESS_OUTPUT_TEXT, ACCESS_OUTPUT_LONGTEXT, VLC_TRUE );
 
     /* CPU options */
-    add_category_hint( N_("CPU"), NULL );
+    add_category_hint( N_("CPU"), NULL, VLC_FALSE );
 #if defined( __i386__ )
-    add_bool( "mmx", 1, NULL, MMX_TEXT, MMX_LONGTEXT );
-    add_bool( "3dn", 1, NULL, THREE_DN_TEXT, THREE_DN_LONGTEXT );
-    add_bool( "mmxext", 1, NULL, MMXEXT_TEXT, MMXEXT_LONGTEXT );
-    add_bool( "sse", 1, NULL, SSE_TEXT, SSE_LONGTEXT );
+    add_bool( "mmx", 1, NULL, MMX_TEXT, MMX_LONGTEXT, VLC_FALSE );
+    add_bool( "3dn", 1, NULL, THREE_DN_TEXT, THREE_DN_LONGTEXT, VLC_FALSE );
+    add_bool( "mmxext", 1, NULL, MMXEXT_TEXT, MMXEXT_LONGTEXT, VLC_FALSE );
+    add_bool( "sse", 1, NULL, SSE_TEXT, SSE_LONGTEXT, VLC_FALSE );
 #endif
 #if defined( __powerpc__ ) || defined( SYS_DARWIN )
-    add_bool( "altivec", 1, NULL, ALTIVEC_TEXT, ALTIVEC_LONGTEXT );
+    add_bool( "altivec", 1, NULL, ALTIVEC_TEXT, ALTIVEC_LONGTEXT, VLC_FALSE );
 #endif
 
     /* Playlist options */
-    add_category_hint( N_("Playlist"), NULL );
-    add_bool_with_short( "random", 'Z', 0, NULL, RANDOM_TEXT, RANDOM_LONGTEXT );
-    add_bool( "playlist", 0, NULL, LAUNCH_TEXT, LAUNCH_LONGTEXT );
-    add_bool( "enqueue", 0, NULL, ENQUEUE_TEXT, ENQUEUE_LONGTEXT );
-    add_bool( "loop", 0, NULL, LOOP_TEXT, LOOP_LONGTEXT );
+    add_category_hint( N_("Playlist"), NULL, VLC_FALSE );
+    add_bool_with_short( "random", 'Z', 0, NULL, RANDOM_TEXT, RANDOM_LONGTEXT, VLC_FALSE );
+    add_bool( "playlist", 0, NULL, LAUNCH_TEXT, LAUNCH_LONGTEXT, VLC_FALSE );
+    add_bool( "enqueue", 0, NULL, ENQUEUE_TEXT, ENQUEUE_LONGTEXT, VLC_FALSE );
+    add_bool( "loop", 0, NULL, LOOP_TEXT, LOOP_LONGTEXT, VLC_FALSE );
 
     /* Misc options */
-    add_category_hint( N_("Miscellaneous"), NULL );
-    add_module( "memcpy", "memcpy", NULL, NULL, MEMCPY_TEXT, MEMCPY_LONGTEXT );
-    add_module( "access", "access", NULL, NULL, ACCESS_TEXT, ACCESS_LONGTEXT );
-    add_module( "demux", "demux", NULL, NULL, DEMUX_TEXT, DEMUX_LONGTEXT );
+    add_category_hint( N_("Miscellaneous"), NULL, VLC_TRUE );
+    add_module( "memcpy", "memcpy", NULL, NULL, MEMCPY_TEXT, MEMCPY_LONGTEXT, VLC_TRUE );
+    add_module( "access", "access", NULL, NULL, ACCESS_TEXT, ACCESS_LONGTEXT, VLC_TRUE );
+    add_module( "demux", "demux", NULL, NULL, DEMUX_TEXT, DEMUX_LONGTEXT, VLC_TRUE );
 
 #if defined(WIN32)
-    add_bool( "fast-mutex", 0, NULL, FAST_MUTEX_TEXT, FAST_MUTEX_LONGTEXT );
-    add_integer( "win9x-cv-method", 0, NULL, WIN9X_CV_TEXT, WIN9X_CV_LONGTEXT );
+    add_bool( "fast-mutex", 0, NULL, FAST_MUTEX_TEXT, FAST_MUTEX_LONGTEXT, VLC_TRUE );
+    add_integer( "win9x-cv-method", 0, NULL, WIN9X_CV_TEXT, WIN9X_CV_LONGTEXT, VLC_TRUE );
 #endif
 
     /* Usage (mainly useful for cmd line stuff) */
index 04efb87638c13f8195ff996cc29b9cb2be079eaa..4f8235bdba3e194d1d160474fb7a2b8715002b34 100644 (file)
@@ -2,7 +2,7 @@
  * configuration.c management of the modules configuration
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: configuration.c,v 1.50 2003/01/30 20:59:36 sam Exp $
+ * $Id: configuration.c,v 1.51 2003/02/20 01:52:47 sigmunau Exp $
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
  *
@@ -391,6 +391,7 @@ void config_Duplicate( module_t *p_module, module_config_t *p_orig )
         p_module->p_config[i].f_min = p_orig[i].f_min;
         p_module->p_config[i].f_max = p_orig[i].f_max;
         p_module->p_config[i].b_dirty = p_orig[i].b_dirty;
+        p_module->p_config[i].b_advanced = p_orig[i].b_advanced;
 
         p_module->p_config[i].psz_type = p_orig[i].psz_type ?
                                    strdup( _(p_orig[i].psz_type) ) : NULL;