DVBCore  17.9.0
Open Source DVB Engine
 All Data Structures Files Functions Typedefs Macros Pages
Macros | Typedefs | Functions | Variables
ap_events.c File Reference
#include <stdio.h>
#include <string.h>
#include <techtype.h>
#include <dbgfuncs.h>
#include "stbhwos.h"
#include "stbhwav.h"
#include "stberc.h"
#include "stbdpc.h"
#include "stbheap.h"
#include "stbsiflt.h"
#include "stbsitab.h"
#include "stbllist.h"
#include "stbpvr.h"
#include "ap_si.h"
#include "ap_tmr.h"
#include "ap_events.h"
#include "ap_dbacc.h"
#include "ap_pvr.h"
#include "app.h"
#include "ap_state.h"
#include "ap_cntrl.h"

Macros

#define MAX_EVENTS   500
 
#define TASK_STACK_SIZE   4096
 
#define TASK_PRIORITY   11
 
#define DBG(x)
 

Typedefs

typedef struct aev_event_handler AEV_EVENT_HANDLER
 

Functions

BOOLEAN AEV_Initialise (DVB_EVENT_HANDLER event_handler)
 
void AEV_Terminate (void)
 
BOOLEAN APP_RegisterDVBEventHandler (DVB_EVENT_HANDLER event_handler)
 Register for DVB event notifications. More...
 
BOOLEAN APP_UnregisterDVBEventHandler (DVB_EVENT_HANDLER event_handler)
 Unregister a previously registered event handler. More...
 
void APP_SetClassifyRepeatEvents (BOOLEAN enable)
 Enable classifying of repeat events by EV_CLASS_IS_REPEAT flag. More...
 

Variables

LINK_LIST_HEADER event_handler_list
 
void * event_handlers_mutex = NULL
 

Detailed Description

Date
March 2011
Author
Steve Ford

Function Documentation

BOOLEAN APP_RegisterDVBEventHandler ( DVB_EVENT_HANDLER  event_handler)

Register for DVB event notifications.

Multiple clients can register their own event handlers. Each new handler is added at the end of the list. For each event all registered handlers all called.

Parameters
event_handlerA call-back function to receive event notifications.
Returns
TRUE on success, FALSE otherwise.
See Also
APP_RegisterDVBEventHandler
void APP_SetClassifyRepeatEvents ( BOOLEAN  enable)

Enable classifying of repeat events by EV_CLASS_IS_REPEAT flag.

Parameters
enableTRUE - to turn on, FALSE - turn off (default)
BOOLEAN APP_UnregisterDVBEventHandler ( DVB_EVENT_HANDLER  event_handler)

Unregister a previously registered event handler.

Find and remove the function from the registered handlers list. If the same function was registered more than once, the 1st found occurrence will be removed.

Parameters
event_handlerA function pointer previously passed into the APP_RegisterDVBEventHandler function.
Returns
TRUE on success, FALSE otherwise.
See Also
APP_RegisterDVBEventHandler