FireBirdLib - Topfield TMS PVR TAP Programming Library
EPGInfo_DestroyCache.c
Go to the documentation of this file.
1#include <unistd.h>
2#include <sys/mman.h>
3#include "FBLib_EPG.h"
4
6{
8
10 {
11 //Release the mapped memory
12 msync(EPGInfoCacheMap, EPGInfoCacheSize, MS_SYNC);
14 EPGInfoCacheMap = NULL;
15 EPGInfoCache = NULL;
19
20 //Close and delete the cache file
21 close(EPGInfoCacheFile);
22 unlink(EPGCacheFile);
23 }
24
25 TRACEEXIT();
26}
void EPGInfo_DestroyCache(void)
char EPGCacheFile[40]
dword EPGInfoCacheSize
byte * EPGInfoCacheMap
int EPGInfoNrEntries
int EPGInfoCacheEntries
int EPGInfoCacheFile
TYPE_EPGInfo * EPGInfoCache
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243