MHEG5  15.3.0
include/mheg5_events.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
00003  * Copyright © 2014 Ocean Blue Software Ltd
00004  *
00005  * This file is part of a DTVKit Software Component
00006  * You are permitted to copy, modify or distribute this file subject to the terms
00007  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
00008  * 
00009  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
00010  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
00011  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
00012  * 
00013  * If you or your organisation is not a member of DTVKit then you have access
00014  * to this source code outside of the terms of the licence agreement
00015  * and you are expected to delete this and any associated files immediately.
00016  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
00017  *******************************************************************************/
00025 #ifndef _MHEG5_EVENTS_H
00026 #define _MHEG5_EVENTS_H
00027 
00028 #include "techtype.h"
00029 #include "dvbevents.h"
00030 
00031 /*---Constant and macro definitions for public use-----------------------------*/
00032 
00033 /*---Enumerations for public use-----------------------------------------------*/
00034 
00035 /* Events generated by MHEG5 engine and passed to receiver */
00036 typedef enum
00037 {
00038    /* Engine sucessfully started an MHEG5 application from DSM-CC. */
00039    MHEG_EVENT_DSM_APPLICATION_STARTED,
00040 
00041    /* The currently running application has stopped running and there
00042     * are no other applications on the application stack. If this event is
00043     * generated as a result of an application Quit action, the component will
00044     * start trying to load the autoboot application for the selected service.
00045     */
00046    MHEG_EVENT_DSM_APPLICATION_STOPPED,
00047 
00048    MHEG_EVENT_DSM_APPLICATION_START_FAILED,
00049 
00050    /* MHEG5 CI application started successfully. */
00051    MHEG_EVENT_CI_APPLICATION_STARTED,
00052 
00053    /* MHEG5 CI application has stopped, either as a result of an external request,
00054     * or as the result of application terminating for any other reason.
00055     */
00056    MHEG_EVENT_CI_APPLICATION_STOPPED,
00057 
00058    /* Attempted CI module start application failed. */
00059    MHEG_EVENT_CI_APPLICATION_START_FAILED,
00060 } E_MhegEvent;
00061 
00062 
00063 /*---Global type defs for public use-------------------------------------------*/
00064 
00065 typedef void (*F_NotifyMhegEvent)( E_MhegEvent event, U32BIT data );
00066 
00067 /*---Global Function prototypes for public use---------------------------------*/
00068 
00069 BOOLEAN MHEG5_DvbRegisterEventHandler( F_NotifyMhegEvent handler );
00070 void MHEG5_DvbUnregisterEventHandler( F_NotifyMhegEvent handler );
00071 
00072 void MHEG5_NotifyDvbEvent( E_DvbEvent eType, U32BIT eData );
00073 
00074 
00075 #endif /* _MHEG5_EVENTS_H */
 All Data Structures Files Functions Variables Typedefs Defines