From 59407d314666e9c334e8af7d8300dcf0198f60ea Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Sat, 11 Apr 2009 20:27:30 +0200 Subject: new patch to integrate epgsearch's timer edit menu in VDR timer menu --- patches/vdr.epgsearch-exttimeredit.diff | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 patches/vdr.epgsearch-exttimeredit.diff (limited to 'patches/vdr.epgsearch-exttimeredit.diff') diff --git a/patches/vdr.epgsearch-exttimeredit.diff b/patches/vdr.epgsearch-exttimeredit.diff new file mode 100644 index 0000000..36e3554 --- /dev/null +++ b/patches/vdr.epgsearch-exttimeredit.diff @@ -0,0 +1,26 @@ +--- menu.c.orig 2009-04-11 14:47:08.000000000 +0200 ++++ menu.c 2009-04-11 15:13:30.000000000 +0200 +@@ -985,6 +985,23 @@ eOSState cMenuTimers::Edit(void) + if (HasSubMenu() || Count() == 0) + return osContinue; + isyslog("editing timer %s", *CurrentTimer()->ToDescr()); ++ ++ // Data structure for service "Epgsearch-exttimeredit-v1.0" ++ struct Epgsearch_exttimeredit_v1_0 ++ { ++ // in ++ cTimer* timer; // pointer to the timer to edit ++ bool bNew; // flag that indicates, if this is a new timer or an existing one ++ const cEvent* event; // pointer to the event corresponding to this timer (may be NULL) ++ // out ++ cOsdMenu* pTimerMenu; // pointer to the menu of results ++ } exttimeredit; ++ exttimeredit.timer = CurrentTimer(); ++ exttimeredit.bNew = false; ++ exttimeredit.event = NULL; ++ if (cPluginManager::CallFirstService("Epgsearch-exttimeredit-v1.0", &exttimeredit)) ++ return AddSubMenu(exttimeredit.pTimerMenu); ++ + return AddSubMenu(new cMenuEditTimer(CurrentTimer())); + } + -- cgit v1.2.3