13 #include <arpa/inet.h> 25 #define VDRVERSION "2.2.0" 26 #define VDRVERSNUM 20200 // Version * 10000 + Major * 100 + Minor 30 #define APIVERSION "2.2.0" 31 #define APIVERSNUM 20200 // Version * 10000 + Major * 100 + Minor 39 #define MAXPRIORITY 99 40 #define MINPRIORITY (-MAXPRIORITY) 41 #define LIVEPRIORITY 0 // priority used when selecting a device for live viewing 42 #define TRANSFERPRIORITY (LIVEPRIORITY - 1) // priority used for actual local Transfer Mode 43 #define IDLEPRIORITY (MINPRIORITY - 1) // priority of an idle device 44 #define MAXLIFETIME 99 45 #define DEFINSTRECTIME 180 // default instant recording time (minutes) 47 #define TIMERMACRO_TITLE "TITLE" 48 #define TIMERMACRO_EPISODE "EPISODE" 51 #define MAINMENUHOOKSVERSION "1.0.1" 52 #define MAINMENUHOOKSVERSNUM 10001 // Version * 10000 + Major * 100 + Minor 54 #define MINOSDWIDTH 480 55 #define MAXOSDWIDTH 1920 56 #define MINOSDHEIGHT 324 57 #define MAXOSDHEIGHT 1200 59 #define MaxFileName NAME_MAX // obsolete - use NAME_MAX directly instead! 60 #define MaxSkinName 16 61 #define MaxThemeName 16 70 #define STANDARD_DVB 0 71 #define STANDARD_ANSISCTE 1 72 #define STANDARD_NORDIG 2 82 bool Parse(
const char *s);
94 int Size(
void)
const {
return size; }
95 int *
Array(
void) {
return array; }
96 bool FromString(
const char *s);
98 int FirstDeviceIndex(
int DeviceIndex)
const;
120 bool Load(
const char *FileName = NULL,
bool AllowComments =
false,
bool MustExist =
false)
125 fileName = strdup(FileName);
126 allowComments = AllowComments;
128 bool result = !MustExist;
129 if (fileName && access(fileName, F_OK) == 0) {
130 isyslog(
"loading %s", fileName);
131 FILE *f = fopen(fileName,
"r");
137 while ((s = ReadLine.
Read(f)) != NULL) {
140 char *p = strchr(s,
'#');
150 esyslog(
"ERROR: error in %s, line %d", fileName, line);
164 fprintf(stderr,
"vdr: error while reading '%s'\n", fileName);
170 T *l = (T *)this->First();
194 cNestedItem(
const char *Text,
bool WithSubItems =
false);
197 const char *
Text(
void)
const {
return text; }
200 void SetText(
const char *Text);
201 void SetSubItems(
bool On);
213 bool Load(
const char *FileName);
219 bool LocalhostOnly(
void);
236 cSetupLine(
const char *Name,
const char *Value,
const char *Plugin = NULL);
239 const char *
Plugin(
void) {
return plugin; }
240 const char *
Name(
void) {
return name; }
241 const char *
Value(
void) {
return value; }
249 void StoreLanguages(
const char *
Name,
int *Values);
250 bool ParseLanguages(
const char *Value,
int *Values);
251 bool Parse(
const char *
Name,
const char *Value);
253 void Store(
const char *
Name,
const char *Value,
const char *Plugin = NULL,
bool AllowMultiple =
false);
254 void Store(
const char *
Name,
int Value,
const char *Plugin = NULL);
255 void Store(
const char *
Name,
double &Value,
const char *Plugin = NULL);
269 char NameInstantRecord[NAME_MAX + 1];
368 bool Load(
const char *FileName);
const char * Text(void) const
cNestedItemList TimerCommands
bool Parse(const char *s)
#define I18N_MAX_LANGUAGES
cNestedItemList RecordingCommands
int AlwaysSortFoldersFirst
bool Load(const char *FileName=NULL, bool AllowComments=false, bool MustExist=false)
const char * Plugin(void)
const char * FileName(void)
virtual int Compare(const cListObject &ListObject) const
Must return 0 if this object is equal to ListObject, a positive value if it is "greater", and a negative value if it is "smaller".
int AdaptiveSkipAlternate
int SubtitleFgTransparency
cList< cNestedItem > * SubItems(void)
bool Accepts(in_addr_t Address)
int ShowChannelNamesWithSource
#define I18N_MAX_LOCALE_LEN
cList< cNestedItem > * subItems