Changeset 5f631245d55c891b556e7988d5c3a8c8d58723e5
- 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
| r33522bc |
r5f63124 |
|
| 92 | 92 | int i_socket; |
|---|
| 93 | 93 | char *psz_unix_path; |
|---|
| 94 | | |
|---|
| | 94 | vlc_bool_t b_extend; |
|---|
| | 95 | |
|---|
| 95 | 96 | #ifdef WIN32 |
|---|
| 96 | 97 | HANDLE hConsoleIn; |
|---|
| … | … | |
| 129 | 130 | #define HOST_LONGTEXT N_("Accept commands over a socket rather than stdin. " \ |
|---|
| 130 | 131 | "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 | |
|---|
| 131 | 135 | |
|---|
| 132 | 136 | #ifdef WIN32 |
|---|
| … | … | |
| 151 | 155 | add_bool( "rc-quiet", 0, NULL, QUIET_TEXT, QUIET_LONGTEXT, VLC_FALSE ); |
|---|
| 152 | 156 | #endif |
|---|
| | 157 | add_bool( "rc-extend", 0, NULL, EXTEND_TEXT, EXTEND_LONGTEXT, VLC_FALSE ); |
|---|
| 153 | 158 | |
|---|
| 154 | 159 | set_capability( "interface", 20 ); |
|---|
| … | … | |
| 310 | 315 | p_input = NULL; |
|---|
| 311 | 316 | p_playlist = NULL; |
|---|
| 312 | | |
|---|
| | 317 | |
|---|
| | 318 | p_intf->p_sys->b_extend = config_GetInt( p_intf, "rc-extend" ); |
|---|
| 313 | 319 | /* Register commands that will be cleaned up upon object destruction */ |
|---|
| 314 | 320 | var_Create( p_intf, "quit", VLC_VAR_VOID | VLC_VAR_ISCOMMAND ); |
|---|
| … | … | |
| 607 | 613 | printf(_("| chapter_p . . previous chapter in current item\n")); |
|---|
| 608 | 614 | 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"); |
|---|
| 614 | 615 | printf(_("| seek X . seek in seconds, for instance `seek 12'\n")); |
|---|
| 615 | 616 | printf(_("| pause . . . . . . . . . . . . . . toggle pause\n")); |
|---|
| … | … | |
| 623 | 624 | printf(_("| achan [X]. . . . . . . . set/get audio channels\n")); |
|---|
| 624 | 625 | 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 | } |
|---|
| 625 | 634 | printf(_("| help . . . . . . . . . . . . . this help message\n")); |
|---|
| 626 | 635 | printf(_("| logout . . . . . .exit (if in socket connection)\n")); |
|---|