本文整理汇总了C++中TRACEEXIT函数的典型用法代码示例。如果您正苦于以下问题:C++ TRACEEXIT函数的具体用法?C++ TRACEEXIT怎么用?C++ TRACEEXIT使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了TRACEEXIT函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: HDD_TAP_isDisabledAll
bool HDD_TAP_isDisabledAll(void)
{
TRACEENTER();
dword i;
tTMSTAPTaskTable *TMSTAPTaskTable;
TMSTAPTaskTable = (tTMSTAPTaskTable*)FIS_vTAPTable();
//The curTapTask variable is not thread safe. Call InitTAPex() if this function will be called from a sub thread
if(TAP_TableIndex == 0xffffffff)
{
dword *curTapTask;
curTapTask = (dword*)FIS_vCurTapTask();
if(!curTapTask)
{
TRACEEXIT();
return FALSE;
}
TAP_TableIndex = *curTapTask;
}
for(i = 0; i < TAP_MAX; i++)
{
if((i != TAP_TableIndex) && (TMSTAPTaskTable[i].Status == 1) && (TMSTAPTaskTable[i].unused5 == 0))
{
TRACEEXIT();
return FALSE;
}
}
TRACEEXIT();
return TRUE;
}
示例2: OSDMenuItemModifyValue
bool OSDMenuItemModifyValue(int ItemIndex, char *Text)
{
TRACEENTER();
tMenu *pMenu;
pMenu = &Menu[CurrentMenuLevel];
if((pMenu->NrItems == 0) || (ItemIndex >= pMenu->NrItems))
{
TRACEEXIT();
return FALSE;
}
if(!Text)
{
TRACEEXIT();
return FALSE;
}
strncpy(pMenu->Item[ItemIndex].Value, Text, ITEMNAMESIZE);
pMenu->Item[ItemIndex].Value[ITEMNAMESIZE - 1] = '\0';
ListDirty = TRUE;
TRACEEXIT();
return TRUE;
}
示例3: TRACEENTER
TYPE_GrData *LogoManager_GetLogoByChannel(int SvcType, int SvcNum, tLogoStyle LogoStyle, tLogoSize LogoSize, tLogoAspect LogoAR)
{
TRACEENTER();
ulong64 ChannelID;
tFlashService ServiceInfo;
TYPE_GrData *GrData;
LogoManager_Initialize(LogoManager_CB);
if(!FlashServiceGetInfo(SvcType, SvcNum, &ServiceInfo))
{
TRACEEXIT();
return NULL;
}
//First retrieve by the channel name
GrData = LogoManager_GetLogoByChannelName(ServiceInfo.ServiceName, LogoStyle, LogoSize, LogoAR);
if(GrData)
{
TRACEEXIT();
return GrData;
}
//Logo not available via channel name, now try it via the ID
ChannelID = LogoManager_GetChannelID(SvcType, SvcNum);
GrData = LogoManager_GetLogoByChannelID(ChannelID, LogoStyle, LogoSize, LogoAR);
TRACEEXIT();
return GrData;
}
示例4: TryResolve
dword TryResolve(char *Function)
{
TRACEENTER();
void *pvr;
dword *ret;
pvr = dlopen(NULL, RTLD_GLOBAL | RTLD_LAZY);
if(!pvr)
{
TRACEEXIT();
return 0;
}
ret = dlsym(pvr, Function);
if(dlerror() != NULL)
{
dlclose(pvr);
TRACEEXIT();
return 0;
}
dlclose(pvr);
TRACEEXIT();
return (dword)ret;
}
示例5: HDD_TAP_isDisabledAll
bool HDD_TAP_isDisabledAll(void)
{
TRACEENTER();
dword i;
tTMSTAPTaskTable *TMSTAPTaskTable;
TMSTAPTaskTable = (tTMSTAPTaskTable*)FIS_vTAPTable();
if(!TMSTAPTaskTable || (!LibInitialized && !InitTAPex()))
{
TRACEEXIT();
return FALSE;
}
for(i = 0; i < TAP_MAX; i++)
{
if((i != TAP_TableIndex) && (TMSTAPTaskTable[i].Status == 1) && (TMSTAPTaskTable[i].unused5 == 0))
{
TRACEEXIT();
return FALSE;
}
}
TRACEEXIT();
return TRUE;
}
示例6: TRACEENTER
byte *strcpyUC(byte *dest, byte *src)
{
TRACEENTER();
byte *p;
int CharTableBytes;
if(!src || !dest)
{
TRACEEXIT();
return NULL;
}
p = SkipCharTableBytes(src);
CharTableBytes = p - src;
if(CharTableBytes == 0)
strcpy(dest, src);
else
{
memcpy(dest, src, CharTableBytes);
strcpy(&dest[CharTableBytes], p);
}
TRACEEXIT();
return dest;
}
示例7: FlashTimeGetInfo
bool FlashTimeGetInfo(tFlashTimeInfo *TimeInfo)
{
TRACEENTER();
bool ret;
//TimeInfo is NULL
if(!TimeInfo)
{
TRACEEXIT();
return FALSE;
}
ret = FALSE;
switch(GetSystemType())
{
//Unknown and old 5k/6k systems are not supported
case ST_UNKNOWN:
case ST_S:
case ST_ST:
case ST_T:
case ST_C:
case ST_CT:
case ST_T5700:
case ST_T5800:
case ST_TF7k7HDPVR: break;
case ST_TMSS:
{
tFlashTimeInfo *p;
p = (tFlashTimeInfo*)(FIS_vFlashBlockTimeInfo());
if(p) ret = FlashTimeDecode(p, TimeInfo);
break;
}
case ST_TMST:
{
tFlashTimeInfo *p;
p = (tFlashTimeInfo*)(FIS_vFlashBlockTimeInfo());
if(p) ret = FlashTimeDecode(p, TimeInfo);
break;
}
case ST_TMSC:
{
tFlashTimeInfo *p;
p = (tFlashTimeInfo*)(FIS_vFlashBlockTimeInfo());
if(p) ret = FlashTimeDecode(p, TimeInfo);
break;
}
case ST_NRTYPES: break;
}
TRACEEXIT();
return ret;
}
示例8: OSDMenuSelectTopItem
bool OSDMenuSelectTopItem(int TopIndex)
{
TRACEENTER();
tMenu *pMenu;
pMenu = &Menu[CurrentMenuLevel];
if(pMenu->NrItems == 0)
{
TRACEEXIT();
return FALSE;
}
if(TopIndex < 0) TopIndex = 0;
if(TopIndex >= (int)pMenu->NrItems) TopIndex = (int)pMenu->NrItems - 1;
if(TopIndex != (int)pMenu->CurrentTopIndex)
{
pMenu->CurrentTopIndex = TopIndex;
ListDirty = TRUE;
}
TRACEEXIT();
return TRUE;
}
示例9: OSDMenuButtonAdd
void OSDMenuButtonAdd(dword Line, tButtonIcon ButtonIcon, TYPE_GrData *ButtonGd, char *Text)
{
TRACEENTER();
tMenu *pMenu;
TYPE_GrData *IconGd;
IconGd = OSDMenuGetIconPointer(ButtonIcon, ButtonGd);
if((Line == 0) || (Line > 3) || (!IconGd) || (!Text))
{
TRACEEXIT();
return;
}
pMenu = &Menu[CurrentMenuLevel];
pMenu->Buttons[pMenu->NrButtons].X = pMenu->ButtonXStart[Line];
switch(Line)
{
case 1: pMenu->Buttons[pMenu->NrButtons].Y = 487; break;
case 2: pMenu->Buttons[pMenu->NrButtons].Y = 511; break;
case 3: pMenu->Buttons[pMenu->NrButtons].Y = 535; break;
}
pMenu->Buttons[pMenu->NrButtons].pButtonGd = IconGd;
strncpy(pMenu->Buttons[pMenu->NrButtons].Text, Text, STDSTRINGSIZE);
pMenu->Buttons[pMenu->NrButtons].Text[STDSTRINGSIZE - 1] = '\0';
pMenu->Buttons[pMenu->NrButtons].Color = ButtonColor;
pMenu->NrButtons++;
ButtonsDirty = TRUE;
pMenu->ButtonXStart[Line] = pMenu->ButtonXStart[Line] + IconGd->width + OSDMenuGetW(Text, 12) + 8;
TRACEEXIT();
}
示例10: HDD_GetRecSlotFiles
bool HDD_GetRecSlotFiles(byte Slot, TYPE_File **RecFile, TYPE_File **InfFile, TYPE_File **NavFile)
{
TRACEENTER();
tHddRecordFile *HddRecordFile;
//Sanity check of the parameters
HddRecordFile = (tHddRecordFile*)FIS_vhddRecordFile();
if(Slot > HDD_NumberOfRECSlots() || !HddRecordFile)
{
if(RecFile) *RecFile = NULL;
if(InfFile) *InfFile = NULL;
if(NavFile) *NavFile = NULL;
TRACEEXIT();
return FALSE;
}
if(RecFile) *RecFile = HddRecordFile[Slot].RecFile;
if(InfFile) *InfFile = HddRecordFile[Slot].InfFile;
if(NavFile) *NavFile = HddRecordFile[Slot].NavFile;
TRACEEXIT();
return TRUE;
}
示例11: StringDBInit
bool StringDBInit(tStringDB *StringDB, dword InitialSize)
{
TRACEENTER();
bool ret;
if(!StringDB)
{
TRACEEXIT();
return FALSE;
}
StringDB->DBSize = InitialSize;
if(InitialSize)
{
StringDB->DB = TAP_MemAlloc(InitialSize);
if(StringDB->DB) TAP_MemSet(StringDB->DB, 0, InitialSize);
}
else
StringDB->DB = NULL;
StringDB->DBPtr = StringDB->DB;
StringDB->DBEnd = StringDB->DB;
ret = (StringDB->DB != NULL) || (InitialSize == 0);
TRACEEXIT();
return ret;
}
示例12: VFD_SetSmallText
bool VFD_SetSmallText(char *Text)
{
TRACEENTER();
dword i;
byte *grid = (byte*)FIS_vGrid();
if(!VFDUsedByTAP || !grid)
{
TRACEEXIT();
return FALSE;
}
if(Text)
{
i = strlen(Text);
if(i > 0) VFD_SetDisplayDigit(grid, Text[0], VFD_14, 0);
else VFD_SetDisplayDigit(grid, ' ', VFD_14, 0);
if(i > 1) VFD_SetDisplayDigit(grid, Text[1], VFD_14, 1);
else VFD_SetDisplayDigit(grid, ' ', VFD_14, 1);
if(i > 2) VFD_SetDisplayDigit(grid, Text[2], VFD_14, 2);
else VFD_SetDisplayDigit(grid, ' ', VFD_14, 2);
if(i > 3) VFD_SetDisplayDigit(grid, Text[3], VFD_14, 3);
else VFD_SetDisplayDigit(grid, ' ', VFD_14, 3);
}
TRACEEXIT();
return TRUE;
}
示例13: TRACEENTER
byte *strncpyUC(byte *dest, byte *src, size_t n)
{
TRACEENTER();
byte *p;
size_t CharTableBytes;
if(!src || !dest)
{
TRACEEXIT();
return NULL;
}
p = SkipCharTableBytes(src);
CharTableBytes = p - src;
if(CharTableBytes == 0)
strncpy(dest, src, n);
else
{
memcpy(dest, src, CharTableBytes < n ? CharTableBytes : n);
strncpy(&dest[CharTableBytes], p, n - CharTableBytes);
}
TRACEEXIT();
return dest;
}
示例14: VFD_SetCDValue
bool VFD_SetCDValue(int Percent)
{
TRACEENTER();
byte *grid = (byte*)FIS_vGrid();
if(!VFDUsedByTAP || !grid || !CDEnabled)
{
TRACEEXIT();
return FALSE;
}
grid[25] &= 0xfe;
grid[26] = 0x00;
grid[27] &= 0x1f;
if(Percent > 7) grid[25] |= 0x01;
if(Percent > 15) grid[26] |= 0x80;
if(Percent > 23) grid[26] |= 0x40;
if(Percent > 30) grid[26] |= 0x20;
if(Percent > 38) grid[26] |= 0x10;
if(Percent > 46) grid[26] |= 0x08;
if(Percent > 53) grid[26] |= 0x04;
if(Percent > 61) grid[26] |= 0x02;
if(Percent > 69) grid[26] |= 0x01;
if(Percent > 76) grid[27] |= 0x80;
if(Percent > 84) grid[27] |= 0x40;
if(Percent > 92) grid[27] |= 0x20;
TRACEEXIT();
return TRUE;
}
示例15: FlashSatTablesDecode_ST_TMSS
bool FlashSatTablesDecode_ST_TMSS(TYPE_SatInfo_TMSS *Data, tFlashSatTable *SatTable)
{
TRACEENTER();
if(!Data || !SatTable)
{
TRACEEXIT();
return FALSE;
}
memset(SatTable, 0, sizeof(tFlashSatTable));
SatTable->NrOfTransponders = Data->NrOfTransponders;
SatTable->unused1 = Data->unused1;
SatTable->SatPosition = Data->SatPosition;
memcpy(SatTable->unknown1, Data->unknown1, 22);
memcpy(SatTable->unused2, Data->unused2, 8);
strncpy(SatTable->SatName, Data->SatName, MAX_SatName - 1);
//LNB 1
SatTable->LNB[0].LNBSupply = Data->LNB[0].LNBSupply;
SatTable->LNB[0].unused1 = Data->LNB[0].unused1;
SatTable->LNB[0].DiSEqC10 = Data->LNB[0].DiSEqC10;
SatTable->LNB[0].unused2 = Data->LNB[0].unused2;
SatTable->LNB[0].DiSEqC12 = Data->LNB[0].DiSEqC12;
SatTable->LNB[0].UniversalLNB = Data->LNB[0].UniversalLNB;
SatTable->LNB[0].Switch22 = Data->LNB[0].Switch22;
SatTable->LNB[0].LowBand = Data->LNB[0].LowBand;
SatTable->LNB[0].HBFrq = Data->LNB[0].HBFrq;
SatTable->LNB[0].unused3 = Data->LNB[0].unused3;
SatTable->LNB[0].LoopThrough = Data->LNB[0].LoopThrough;
SatTable->LNB[0].unused4 = Data->LNB[0].unused4;
SatTable->LNB[0].DiSEqC11 = Data->LNB[0].DiSEqC11;
memcpy(SatTable->LNB[0].DiSEqC12Flags, Data->LNB[0].DiSEqC12Flags, 3);
memcpy(SatTable->LNB[0].unused5, Data->LNB[0].unused5, 5);
//LNB 2
SatTable->LNB[1].LNBSupply = Data->LNB[1].LNBSupply;
SatTable->LNB[1].unused1 = Data->LNB[1].unused1;
SatTable->LNB[1].DiSEqC10 = Data->LNB[1].DiSEqC10;
SatTable->LNB[1].unused2 = Data->LNB[1].unused2;
SatTable->LNB[1].DiSEqC12 = Data->LNB[1].DiSEqC12;
SatTable->LNB[1].UniversalLNB = Data->LNB[1].UniversalLNB;
SatTable->LNB[1].Switch22 = Data->LNB[1].Switch22;
SatTable->LNB[1].LowBand = Data->LNB[1].LowBand;
SatTable->LNB[1].HBFrq = Data->LNB[1].HBFrq;
SatTable->LNB[1].unused3 = Data->LNB[1].unused3;
SatTable->LNB[1].LoopThrough = Data->LNB[1].LoopThrough;
SatTable->LNB[1].unused4 = Data->LNB[1].unused4;
SatTable->LNB[1].DiSEqC11 = Data->LNB[1].DiSEqC11;
memcpy(SatTable->LNB[1].DiSEqC12Flags, Data->LNB[1].DiSEqC12Flags, 3);
memcpy(SatTable->LNB[1].unused5, Data->LNB[1].unused5, 5);
TRACEEXIT();
return TRUE;
}