diff options
author | Christian Wieninger <cwieninger@gmx.de> | 2012-06-19 20:14:46 +0200 |
---|---|---|
committer | Christian Wieninger <cwieninger@gmx.de> | 2012-06-19 20:14:46 +0200 |
commit | 0caaa241e7a1e23bb2d66e09a48a18b873ffcf88 (patch) | |
tree | 759ea57091c38d1bd1021af0865945b84bd066f1 | |
parent | 06553438c9048adfaea0ae69d428957d97539655 (diff) | |
download | vdr-plugin-epgsearch-0caaa241e7a1e23bb2d66e09a48a18b873ffcf88.tar.gz vdr-plugin-epgsearch-0caaa241e7a1e23bb2d66e09a48a18b873ffcf88.tar.bz2 |
new service interface "Epgsearch-enablesearchtimers-v1.0" to switch the search timers background update on/off
-rw-r--r-- | HISTORY | 5 | ||||
-rw-r--r-- | HISTORY.DE | 3 | ||||
-rw-r--r-- | epgsearch.c | 13 | ||||
-rw-r--r-- | services.h | 7 | ||||
-rw-r--r-- | source/vdr-epgsearchclient-0.0.1.tgz | bin | 10188 -> 0 bytes | |||
-rw-r--r-- | source/vdr-epgsearchclient-0.0.2.tgz | bin | 0 -> 10460 bytes |
6 files changed, 27 insertions, 1 deletions
@@ -1,8 +1,11 @@ VDR Plugin 'epgsearch' Revision History --------------------------------------- -2012-05-xx; Version 1.0.1 - maintenance release +2012-06-xx; Version 1.0.1 - maintenance release new: +- new service interface "Epgsearch-enablesearchtimers-v1.0" to switch the search timers + background update on/off. Updated the sample in source/vdr-epgsearchclient-0.0.2.tgz + to use the new service. - new format specifier like %02i in the epgsearchcats.conf, thanks to Joe_D for providing a patch ('man 5 epgsearchcats.conf' for more information). - in the menu 'recordings done' you can now toggle the blue key to 'Orphaned' to show @@ -3,6 +3,9 @@ VDR Plugin 'epgsearch' Revision History 2012-05-xx: Version 1.0.1 - Maintenance Release neu: +- Neue Service-Schnittstelle "Epgsearch-enablesearchtimers-v1.0" zum Ein- und Ausschalten + des Suchtimer-Updates im Hintergrund. Das Beispiel in source/vdr-epgsearchclient-0.0.2.tgz + wurde aktualisiert und nutzt die neue Schnittstelle. - Neuer Format-Eintrag wie z.B. %02i in der epgsearchcats.conf, Danke an Joe_D für den Patch ('man 5 epgsearchcats.conf' für mehr Information). - Im Menu 'Erledigte Aufnahmen' kann nun mit der blauen Taste zu 'Verwaiste' umgeschaltet diff --git a/epgsearch.c b/epgsearch.c index b5eac94..149d74a 100644 --- a/epgsearch.c +++ b/epgsearch.c @@ -258,6 +258,19 @@ bool cPluginEpgsearch::Service(const char *Id, void *Data) return true; } + if (strcmp(Id, "Epgsearch-enablesearchtimers-v1.0") == 0) { + if (Data == NULL) + return true; + else + { + Epgsearch_enablesearchtimers_v1_0* serviceData = (Epgsearch_enablesearchtimers_v1_0*) Data; + if (serviceData->enable && cSearchTimerThread::m_Instance == NULL) + cSearchTimerThread::Init(this); + else if (!serviceData->enable && cSearchTimerThread::m_Instance != NULL) + cSearchTimerThread::Exit(); + } + return true; + } if (strcmp(Id, "Epgsearch-updatesearchtimers-v1.0") == 0) { if (Data == NULL) return true; @@ -55,6 +55,13 @@ struct Epgsearch_exttimeredit_v1_0 cOsdMenu* pTimerMenu; // pointer to the menu of results }; +// Data structure for service "Epgsearch-enablesearchtimers-v1.0" +struct Epgsearch_enablesearchtimers_v1_0 +{ +// in + bool enable; // enable search timer thread? +}; + // Data structure for service "Epgsearch-updatesearchtimers-v1.0" struct Epgsearch_updatesearchtimers_v1_0 { diff --git a/source/vdr-epgsearchclient-0.0.1.tgz b/source/vdr-epgsearchclient-0.0.1.tgz Binary files differdeleted file mode 100644 index 779c709..0000000 --- a/source/vdr-epgsearchclient-0.0.1.tgz +++ /dev/null diff --git a/source/vdr-epgsearchclient-0.0.2.tgz b/source/vdr-epgsearchclient-0.0.2.tgz Binary files differnew file mode 100644 index 0000000..08f0b82 --- /dev/null +++ b/source/vdr-epgsearchclient-0.0.2.tgz |