From c3cc3a490df4937dc70cc2442c6724c4b6d956ec Mon Sep 17 00:00:00 2001 From: Lars Hanisch Date: Thu, 17 Feb 2011 01:44:32 +0100 Subject: 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. --- dynamicdevice.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dynamicdevice.h') 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; -- cgit v1.2.3