FireBirdLib - Topfield TMS PVR TAP Programming Library
OSDMenuMessageBoxButtonAdd.c
Go to the documentation of this file.
1
#include <string.h>
2
#include "
FBLib_TMSOSDMenu.h
"
3
4
void
OSDMenuMessageBoxButtonAdd
(
const
char
*Text)
5
{
6
TRACEENTER
();
7
8
if
(Text && (
MessageBox
.
NrButtons
<
MAXMBBUTTONS
))
9
{
10
strncpy(
MessageBox
.
Button
[
MessageBox
.
NrButtons
], Text,
STDSTRINGSIZE
);
11
MessageBox
.
Button
[
MessageBox
.
NrButtons
][
STDSTRINGSIZE
- 1] =
'\0'
;
12
MessageBox
.
NrButtons
++;
13
}
14
15
TRACEEXIT
();
16
}
FBLib_TMSOSDMenu.h
MAXMBBUTTONS
#define MAXMBBUTTONS
Definition:
FBLib_TMSOSDMenu.h:11
MessageBox
tMessageBox MessageBox
Definition:
OSDMenuInit.c:19
STDSTRINGSIZE
#define STDSTRINGSIZE
Definition:
FBLib_TMSOSDMenu.h:8
OSDMenuMessageBoxButtonAdd
void OSDMenuMessageBoxButtonAdd(const char *Text)
Definition:
OSDMenuMessageBoxButtonAdd.c:4
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
tMessageBox::Button
char Button[MAXMBBUTTONS][STDSTRINGSIZE]
Definition:
FBLib_TMSOSDMenu.h:111
tMessageBox::NrButtons
dword NrButtons
Definition:
FBLib_TMSOSDMenu.h:109
TMSOSDMenu
OSDMenuMessageBoxButtonAdd.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3