/* * config.c: * * See the README file for copyright information and how to reach the author. * */ #include #include "config.h" //*************************************************************************** // Statics //*************************************************************************** int cEpgConfig::logstdout = no; int cEpgConfig::loglevel = 1; int cEpgConfig::argLoglevel = na; int cEpgConfig::logFacility = LOG_USER; const char* cEpgConfig::logName = "unknown"; //*************************************************************************** // Common EPG Service Configuration //*************************************************************************** cEpgConfig::cEpgConfig() { // database connection sstrcpy(dbHost, "localhost", sizeof(dbHost)); dbPort = 3306; sstrcpy(dbName, "epg2vdr", sizeof(dbName)); sstrcpy(dbUser, "epg2vdr", sizeof(dbUser)); sstrcpy(dbPass, "epg", sizeof(dbPass)); sstrcpy(netDevice, getFirstInterface(), sizeof(netDevice)); uuid[0] = 0; getepgimages = yes; } //*************************************************************************** // Has DB Login Changed //*************************************************************************** int cEpgConfig::hasDbLoginChanged(cEpgConfig* old) { if (old->dbPort != dbPort || strcmp(old->dbHost, dbHost) != 0 || strcmp(old->dbName, dbName) != 0 || strcmp(old->dbUser, dbUser) != 0 || strcmp(old->dbPass, dbPass) != 0) { return yes; } return no; }