FireBirdLib - Topfield TMS PVR TAP Programming Library
OSDMenuItemFindID.c
Go to the documentation of this file.
1
#include "
FBLib_TMSOSDMenu.h
"
2
3
int
OSDMenuItemFindID
(dword ID)
4
{
5
tMenu
*pMenu;
6
int
i, ret = -1;
7
8
TRACEENTER
();
9
10
pMenu = &
Menu
[
CurrentMenuLevel
];
11
12
for
(i = 0; i < pMenu->
NrItems
; i++)
13
{
14
if
(pMenu->
Item
[i].
ID
== ID)
15
{
16
ret = i;
17
break
;
18
}
19
}
20
21
TRACEEXIT
();
22
23
return
ret;
24
}
FBLib_TMSOSDMenu.h
Menu
tMenu Menu[NRMENULEVELS]
Definition:
OSDMenuInit.c:6
CurrentMenuLevel
dword CurrentMenuLevel
Definition:
OSDMenuInit.c:7
OSDMenuItemFindID
int OSDMenuItemFindID(dword ID)
Definition:
OSDMenuItemFindID.c:3
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
tItem::ID
dword ID
Definition:
FBLib_TMSOSDMenu.h:45
tMenu
Definition:
FBLib_TMSOSDMenu.h:67
tMenu::Item
tItem * Item
Definition:
FBLib_TMSOSDMenu.h:71
tMenu::NrItems
int NrItems
Definition:
FBLib_TMSOSDMenu.h:72
TMSOSDMenu
OSDMenuItemFindID.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3