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