Changeset 5f631245d55c891b556e7988d5c3a8c8d58723e5

Show
Ignore:
Timestamp:
26/09/04 17:49:41 (4 years ago)
Author:
Mark Moriarty <markfm@videolan.org>
git-committer:
Mark Moriarty <markfm@videolan.org> 1096213781 +0000
git-parent:

[33522bc5e51b591e10b4bd293f3396fee063412c]

git-author:
Mark Moriarty <markfm@videolan.org> 1096213781 +0000
Message:

Add --rc-extend switch, for extra commands.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/control/rc.c

    r33522bc r5f63124  
    9292    int i_socket; 
    9393    char *psz_unix_path; 
    94  
     94    vlc_bool_t b_extend; 
     95     
    9596#ifdef WIN32 
    9697    HANDLE hConsoleIn; 
     
    129130#define HOST_LONGTEXT N_("Accept commands over a socket rather than stdin. " \ 
    130131            "You can set the address and port the interface will bind to." ) 
     132#define EXTEND_TEXT N_("Extended help") 
     133#define EXTEND_LONGTEXT N_("List additional commands.") 
     134             
    131135 
    132136#ifdef WIN32 
     
    151155    add_bool( "rc-quiet", 0, NULL, QUIET_TEXT, QUIET_LONGTEXT, VLC_FALSE ); 
    152156#endif 
     157    add_bool( "rc-extend", 0, NULL, EXTEND_TEXT, EXTEND_LONGTEXT, VLC_FALSE ); 
    153158 
    154159    set_capability( "interface", 20 ); 
     
    310315    p_input = NULL; 
    311316    p_playlist = NULL; 
    312  
     317  
     318    p_intf->p_sys->b_extend = config_GetInt( p_intf, "rc-extend" ); 
    313319    /* Register commands that will be cleaned up upon object destruction */ 
    314320    var_Create( p_intf, "quit", VLC_VAR_VOID | VLC_VAR_ISCOMMAND ); 
     
    607613            printf(_("| chapter_p  . .  previous chapter in current item\n")); 
    608614            printf("| \n"); 
    609             printf(_("| marquee STRING . . . . . overlay STRING in video\n")); 
    610             printf(_("| marq-x X . . . . . .offset of marquee, from left\n")); 
    611             printf(_("| marq-y Y . . . . . . offset of marquee, from top\n")); 
    612             printf(_("| marq-timeout T. . . . .timeout of marquee, in ms\n")); 
    613             printf("| \n"); 
    614615            printf(_("| seek X . seek in seconds, for instance `seek 12'\n")); 
    615616            printf(_("| pause  . . . . . . . . . . . . . .  toggle pause\n")); 
     
    623624            printf(_("| achan [X]. . . . . . . .  set/get audio channels\n")); 
    624625            printf("| \n"); 
     626            if (p_intf->p_sys->b_extend) 
     627            { 
     628               printf(_("| marquee STRING . . . . . overlay STRING in video\n")); 
     629               printf(_("| marq-x X . . . . . .offset of marquee, from left\n")); 
     630               printf(_("| marq-y Y . . . . . . offset of marquee, from top\n")); 
     631               printf(_("| marq-timeout T. . . . .timeout of marquee, in ms\n")); 
     632               printf("| \n"); 
     633            }     
    625634            printf(_("| help . . . . . . . . . . . . . this help message\n")); 
    626635            printf(_("| logout . . . . . .exit (if in socket connection)\n"));