summaryrefslogtreecommitdiff
path: root/zaplist.h
diff options
context:
space:
mode:
authorMartin Schirrmacher <vdr.zaphistory@schirrmacher.eu>2015-12-09 20:09:19 +0100
committerMartin Schirrmacher <vdr.zaphistory@schirrmacher.eu>2015-12-09 20:09:19 +0100
commit484b48a61c841a72c12c3a347bbafd0b96826da3 (patch)
tree09d1e1825125d11d33529e275552563795d049e8 /zaplist.h
parent111b0cc69414d8025a66b3325a65d7286be87df7 (diff)
downloadvdr-plugin-zaphistory-484b48a61c841a72c12c3a347bbafd0b96826da3.tar.gz
vdr-plugin-zaphistory-484b48a61c841a72c12c3a347bbafd0b96826da3.tar.bz2
add support for vdr-2.3.1HEADmaster
Diffstat (limited to 'zaplist.h')
-rw-r--r--zaplist.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/zaplist.h b/zaplist.h
index e48f836..265845b 100644
--- a/zaplist.h
+++ b/zaplist.h
@@ -24,13 +24,21 @@ class cZapHistory : public cConfig<cZapHistoryChannel> {
cZapHistoryChannel *currentChannel;
time_t lastSwitch;
+#if APIVERSNUM >= 20301
+ cZapHistoryChannel* FindChannel( const cChannel *channel );
+#else
cZapHistoryChannel* FindChannel( cChannel *channel );
+#endif
cZapHistorySortMode sortMode;
void UpdateHistory( cZapHistoryChannel *zapChan);
public:
cZapHistory();
- void ChannelSwitch( cChannel *channel );
+#if APIVERSNUM >= 20301
+ void ChannelSwitch( const cChannel *channel );
+#else
+ void ChannelSwitch( cChannel *channel );
+#endif
void ViewInterrupted();
void ViewContinue();
void UpdateWatchTime();