summaryrefslogtreecommitdiff
path: root/timers.h
diff options
context:
space:
mode:
Diffstat (limited to 'timers.h')
-rw-r--r--timers.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/timers.h b/timers.h
index 7ee116c8..1bffa84f 100644
--- a/timers.h
+++ b/timers.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: timers.h 4.6 2016/12/23 09:49:31 kls Exp $
+ * $Id: timers.h 4.7 2017/03/30 15:22:36 kls Exp $
*/
#ifndef __TIMERS_H
@@ -200,6 +200,22 @@ public:
///< known remote machines.
};
+bool HandleRemoteTimerModifications(cTimer *NewTimer, cTimer *OldTimer = NULL, cString *Msg = NULL);
+ ///< Performs any operations necessary to synchronize changes to a timer
+ ///< between peer VDR machines. OldTimer must point to the old version
+ ///< of the timer, while NewTimer points to the new version. If either
+ ///< of the two is a remote timer, the necessary SVDRP commands are executed
+ ///< to reflect the changes on the remote machine(s). If NewTimer is NULL,
+ ///< OldTimer will be removed from the remote machine (if applicable).
+ ///< If OldTimer is NULL, NewTimer will be added to the remote machine (if
+ ///< applicable). If anything goes wrong, an error message is generated in the
+ ///< optional Msg string, which should be presented to the user.
+ ///< Any necessary local operations (like adding/deleting the timer to the
+ ///< local list of timers etc.) must be done before and/or after the call to this
+ ///< function. Proper log messages will be generated by this function, even
+ ///< if no remote operations are required.
+ ///< Returns true if successful.
+
// Provide lock controlled access to the list:
DEF_LIST_LOCK(Timers);