![]() |
DVBCore
22.11.0
Open Source DVB Engine
|
#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"
Classes | |
struct | aev_event_handler |
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 |
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.
event_handler | A call-back function to receive event notifications. |
void APP_SetClassifyRepeatEvents | ( | BOOLEAN | enable | ) |
Enable classifying of repeat events by EV_CLASS_IS_REPEAT flag.
enable | TRUE - 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.
event_handler | A function pointer previously passed into the APP_RegisterDVBEventHandler function. |