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
5
void
EPGInfo_DestroyCache
(
void
)
6
{
7
TRACEENTER
();
8
9
if
(
EPGInfoCacheMap
)
10
{
11
//Release the mapped memory
12
msync(
EPGInfoCacheMap
,
EPGInfoCacheSize
, MS_SYNC);
13
munmap(
EPGInfoCacheMap
,
EPGInfoCacheSize
);
14
EPGInfoCacheMap
= NULL;
15
EPGInfoCache
= NULL;
16
EPGInfoCacheSize
= 0;
17
EPGInfoCacheEntries
= 0;
18
EPGInfoNrEntries
= 0;
19
20
//Close and delete the cache file
21
close(
EPGInfoCacheFile
);
22
unlink(
EPGCacheFile
);
23
}
24
25
TRACEEXIT
();
26
}
EPGInfo_DestroyCache
void EPGInfo_DestroyCache(void)
Definition:
EPGInfo_DestroyCache.c:5
EPGCacheFile
char EPGCacheFile[40]
Definition:
EPGInfo_FindFirst.c:13
EPGInfoCacheSize
dword EPGInfoCacheSize
Definition:
EPGInfo_FindFirst.c:7
EPGInfoCacheMap
byte * EPGInfoCacheMap
Definition:
EPGInfo_FindFirst.c:8
EPGInfoNrEntries
int EPGInfoNrEntries
Definition:
EPGInfo_FindFirst.c:4
EPGInfoCacheEntries
int EPGInfoCacheEntries
Definition:
EPGInfo_FindFirst.c:3
EPGInfoCacheFile
int EPGInfoCacheFile
Definition:
EPGInfo_FindFirst.c:6
EPGInfoCache
TYPE_EPGInfo * EPGInfoCache
Definition:
EPGInfo_FindFirst.c:9
FBLib_EPG.h
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
EPG
EPGInfo_DestroyCache.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3