]> git.sesse.net Git - vlc/blobdiff - src/libvlc-module.c
On the road of 1.3.0
[vlc] / src / libvlc-module.c
index 5b085b3e5eba41ce3aeea5703a35cbdfba377ccf..67271dea86a849149a4e91063d909e012e3c2904 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * libvlc-module.c: Options for the main (libvlc itself) module
  *****************************************************************************
- * Copyright (C) 1998-2009 the VideoLAN team
+ * Copyright (C) 1998-2009 VLC authors and VideoLAN
  * $Id$
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
@@ -9,19 +9,19 @@
  *          Gildas Bazin <gbazin@videolan.org>
  *          Jean-Paul Saman <jpsaman #_at_# m2x.nl>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or
  * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
 // Pretend we are a builtin module
@@ -937,7 +937,7 @@ static const char *const ppsz_prefres[] = {
 
 #define RTSP_PORT_TEXT N_( "RTSP server port" )
 #define RTSP_PORT_LONGTEXT N_( \
-    "The HTTPS server will listen on this TCP port. " \
+    "The RTSP server will listen on this TCP port. " \
     "The standard RTSP port number is 554. " \
     "However allocation of port numbers below 1025 is usually restricted " \
     "by the operating system." )
@@ -1483,6 +1483,7 @@ static const char *const ppsz_albumart_descriptions[] =
 #define SCALE_DOWN_KEY_LONGTEXT N_("Decrease scale factor.")
 #define DEINTERLACE_KEY_TEXT N_("Cycle deinterlace modes")
 #define DEINTERLACE_KEY_LONGTEXT N_("Cycle through deinterlace modes.")
+#define INTF_TOGGLE_FSC_KEY_TEXT N_("Show controller in fullscreen")
 #define INTF_SHOW_KEY_TEXT N_("Show interface")
 #define INTF_SHOW_KEY_LONGTEXT N_("Raise the interface above all other windows.")
 #define INTF_HIDE_KEY_TEXT N_("Hide interface")
@@ -1667,9 +1668,6 @@ vlc_module_begin ()
               VIDEO_ON_TOP_LONGTEXT, false )
     add_bool( "video-wallpaper", false, WALLPAPER_TEXT,
               WALLPAPER_LONGTEXT, false )
-#ifdef WIN32
-        add_deprecated_alias( "directx-wallpaper" ) /* since 1.1.0 */
-#endif
     add_bool( "disable-screensaver", true, SS_TEXT, SS_LONGTEXT,
               true )
 
@@ -1753,7 +1751,7 @@ vlc_module_begin ()
                 VIDEO_FILTER_TEXT, VIDEO_FILTER_LONGTEXT, false )
     add_module_list_cat( "video-splitter", SUBCAT_VIDEO_VFILTER, NULL,
                         VIDEO_SPLITTER_TEXT, VIDEO_SPLITTER_LONGTEXT, false )
-    add_deprecated_alias( "vout-filter" ) /* since 1.2.0 */
+    add_obsolete_string( "vout-filter" ) /* since 1.2.0 */
 #if 0
     add_string( "pixel-ratio", "1", PIXEL_RATIO_TEXT, PIXEL_RATIO_TEXT )
 #endif
@@ -1882,13 +1880,13 @@ vlc_module_begin ()
     add_integer( "rtsp-port", 8554, RTSP_PORT_TEXT, RTSP_PORT_LONGTEXT, true )
         change_integer_range( 1, 65535 )
     add_loadfile( "http-cert", NULL, HTTP_CERT_TEXT, CERT_LONGTEXT, true )
-        add_deprecated_alias( "sout-http-cert" ) /* since 1.2.0 */
+    add_obsolete_string( "sout-http-cert" ) /* since 1.2.0 */
     add_loadfile( "http-key", NULL, HTTP_KEY_TEXT, KEY_LONGTEXT, true )
-        add_deprecated_alias( "sout-http-key" ) /* since 1.2.0 */
+    add_obsolete_string( "sout-http-key" ) /* since 1.2.0 */
     add_loadfile( "http-ca", NULL, HTTP_CA_TEXT, CA_LONGTEXT, true )
-        add_deprecated_alias( "sout-http-ca" ) /* since 1.2.0 */
+    add_obsolete_string( "sout-http-ca" ) /* since 1.2.0 */
     add_loadfile( "http-crl", NULL, HTTP_CRL_TEXT, CRL_LONGTEXT, true )
-        add_deprecated_alias( "sout-http-crl" ) /* since 1.2.0 */
+    add_obsolete_string( "sout-http-crl" ) /* since 1.2.0 */
 
     set_section( N_( "Socks proxy") , NULL )
     add_string( "socks", NULL,
@@ -1931,25 +1929,48 @@ vlc_module_begin ()
                  CACHING_TEXT, CACHING_LONGTEXT, true )
         change_integer_range( 0, 60000 )
         change_safe()
+    add_obsolete_integer( "vdr-caching" ) /* 1.2.0 */
     add_integer( "live-caching", DEFAULT_PTS_DELAY / 1000,
                  CAPTURE_CACHING_TEXT, CAPTURE_CACHING_LONGTEXT, true )
         change_integer_range( 0, 60000 )
         change_safe()
-#if defined (__linux__)
-        add_deprecated_alias( "v4l2-caching" ) /* 1.2.0 */
-#elif defined (WIN32)
-        add_deprecated_alias( "dshow-caching" ) /* 1.2.0 */
-#endif
+    add_obsolete_integer( "alsa-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "dshow-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "dv-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "dvb-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "eyetv-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "gnomevfs-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "jack-input-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "linsys-hdsdi-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "linsys-sdi-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "oss-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "pvr-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "screen-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "v4l2-caching" ) /* 1.2.0 */
     add_integer( "disc-caching", DEFAULT_PTS_DELAY / 1000,
                  DISC_CACHING_TEXT, DISC_CACHING_LONGTEXT, true )
         change_integer_range( 0, 60000 )
         change_safe()
-        add_deprecated_alias( "dvdnav-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "bd-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "bluray-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "cdda-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "dvdnav-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "dvdread-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "vcd-caching" ) /* 1.2.0 */
     add_integer( "network-caching", CLOCK_FREQ / 1000,
                  NETWORK_CACHING_TEXT, NETWORK_CACHING_LONGTEXT, true )
         change_integer_range( 0, 60000 )
         change_safe()
-        add_deprecated_alias( "http-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "ftp-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "http-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "mms-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "realrtsp-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "rtp-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "rtsp-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "sftp-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "smb-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "tcp-caching" ) /* 1.2.0 */
+    add_obsolete_integer( "udp-caching" ) /* 1.2.0 */
 
     add_integer( "cr-average", 40, CR_AVERAGE_TEXT,
                  CR_AVERAGE_LONGTEXT, true )
@@ -2110,7 +2131,7 @@ vlc_module_begin ()
               PLAYLISTENQUEUE_LONGTEXT, true )
 #endif
 
-#if defined(WIN32)
+#if defined(WIN32) || defined(__OS2__)
     add_bool( "high-priority", 0, HPRIORITY_TEXT,
               HPRIORITY_LONGTEXT, false )
 #endif
@@ -2167,7 +2188,7 @@ vlc_module_begin ()
     add_bool( "quiet", 0, QUIET_TEXT, QUIET_LONGTEXT, false )
         change_short('q')
 
-#if !defined(WIN32)
+#if !defined(WIN32) && !defined(__OS2__)
     add_bool( "daemon", 0, DAEMON_TEXT, DAEMON_LONGTEXT, true )
         change_short('d')
 
@@ -2291,8 +2312,7 @@ vlc_module_begin ()
 #   define KEY_SCALE_UP           "Alt+o"
 #   define KEY_SCALE_DOWN         "Shift+Alt+o"
 #   define KEY_DEINTERLACE        "d"
-#   define KEY_INTF_SHOW          "i"
-#   define KEY_INTF_HIDE          "Shift+i"
+#   define KEY_INTF_TOGGLE_FSC    "i"
 #   define KEY_INTF_BOSS          NULL
 #   define KEY_DISC_MENU          "Ctrl+m"
 #   define KEY_TITLE_PREV         "Ctrl+p"
@@ -2409,8 +2429,7 @@ vlc_module_begin ()
 #   define KEY_SCALE_UP           "Alt+o"
 #   define KEY_SCALE_DOWN         "Alt+Shift+o"
 #   define KEY_DEINTERLACE        "d"
-#   define KEY_INTF_SHOW          "i"
-#   define KEY_INTF_HIDE          "Shift+i"
+#   define KEY_INTF_TOGGLE_FSC    "i"
 #   define KEY_INTF_BOSS          NULL
 #   define KEY_DISC_MENU          "Shift+m"
 #   define KEY_TITLE_PREV         "Shift+o"
@@ -2580,10 +2599,10 @@ vlc_module_begin ()
              SCALE_DOWN_KEY_TEXT, SCALE_DOWN_KEY_LONGTEXT, false )
     add_key( "key-deinterlace", KEY_DEINTERLACE,
              DEINTERLACE_KEY_TEXT, DEINTERLACE_KEY_LONGTEXT, false )
-    add_key( "key-intf-show", KEY_INTF_SHOW,
-             INTF_SHOW_KEY_TEXT, INTF_SHOW_KEY_LONGTEXT, true )
-    add_key( "key-intf-hide", KEY_INTF_HIDE,
-             INTF_HIDE_KEY_TEXT, INTF_HIDE_KEY_LONGTEXT, true )
+    add_key( "key-intf-show", KEY_INTF_TOGGLE_FSC,
+             INTF_TOGGLE_FSC_KEY_TEXT, INTF_TOGGLE_FSC_KEY_TEXT, false )
+    add_obsolete_inner( "key-intf-hide", CONFIG_ITEM_KEY )
+
     add_key( "key-intf-boss", KEY_INTF_BOSS,
              INTF_BOSS_KEY_TEXT, INTF_BOSS_KEY_LONGTEXT, true )
     add_key( "key-snapshot", KEY_SNAPSHOT,