void eEPGCache::load()
{
-#if 0
FILE *f = fopen("/hdd/epg.dat", "r");
if (f)
{
int size=0;
int cnt=0;
bool md5ok=false;
+#if 0
if (!md5_file("/hdd/epg.dat", 1, md5))
{
FILE *f = fopen("/hdd/epg.dat.md5", "r");
}
}
if ( md5ok )
+#endif
{
char text1[13];
fread( text1, 13, 1, f);
fclose(f);
}
}
-#endif
}
void eEPGCache::save()
{
-#if 0
struct statfs s;
off64_t tmp;
if (statfs("/hdd", &s)<0)
eDebug("%d events written to /hdd/epg.dat", cnt);
eventData::save(f);
fclose(f);
+#if 0
unsigned char md5[16];
if (!md5_file("/hdd/epg.dat", 1, md5))
{
fclose(f);
}
}
- }
#endif
+ }
}
eEPGCache::channel_data::channel_data(eEPGCache *ml)