HbbTv  17.9.0
Open source HBBTV engine
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
dsmclient.c File Reference

DSMCC engine interface. More...

#include <stdio.h>
#include <techtype.h>
#include <dbgfuncs.h>
#include "hbbtv_sif_os.h"
#include "hbbtv_sif_service.h"
#include "hbbtv.h"
#include "dsmclient.h"
#include "debug.h"

Functions

void HBBTV_DsmccInitialise (U32BIT task_priority)
 Initialises the interface with the DSMCC engine. More...
 
void HBBTV_DsmccTerminate (void)
 Terminates the DSMCC instance.
 
void HBBTV_DsmccStart (S_HBBTV_DVB_LOCATOR *p_dvb_locator)
 Starts the DSMCC instance.
 
void HBBTV_DsmccStop (void)
 Stops the DSMCC instance.
 
E_HBBTV_ERR HBBTV_DsmccSubscribe (U8BIT *path, S_STREAM_EVENT *event)
 Subscribes to the specified event. More...
 
E_HBBTV_ERR HBBTV_DsmccSubscribeId (U16BIT association_tag, U16BIT event_id, S_STREAM_EVENT *event)
 Subscribes to the specified event. More...
 
void HBBTV_DsmccUnsubscribe (S_STREAM_EVENT *event)
 Unsubscribes from the specified event. More...
 
void HBBTV_DsmccSetCallback (F_HBBTV_DSMCC_FILE_CALLBACK func)
 Provide function to return result of file requests. More...
 
void HBBTV_DsmccRequestFile (void *user_data, U8BIT *url)
 Request file from DSMCC (with 'dvb:' origin). The result is returned via function given to HBBTV_DsmccSetCallback(). This may be done synchronously or asynchronously. More...
 

Detailed Description

DSMCC engine interface.

Date
February 2014
Author
Sergio Panseri

Function Documentation

void HBBTV_DsmccInitialise ( U32BIT  task_priority)

Initialises the interface with the DSMCC engine.

Parameters
task_priorityHBBTV module task priority
void HBBTV_DsmccRequestFile ( void *  user_data,
U8BIT *  url 
)

Request file from DSMCC (with 'dvb:' origin). The result is returned via function given to HBBTV_DsmccSetCallback(). This may be done synchronously or asynchronously.

Parameters
user_dataUser data to be given to callback function
urlURL of the file to request
void HBBTV_DsmccSetCallback ( F_HBBTV_DSMCC_FILE_CALLBACK  func)

Provide function to return result of file requests.

Parameters
funccallback function to inform browser of result
E_HBBTV_ERR HBBTV_DsmccSubscribe ( U8BIT *  path,
S_STREAM_EVENT event 
)

Subscribes to the specified event.

Parameters
pathPath of a carousel object
eventStructure representing the event to subscribe to
Returns
HBBTV_ERR_OBJECT_NOT_FOUND if the subscription failed, HBBTV_OK otherwise
E_HBBTV_ERR HBBTV_DsmccSubscribeId ( U16BIT  association_tag,
U16BIT  event_id,
S_STREAM_EVENT event 
)

Subscribes to the specified event.

Parameters
association_tag
event_id
eventStructure representing the event to subscribe to
Returns
HBBTV_ERR_OBJECT_NOT_FOUND if the subscription failed, HBBTV_OK otherwise
void HBBTV_DsmccUnsubscribe ( S_STREAM_EVENT event)

Unsubscribes from the specified event.

Parameters
eventStructure representing the event to unsubscribe from