![]() |
DSMCC
22.3.0
|
Stream event related functions References: [1] ISO_IEC_13818-6;1998(E) More...
#include <string.h>
#include <stdio.h>
#include "clDsmSystem.h"
#include "moduleData.h"
#include "sectionFilter.h"
#include "dsmObject.h"
#include "module.h"
#include "objectCarousel.h"
#include "cacheMgr.h"
Classes | |
struct | s_se_info |
struct | s_listener |
struct | s_dsmevent |
Typedefs | |
typedef struct s_se_info | S_SE_INFO |
typedef struct s_listener | S_LISTENER |
typedef struct s_dsmevent | S_Event |
Functions | |
S_SE_INFO * | FindEventInfo (P_DsmCoreInst idp, H_DsmEvent eventHandle) |
S_SE_INFO * | FindStreamInfo (P_DsmCoreInst idp, H_DsmObject streamObject) |
E_DscError | CDSM_StreamEventSubscribe (H_DsmCoreInst dsmccInstance, H_DsmObject streamObject, U8BIT *eventName, void *userData1, void *userData2, H_DsmEvent *pEventHandle) |
The Client uses this function to request that the DSMCC notifies it when a named stream event occurs. The notification is implemented by means of a callback function defined by the Client. Refer to the description of F_NotifyStreamEvent for information about the callback function. Before calling this function the Client must request that the stream object of interest be loaded using the CDSM_ObjectLoad() function. This action will deliver a handle to the object stream - this is passed as the streamObject argument to this function. Do not have to wait until load is completed before subscribing. Do not have to open an object before subscribing (since synchronous function). More... | |
E_DscError | CDSM_SpecialEventSubscribe (H_DsmCoreInst dsmccInstance, U16BIT associationTag, U16BIT eventId, void *userData1, void *userData2, H_DsmEvent *pEventHandle) |
Like clDsmStreamEventSubscribe, except that no stream object is required. This function subscribes to events specified by event ID, and association tag for the current service. More... | |
E_DscError | CDSM_StreamEventUnsubscribe (H_DsmCoreInst idp, H_DsmEvent eventHandle) |
This function is called by the Client to let DSMCC know when a previously subscribed stream event is no longer needed. Callback made to acknowledge unsubscribe. All data relating to this stream event will no longer be valid, including the streamEventHandle. More... | |
E_DscError | CDSM_SpecialEventUnsubscribe (H_DsmCoreInst dsmccInstance, H_DsmEvent eventHandle) |
Same as clDsmStreamEventUnsubscribe - used in conjuction with clDsmSpecialEventSubscribe. More... | |
E_DscError | DSC_StrmEventUpdate (P_DsmCoreInst idp, U8BIT *pStreamDescrSection, P_Event pEvent, U32BIT targetId) |
void | DSC_StrmEventFilterReset (P_DsmCoreInst idp) |
void | DSC_StrmEventListReset (P_DsmCoreInst idp) |
E_DscError | CDSM_StreamEventNameList (H_DsmCoreInst dsmccInstance, H_DsmObject streamObject, U8BIT **pNamesPtr, U16BIT *pNamesLen) |
The Client uses this function to request list of event names for stream object Before calling this function the Client must request that the stream object of interest be loaded using the CDSM_ObjectLoad() function. This action will deliver a handle to the object stream - this is passed as the streamObject argument to this function. Do not have to wait until load is completed Do not have to open an object. More... | |
E_DscError | CDSM_StreamEventXmlData (H_DsmCoreInst dsmccInstance, H_DsmObject streamObject, U8BIT **pXmlData, U16BIT *pXmlLen) |
The Client uses this function to request data in XML format for stream object and associated events. This XML format is defined by 'TS 102 809' v 1.2.1, section 8.2 Before calling this function the Client must request that the stream object of interest be loaded using the CDSM_ObjectLoad() function. More... | |
Stream event related functions References: [1] ISO_IEC_13818-6;1998(E)
#define XML_DATA1a |
#define XML_DATA3 |
E_DscError CDSM_SpecialEventSubscribe | ( | H_DsmCoreInst | dsmccInstance, |
U16BIT | associationTag, | ||
U16BIT | eventId, | ||
void * | userData1, | ||
void * | userData2, | ||
H_DsmEvent * | pEventHandle | ||
) |
Like clDsmStreamEventSubscribe, except that no stream object is required. This function subscribes to events specified by event ID, and association tag for the current service.
dsmccInstance | Allows support >= 1 instance of a DSMCC. |
streamObject | This references a BIOP::StreamEventMessage as well as indicating the carousel, module and the kind of the object. |
eventName | Name of stream event required by the Client. |
userData1 | Optional data to be used by client. This data is stored and returned unchanged to the Client using a callback. |
userData2 | Optional data to be used by client. This data is stored and returned unchanged to the Client using a callback. |
pStatus | Status of the subscription. |
pEventHandle | The is the handle to the stream event returned by subscribe. The caller will use this handle when the stream event being subscribed to is referred to in the future. |
E_DscError CDSM_SpecialEventUnsubscribe | ( | H_DsmCoreInst | dsmccInstance, |
H_DsmEvent | eventHandle | ||
) |
Same as clDsmStreamEventUnsubscribe - used in conjuction with clDsmSpecialEventSubscribe.
dsmccInstance | Allows support of >= 1 instance of a DSMCC. |
eventHandle | This is a handle to an entry which is to be deleted from a list of subscribed to stream events |
E_DscError CDSM_StreamEventNameList | ( | H_DsmCoreInst | dsmccInstance, |
H_DsmObject | streamObject, | ||
U8BIT ** | pNamesPtr, | ||
U16BIT * | pNamesLen | ||
) |
The Client uses this function to request list of event names for stream object Before calling this function the Client must request that the stream object of interest be loaded using the CDSM_ObjectLoad() function. This action will deliver a handle to the object stream - this is passed as the streamObject argument to this function. Do not have to wait until load is completed Do not have to open an object.
dsmccInstance | Allows support >= 1 instance of a DSMCC. |
streamObject | This references a BIOP::StreamEventMessage as well as indicating the carousel, module and the kind of the object. |
pNamesPtr | Pointer to comma separated list of Event names |
pNamesLen | Length of comma separated list of Event names |
E_DscError CDSM_StreamEventSubscribe | ( | H_DsmCoreInst | dsmccInstance, |
H_DsmObject | streamObject, | ||
U8BIT * | eventName, | ||
void * | userData1, | ||
void * | userData2, | ||
H_DsmEvent * | pEventHandle | ||
) |
The Client uses this function to request that the DSMCC notifies it when a named stream event occurs. The notification is implemented by means of a callback function defined by the Client. Refer to the description of F_NotifyStreamEvent for information about the callback function. Before calling this function the Client must request that the stream object of interest be loaded using the CDSM_ObjectLoad() function. This action will deliver a handle to the object stream - this is passed as the streamObject argument to this function. Do not have to wait until load is completed before subscribing. Do not have to open an object before subscribing (since synchronous function).
The Client uses this function to request that the DSMCC notifies it when a named stream event occurs. The notification is implemented by means of a callback function defined by the Client. Refer to the description of F_NotifyStreamEvent for information about the callback function. Before calling this function the Client must request that the stream object of interest be loaded using the CDSM_ObjectLoad() function. This action will deliver a handle to the object stream - this is passed as the streamObject argument to this function. Do not have to wait until load is completed before subscribing. Do not have to open an object before subscribing (since synchronous function). CALLBACKS THAT MAY BE INITIATED DURING THIS CALL: none.
dsmccInstance | Allows support >= 1 instance of a DSMCC. |
streamObject | This references a BIOP::StreamEventMessage as well as indicating the carousel, module and the kind of the object. |
eventName | Name of stream event required by the Client. |
userData1 | Optional data to be used by client. This data is stored and returned unchanged to the Client using a callback. |
userData2 | Optional data to be used by client. This data is stored and returned unchanged to the Client using a callback. |
pStatus | Status of the subscription. |
pEventHandle | The is the handle to the stream event returned by subscribe. The caller will use this handle when the stream event being subscribed to is referred to in the future. |
E_DscError CDSM_StreamEventUnsubscribe | ( | H_DsmCoreInst | idp, |
H_DsmEvent | eventHandle | ||
) |
This function is called by the Client to let DSMCC know when a previously subscribed stream event is no longer needed. Callback made to acknowledge unsubscribe. All data relating to this stream event will no longer be valid, including the streamEventHandle.
This function is called by the Client to let DSMCC know when a previously subscribed stream event is no longer needed. Callback made to acknowledge unsubscribe. All data relating to this stream event will no longer be valid, including the eventHandle. CALLBACKS THAT MAY BE INITIATED DURING THIS CALL: none.
dsmccInstance | Allows support of >= 1 instance of a DSMCC. |
eventHandle | This is a handle to an entry which is to be deleted from a list of subscribed to stream events |
E_DscError CDSM_StreamEventXmlData | ( | H_DsmCoreInst | dsmccInstance, |
H_DsmObject | streamObject, | ||
U8BIT ** | pXmlData, | ||
U16BIT * | pXmlLen | ||
) |
The Client uses this function to request data in XML format for stream object and associated events. This XML format is defined by 'TS 102 809' v 1.2.1, section 8.2 Before calling this function the Client must request that the stream object of interest be loaded using the CDSM_ObjectLoad() function.
dsmccInstance | instance of DSMCC. |
streamObject | handle to stream object |
pXmlPtr | Pointer to XML data for Stream Object |
pXmlLen | Length of XML data for Stream Object |