summaryrefslogtreecommitdiff
path: root/dynamicdevice.h
diff options
context:
space:
mode:
authorLars Hanisch <dvb@flensrocker.de>2011-02-17 01:44:32 +0100
committerLars Hanisch <dvb@flensrocker.de>2011-02-17 01:44:32 +0100
commitc3cc3a490df4937dc70cc2442c6724c4b6d956ec (patch)
treec2a58ac35d051230888a9d60ad405c44764994dc /dynamicdevice.h
parenta5a5be51f1d261a43f142f8be86229f2c46b1482 (diff)
downloadvdr-plugin-dynamite-c3cc3a490df4937dc70cc2442c6724c4b6d956ec.tar.gz
vdr-plugin-dynamite-c3cc3a490df4937dc70cc2442c6724c4b6d956ec.tar.bz2
dynamite can call an external program if the GetTSTimeout of a device triggers
In setup.conf set dynamite.GetTSTimeoutHandler to a program you want to execute. If the udev-property dynamite_timeout_handler_arg is set it will be passed as the argument to it otherwise the devpath with wich the device was attached to dynamite.
Diffstat (limited to 'dynamicdevice.h')
-rw-r--r--dynamicdevice.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/dynamicdevice.h b/dynamicdevice.h
index e499774..488b789 100644
--- a/dynamicdevice.h
+++ b/dynamicdevice.h
@@ -37,10 +37,12 @@ public:
static eDynamicDeviceReturnCode SetLockDevice(const char *DevPath, bool Lock);
static eDynamicDeviceReturnCode SetGetTSTimeout(const char *DevPath, int Seconds);
static void SetDefaultGetTSTimeout(int Seconds);
+ static eDynamicDeviceReturnCode SetGetTSTimeoutHandlerArg(const char *DevPath, const char *Arg);
static bool IsAttached(const char *DevPath);
private:
int index;
cString *devpath;
+ cString *getTSTimeoutHandlerArg;
bool isDetachable;
time_t getTSWatchdog;
int getTSTimeout;