From c3a76dfef6b62a003f159f2ec1ef0ca6d2290db7 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 25 Sep 2005 13:49:31 +0200 Subject: The '.update' file in the video directory is now touched when a recording is added or deleted --- recording.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'recording.h') diff --git a/recording.h b/recording.h index aa33dd3b..9230540f 100644 --- a/recording.h +++ b/recording.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.h 1.42 2005/09/25 11:31:28 kls Exp $ + * $Id: recording.h 1.43 2005/09/25 13:47:07 kls Exp $ */ #ifndef __RECORDING_H @@ -93,6 +93,7 @@ public: class cRecordings : public cList, public cThread { private: + char *updateFileName; bool deleted; time_t lastUpdate; int state; @@ -113,7 +114,10 @@ public: ///< function returns only after the update has completed. ///< Returns true if Wait is true and there is anyting in the list ///< of recordings, false otherwise. - void TriggerUpdate(void) { lastUpdate = 0; } + void TouchUpdate(void); + ///< Touches the '.update' file in the video directory, so that other + ///< instances of VDR that access the same video directory can be triggered + ///< to update their recordings list. bool NeedsUpdate(void); void ChangeState(void) { state++; } bool StateChanged(int &State); -- cgit v1.2.3