diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-09-23 14:02:11 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-09-23 14:02:11 +0200 |
commit | f412897373b05ea78df93b56ab9d97c4bb522801 (patch) | |
tree | a18122202f89ca354808630a8baca079b4fbad9e /recording.c | |
parent | e1f7348922bbca20c29923035cf298bf7f49a392 (diff) | |
download | vdr-f412897373b05ea78df93b56ab9d97c4bb522801.tar.gz vdr-f412897373b05ea78df93b56ab9d97c4bb522801.tar.bz2 |
Calling the '-r' program after editing, too
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/recording.c b/recording.c index f6573781..df504074 100644 --- a/recording.c +++ b/recording.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.c 1.36 2001/09/02 15:09:28 kls Exp $ + * $Id: recording.c 1.37 2001/09/23 13:43:29 kls Exp $ */ #define _GNU_SOURCE @@ -513,3 +513,17 @@ cMark *cMarks::GetNext(int Position) return NULL; } +// --- cRecordingUserCommand ------------------------------------------------- + +const char *cRecordingUserCommand::command = NULL; + +void cRecordingUserCommand::InvokeCommand(const char *State, const char *RecordingFileName) +{ + if (command) { + char *cmd; + asprintf(&cmd, "%s %s '%s'", command, State, RecordingFileName); + isyslog(LOG_INFO, "executing '%s'", cmd); + system(cmd); + delete cmd; + } +} |