diff options
author | Timo Eskola <timo@tolleri.net> | 2018-08-25 16:59:14 +0300 |
---|---|---|
committer | Timo Eskola <timo@tolleri.net> | 2018-08-25 16:59:14 +0300 |
commit | 92359bd5383b9c98d3addafe06fbb78b2849676b (patch) | |
tree | efce4269fadca6ea423b9154de07059d8eea420a /menu.h | |
parent | 8ff3b0a24e5da86cb6eab6b180d03fcfd592676b (diff) | |
download | vdr-plugin-duplicates-92359bd5383b9c98d3addafe06fbb78b2849676b.tar.gz vdr-plugin-duplicates-92359bd5383b9c98d3addafe06fbb78b2849676b.tar.bz2 |
Fixed building with VDR 2.4.0
Diffstat (limited to 'menu.h')
-rw-r--r-- | menu.h | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -14,8 +14,16 @@ #include <vdr/osdbase.h> #include <vdr/recording.h> #include <vdr/menuitems.h> +#include <vdr/videodir.h> #include "config.h" +// Define empty locking macros for backwards compatibility +#ifndef LOCK_TIMERS_WRITE +#define LOCK_TIMERS_WRITE +#endif +#ifndef LOCK_RECORDINGS_READ +#define LOCK_RECORDINGS_READ +#endif class cMenuDuplicateItem; class cMenuSetupDuplicates; @@ -24,7 +32,11 @@ class cMenuSetupDuplicates; class cMenuDuplicates : public cOsdMenu { friend class cMenuSetupDuplicates; private: +#if VDRVERSNUM >= 20301 + cStateKey recordingsStateKey; +#else int recordingsState; +#endif int helpKeys; void SetHelpKeys(void); void Set(bool Refresh = false); @@ -33,8 +45,6 @@ private: eOSState Delete(void); eOSState Info(void); eOSState ToggleHidden(void); -protected: - cRecording *GetRecording(cMenuDuplicateItem *Item); public: cMenuDuplicates(); ~cMenuDuplicates(); |