FireBirdLib - Topfield TMS PVR TAP Programming Library
OSDMenuItemModifyID.c
Go to the documentation of this file.
1#include "FBLib_TMSOSDMenu.h"
2
3bool OSDMenuItemModifyID(int ItemIndex, dword ID)
4{
6
7 tMenu *pMenu;
8
9 pMenu = &Menu[CurrentMenuLevel];
10
11 if((ItemIndex < 0) || (ItemIndex >= pMenu->NrItems))
12 {
13 TRACEEXIT();
14 return FALSE;
15 }
16
17 pMenu->Item[ItemIndex].ID = ID;
18
19 TRACEEXIT();
20 return TRUE;
21}
tMenu Menu[NRMENULEVELS]
Definition: OSDMenuInit.c:6
dword CurrentMenuLevel
Definition: OSDMenuInit.c:7
bool OSDMenuItemModifyID(int ItemIndex, dword ID)
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243
dword ID
tItem * Item