DEFINE_REF(eDVBDB);
- /* THIS CODE IS BAD. it should be replaced by somethine better. */
void eDVBDB::reloadServicelist()
+{
+ loadServicelist(CONFIGDIR"/enigma2/lamedb");
+}
+
+ /* THIS CODE IS BAD. it should be replaced by somethine better. */
+void eDVBDB::loadServicelist(const char *file)
{
eDebug("---- opening lame channel db");
- FILE *f=fopen(CONFIGDIR"/enigma2/lamedb", "rt");
- if (!f)
+ FILE *f=fopen(file, "rt");
+ if (!f && strcmp(file, CONFIGDIR"/enigma2/lamedb") == 0)
{
struct stat s;
if ( !stat("lamedb", &s) )
RESULT getBouquet(const eServiceReference &ref, eBouquet* &bouquet);
//////
- void saveServicelist();
void loadBouquet(const char *path);
eServiceReference searchReference(int tsid, int onid, int sid);
eDVBDB();
virtual ~eDVBDB();
#endif
+ void loadServicelist(const char *filename);
static eDVBDB *getInstance() { return instance; }
void reloadServicelist();
+ void saveServicelist();
void reloadBouquets();
};