summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY5
-rw-r--r--HISTORY.DE3
-rw-r--r--epgsearch.c13
-rw-r--r--services.h7
-rw-r--r--source/vdr-epgsearchclient-0.0.1.tgzbin10188 -> 0 bytes
-rw-r--r--source/vdr-epgsearchclient-0.0.2.tgzbin0 -> 10460 bytes
6 files changed, 27 insertions, 1 deletions
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
--- a/source/vdr-epgsearchclient-0.0.1.tgz
+++ /dev/null
Binary files 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
--- /dev/null
+++ b/source/vdr-epgsearchclient-0.0.2.tgz
Binary files differ