FireBirdLib - Topfield TMS PVR TAP Programming Library
OSDMenuPop.c
Go to the documentation of this file.
1
#include <stdlib.h>
2
#include "
FBLib_TMSOSDMenu.h
"
3
4
bool
OSDMenuPop
(
void
)
5
{
6
TRACEENTER
();
7
8
if
(
CurrentMenuLevel
== 0)
9
{
10
TRACEEXIT
();
11
return
FALSE;
12
}
13
14
if
(
Menu
[
CurrentMenuLevel
].Item)
15
{
16
TAP_MemFree(
Menu
[
CurrentMenuLevel
].Item);
17
Menu
[
CurrentMenuLevel
].
Item
= NULL;
18
}
19
20
if
(
Menu
[
CurrentMenuLevel
].MemoText)
21
{
22
TAP_MemFree(
Menu
[
CurrentMenuLevel
].MemoText);
23
Menu
[
CurrentMenuLevel
].
MemoText
= NULL;
24
}
25
26
CurrentMenuLevel
--;
27
OSDDirty
= TRUE;
28
29
TRACEEXIT
();
30
return
TRUE;
31
}
FBLib_TMSOSDMenu.h
Menu
tMenu Menu[NRMENULEVELS]
Definition:
OSDMenuInit.c:6
OSDDirty
bool OSDDirty
Definition:
OSDMenuInit.c:5
CurrentMenuLevel
dword CurrentMenuLevel
Definition:
OSDMenuInit.c:7
OSDMenuPop
bool OSDMenuPop(void)
Definition:
OSDMenuPop.c:4
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
tMenu::MemoText
char * MemoText
Definition:
FBLib_TMSOSDMenu.h:95
tMenu::Item
tItem * Item
Definition:
FBLib_TMSOSDMenu.h:71
TMSOSDMenu
OSDMenuPop.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3