#! /bin/sh /usr/share/dpatch/dpatch-run ## 91_autotimeredit-0.1.8-1.3.38.dpatch by Thomas Günther ## http://toms-cafe.de/vdr/download/autotimeredit-0.1.8-1.3.38.diff ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Changes for VDR >= 1.3.38. @DPATCH@ --- autotimeredit-0.1.8/autotimeredit.c +++ autotimeredit-0.1.8/autotimeredit.c @@ -44,7 +44,11 @@ tParamInt update_b_e = { false, false, false, 0x1, 0x0 }; // begin tParamInt updatemethod = { false, false, false, 0x0, 0x0 }; // none tParamInt updatetimerecords = { false, false, false, -1 }; +#if VDRVERSNUM >= 10338 +tParamUInt use_defaultdictionary = { false, false, false, 0x1F, 0x00 }; // all source for default dictionary +#else tParamInt use_defaultdictionary = { false, false, false, 0x1F, 0x00 }; // all source for default dictionary +#endif tParamInt use_except_repeat = { false, false, false, false }; tParamInt use_weekdays = { false, false, false, false }; tParamFile vdradminconfig = { false, false, false, "/etc/vdradmin/vdradmind.conf" }; --- autotimeredit-0.1.8/autotimeredit.h +++ autotimeredit-0.1.8/autotimeredit.h @@ -37,6 +37,17 @@ int i; // ignore extentions for vdradmin.at }; +struct tParamUInt { + bool c; // read command line + bool r; // read config file + bool h; // hide in setup menu + uint d; // default + uint u; // used + uint s; // config file + uint o; // old value for setup menu + uint i; // ignore extentions for vdradmin.at + }; + struct tParamFile { bool c; // read command line bool r; // read config file @@ -63,7 +74,11 @@ extern tParamInt update_b_e; extern tParamInt updatemethod; extern tParamInt updatetimerecords; +#if VDRVERSNUM >= 10338 +extern tParamUInt use_defaultdictionary; +#else extern tParamInt use_defaultdictionary; +#endif extern tParamInt use_except_repeat; extern tParamInt use_weekdays; extern tParamFile vdradminconfig; --- autotimeredit-0.1.8/autotimers.h +++ autotimeredit-0.1.8/autotimers.h @@ -24,7 +24,11 @@ private: int active; char search[MaxFileName]; +#if VDRVERSNUM >= 10338 + uint options; +#else int options; +#endif int useStart; int startTime; int useStop;