PVR messages database access functions header file.
More...
Go to the source code of this file.
PVR messages database access functions header file.
- Date
- Nov 2007
- Author
- Chris Aldworth
BOOLEAN STB_PVRAddMessage |
( |
U8BIT * |
message | ) |
|
Adds a message to the end of the list of existing messages.
- Parameters
-
message | - The message to be written |
- Returns
- TRUE if successful, otherwise FALSE
BOOLEAN STB_PVRCheckMessages |
( |
void |
| ) |
|
Check for new messages and clear the new message flag.
- Returns
- TRUE if there is a new message, otherwise FALSE
BOOLEAN STB_PVRDeleteMessage |
( |
U16BIT |
handle | ) |
|
Deletes a message from the list.
- Parameters
-
- Returns
- TRUE if the message is found and deleted, FALSE otherwise
BOOLEAN STB_PVRGetMessageInfo |
( |
U16BIT |
handle, |
|
|
U16BIT * |
date, |
|
|
U8BIT * |
hour, |
|
|
U8BIT * |
min |
|
) |
| |
Gets date/time for the message with the given handle.
- Parameters
-
handle | - message handle |
date | - pointer to value in which to return the date of the message |
hour | - pointer to value in which to return the hour of the message |
min | - pointer to value in which to return the min of the message |
- Returns
- TRUE if the message is found, FALSE otherwise
U16BIT STB_PVRGetMessages |
( |
U16BIT ** |
handle_array | ) |
|
Returns an allocated array of the message handles and number of messages currently in the list.
- Parameters
-
handle_array | - pointer to an array that's allocated by the function and is filled with the handles of all messages |
- Returns
- Number of messages
U8BIT* STB_PVRGetMessageText |
( |
U16BIT |
handle | ) |
|
Returns a pointer to the text for the message with the given handle.
- Parameters
-
- Returns
- pointer to message text (this is not a copy and shouldn't be deleted)
U16BIT STB_PVRGetNumMessages |
( |
void |
| ) |
|
Returns the number of messages.
- Returns
- number of messages
BOOLEAN STB_PVRInitialiseMessages |
( |
void |
| ) |
|
Initialises file that provides messages for recording er.
- Parameters
-
- Returns
- TRUE if successful, otherwise FALSE