MHEG5 queue.
More...
#include "mherrors.h"
#include "dvb_misc.h"
#include "mheg5_control.h"
#include "mheg5_keypress.h"
#include "dvbevents.h"
#include "dmxtype.h"
#include "dvblocator.h"
#include "fs_types.h"
#include "dtvstring.h"
#include "dsm_types.h"
#include "mh5queue.h"
Go to the source code of this file.
|
enum | E_PRIORITY {
PRTY_CRITICAL,
PRTY_HIGH,
PRTY_NORMAL,
PRTY_LOW,
PRTY_INVALID
} |
|
enum | E_DATA_TYPE {
DT_NONE,
DT_VALUE,
DT_ALLOC,
DT_CONTENT,
DT_D_CONTENT,
DT_F_CONTENT,
DT_S_CONTENT
} |
|
MHEG5 queue.
- Date
- 19 October 2011
- Author
- Adam Sturtridge
typedef void(* F_MSG_PROCESS) (void *data) |
Function to Process voyager message.
- Parameters
-
- Returns
- void
typedef void(* F_QueueNotify) (void) |
Close component control and section queue component. Destroys all allocated memory and resources for event and section queues.
- Returns
- void
Close component control and section queue component. Destroys all allocated memory and resources for event and section queues.
- Returns
- void
BOOLEAN VQ_EventNeedsProcessing |
( |
void |
| ) |
|
Check whether any events on component queues needs processing.
- Returns
- TRUE - if processing required
Get an event or section from the component queues. This is a blocking function.
- Parameters
-
pElem | Pointer to event message |
- Returns
- MHERR_OK - Completed successfully. MHERR_COMP_NOT_OPEN - Component queues not open. MHERR_INTERNAL - System error.
- Parameters
-
pEvent | Pointer to component event or section data structure. |
- Returns
- MHERR_OK - Completed successfully. MHERR_COMP_NOT_OPEN - Component queues not open. MHERR_INTERNAL - System error.
U16BIT VQ_GetSizeFree |
( |
E_PRIORITY |
priority | ) |
|
Get size available on a queue.
- Parameters
-
pEvent | Pointer to component event or section data structure. |
- Returns
- number left in queue.
Initialise component control and section queues. Allocates memory for, sets up and creates event (component control) and section queues.
- Returns
- MHERR_OK - Completed successfully. MHERR_BAD_PARAMETER - Invalid parameter. MHERR_COMP_ALREADY_OPEN - Component queues already open. MHERR_ALLOCATING_MEMORY - Not enough memory to allocate. MHERR_INTERNAL - System error.
- Parameters
-
num_section_buffers | Maximum number of sections in queue |
- Returns
- MHERR_OK - Completed successfully. MHERR_BAD_PARAMETER - Invalid parameter. MHERR_COMP_ALREADY_OPEN - Component queues already open. MHERR_ALLOCATING_MEMORY_REGION - Not enough memory to allocate. MHERR_INTERNAL - System error.
E_MhegErr VQ_PutMsg |
( |
S_MhegMessage * |
pMsg, |
|
|
E_PRIORITY |
priority |
|
) |
| |
Post event or section message on queue. Copies data into queue.
- Parameters
-
- Returns
- MHERR_OK - Completed successfully. MHERR_BAD_PARAMETER - Invalid parameter. MHERR_COMP_NOT_OPEN - Component queues not open. MHERR_INTERNAL - System error. MHERR_ALLOCATING_MEMORY - Not enough memory to allocate. MHERR_QUEUE_FULL - Queue full.
Post event or section message on queue. Copies data into queue.
- Parameters
-
pEvent | Pointer to component event. |
msg_size | data size excluding size of S_MhegMessage |
- Returns
- MHERR_OK - Completed successfully. MHERR_BAD_PARAMETER - Invalid parameter. MHERR_COMP_NOT_OPEN - Component queues not open. MHERR_INTERNAL - System error. MHERR_ALLOCATING_MEMORY_REGION - Not enough memory to allocate. MHERR_QUEUE_FULL - Queue full.
- Parameters
-
critical_rcvd | Pointer to function signalling a critical event |
critical_done | Pointer to function inform critical event done |
- Returns
- void
void VQ_UnRegisterNotify |
( |
void * |
qn | ) |
|
- Parameters
-
normal_rcvd | Pointer to function signalling an async event |
- Returns
- void