From 0caaa241e7a1e23bb2d66e09a48a18b873ffcf88 Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Tue, 19 Jun 2012 20:14:46 +0200 Subject: new service interface "Epgsearch-enablesearchtimers-v1.0" to switch the search timers background update on/off --- HISTORY | 5 ++++- HISTORY.DE | 3 +++ epgsearch.c | 13 +++++++++++++ services.h | 7 +++++++ source/vdr-epgsearchclient-0.0.1.tgz | Bin 10188 -> 0 bytes source/vdr-epgsearchclient-0.0.2.tgz | Bin 0 -> 10460 bytes 6 files changed, 27 insertions(+), 1 deletion(-) delete mode 100644 source/vdr-epgsearchclient-0.0.1.tgz create mode 100644 source/vdr-epgsearchclient-0.0.2.tgz diff --git a/HISTORY b/HISTORY index 7783944..4491624 100644 --- a/HISTORY +++ b/HISTORY @@ -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 diff --git a/HISTORY.DE b/HISTORY.DE index 8af190b..e4749b3 100644 --- a/HISTORY.DE +++ b/HISTORY.DE @@ -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; diff --git a/services.h b/services.h index d62c087..5547bb8 100644 --- a/services.h +++ b/services.h @@ -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 deleted file mode 100644 index 779c709..0000000 Binary files a/source/vdr-epgsearchclient-0.0.1.tgz and /dev/null differ diff --git a/source/vdr-epgsearchclient-0.0.2.tgz b/source/vdr-epgsearchclient-0.0.2.tgz new file mode 100644 index 0000000..08f0b82 Binary files /dev/null and b/source/vdr-epgsearchclient-0.0.2.tgz differ -- cgit v1.2.3