summaryrefslogtreecommitdiff
path: root/menu.h
diff options
context:
space:
mode:
authorTimo Eskola <timo@tolleri.net>2018-08-25 16:59:14 +0300
committerTimo Eskola <timo@tolleri.net>2018-08-25 16:59:14 +0300
commit92359bd5383b9c98d3addafe06fbb78b2849676b (patch)
treeefce4269fadca6ea423b9154de07059d8eea420a /menu.h
parent8ff3b0a24e5da86cb6eab6b180d03fcfd592676b (diff)
downloadvdr-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.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/menu.h b/menu.h
index f364d47..62720c6 100644
--- a/menu.h
+++ b/menu.h
@@ -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();