Add a few shortcuts, cvlc, nvlc, rvlc for cli, ncurses and rc
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 24 Nov 2007 00:57:42 +0000 (00:57 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 24 Nov 2007 00:57:42 +0000 (00:57 +0000)
configure.ac
modules/control/rc.c
modules/gui/ncurses.c
modules/misc/dummy/dummy.c

index 4c62abb..15156bb 100644 (file)
@@ -1249,6 +1249,8 @@ VLC_ADD_PLUGINS([packetizer_mpegvideo packetizer_h264])
 VLC_ADD_PLUGINS([packetizer_mpeg4video packetizer_mpeg4audio])
 VLC_ADD_PLUGINS([packetizer_vc1])
 
+ALIASES="${ALIASES} cvlc"
+
 dnl
 dnl default modules that need g++
 dnl
@@ -1265,6 +1267,7 @@ if test "${SYS}" != "mingwce"; then
   VLC_ADD_PLUGINS([float32_mixer spdif_mixer simple_channel_mixer])
   VLC_ADD_PLUGINS([dolby_surround_decoder headphone_channel_mixer normvol equalizer param_eq])
   VLC_ADD_PLUGINS([converter_float a52tospdif dtstospdif audio_format])
+  ALIASES="${ALIASES} rvlc"
 fi
 
 dnl
@@ -5359,6 +5362,7 @@ AC_ARG_ENABLE(ncurses,
         ],
         [AC_CHECK_LIB( ncurses, mvprintw,
           [VLC_ADD_PLUGINS([ncurses])
+          ALIASES="${ALIASES} nvlc"
           VLC_ADD_LIBS([ncurses],[-lncurses])],
           [AS_IF([test "x${enable_ncurses}" != "x"], [
             AC_MSG_ERROR([libncurses not found])])]
index e316691..b5b4a67 100644 (file)
@@ -192,6 +192,8 @@ vlc_module_begin();
     add_string( "rc-host", 0, NULL, HOST_TEXT, HOST_LONGTEXT, VLC_TRUE );
 
     set_capability( "interface", 20 );
+    set_program( "rvlc" );
+
     set_callbacks( Activate, Deactivate );
 vlc_module_end();
 
index 81a6b25..60076fa 100644 (file)
@@ -114,6 +114,7 @@ vlc_module_begin();
     set_category( CAT_INTERFACE );
     set_subcategory( SUBCAT_INTERFACE_MAIN );
     set_callbacks( Open, Close );
+    set_program( "nvlc" );
     add_shortcut( "curses" );
     add_directory( "browse-dir", NULL, NULL, BROWSE_TEXT, BROWSE_LONGTEXT, VLC_FALSE );
 vlc_module_end();
index 5c81453..4dbc51a 100644 (file)
@@ -57,6 +57,7 @@ vlc_module_begin();
     set_description( _("Dummy interface function") );
     set_capability( "interface", 0 );
     add_shortcut( "vlc" );
+    set_program( "cvlc" );
     set_callbacks( E_(OpenIntf), NULL );
 #ifdef WIN32
     set_section( N_( "Dummy Interface" ), NULL );