add option to read saved epg data frequently

This commit is contained in:
TangoCash
2016-11-20 19:24:08 +01:00
parent 4b88a244da
commit 6cd5dd8e23
12 changed files with 66 additions and 5 deletions

View File

@@ -102,6 +102,7 @@ struct sectionsd
// std::string network_ntpserver;
// std::string epg_dir;
int epg_save_frequently;
int epg_read_frequently;
};
};

View File

@@ -207,6 +207,7 @@ void CSectionsdClient::setConfig(const epg_config config)
msg->network_ntpenable = config.network_ntpenable;
msg->epg_extendedcache = config.epg_extendedcache;
msg->epg_save_frequently= config.epg_save_frequently;
msg->epg_read_frequently= config.epg_read_frequently;
// config.network_ntpserver:
strcpy(&pData[sizeof(sectionsd::commandSetConfig)], config.network_ntpserver.c_str());
// config.epg_dir:

View File

@@ -163,6 +163,7 @@ class CSectionsdClient : private CBasicClient
int epg_extendedcache;
std::string network_ntpserver;
int epg_save_frequently;
int epg_read_frequently;
std::string epg_dir;
} epg_config;