summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-09-22 14:23:55 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-09-22 14:23:55 +0200
commit9f1046221d2fd6f8b4b2713174eccb7fe535e6d3 (patch)
treea047af3caec6d6ea5ce9da5ca91431584f9cd2cb /vdr.c
parent8223bd1f188e9bd61aa70f275d0512770e2d051f (diff)
downloadvdr-9f1046221d2fd6f8b4b2713174eccb7fe535e6d3.tar.gz
vdr-9f1046221d2fd6f8b4b2713174eccb7fe535e6d3.tar.bz2
New command line option '-r'
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/vdr.c b/vdr.c
index 0c9b98c0..6effc0ff 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/people/kls/vdr
*
- * $Id: vdr.c 1.74 2001/09/22 13:38:28 kls Exp $
+ * $Id: vdr.c 1.75 2001/09/22 14:05:40 kls Exp $
*/
#define _GNU_SOURCE
@@ -96,6 +96,7 @@ int main(int argc, char *argv[])
{ "help", no_argument, NULL, 'h' },
{ "log", required_argument, NULL, 'l' },
{ "port", required_argument, NULL, 'p' },
+ { "record", required_argument, NULL, 'r' },
{ "shutdown", required_argument, NULL, 's' },
{ "terminal", required_argument, NULL, 't' },
{ "video", required_argument, NULL, 'v' },
@@ -106,7 +107,7 @@ int main(int argc, char *argv[])
int c;
int option_index = 0;
- while ((c = getopt_long(argc, argv, "a:c:dD:E:hl:p:s:t:v:V:w:", long_options, &option_index)) != -1) {
+ while ((c = getopt_long(argc, argv, "a:c:dD:E:hl:p:r:s:t:v:V:w:", long_options, &option_index)) != -1) {
switch (c) {
case 'a': cDvbApi::SetAudioCommand(optarg);
break;
@@ -143,6 +144,7 @@ int main(int argc, char *argv[])
" 2 = errors and info, 3 = errors, info and debug\n"
" -p PORT, --port=PORT use PORT for SVDRP (default: %d)\n"
" 0 turns off SVDRP\n"
+ " -r CMD, --record=CMD call CMD before and after a recording\n"
" -s CMD, --shutdown=CMD call CMD to shutdown the computer\n"
" -t TTY, --terminal=TTY controlling tty\n"
" -v DIR, --video=DIR use DIR as video directory (default: %s)\n"
@@ -180,6 +182,8 @@ int main(int argc, char *argv[])
return 2;
}
break;
+ case 'r': cRecordControl::SetUserCommand(optarg);
+ break;
case 's': Shutdown = optarg;
break;
case 't': Terminal = optarg;