DSMCC Version 1.0
DTVKit DSMCC Documentation
 All Data Structures Files Functions Typedefs
Data Structures | Macros | Typedefs | Functions
siq_main.c File Reference

Service Information Query: main functions. More...

#include <string.h>
#include "cldsmcc.h"
#include "siq_cache.h"
#include "siq_debug.h"
#include "siq_main.h"
#include "siq_pmt.h"

Data Structures

struct  s_SiqRequests
 

Macros

#define NEWLOG(x,...)
 

Typedefs

typedef struct s_SiqRequests S_SiqRequests
 

Functions

H_SiqInstance SIQ_CreateInstance (S_SiqSetup *pSetup)
 Create SIQ instance. More...
 
void SIQ_SetDebugConfig (H_SiqInstance siq, F_Printf errPrintf, F_Printf dbgPrintf, U32BIT dbgState)
 Set Debug config for SIQ. More...
 
void SIQ_SetDebugState (H_SiqInstance siq, U32BIT dbgState)
 Set Debug state for SIQ. More...
 
void SIQ_DestroyInstance (H_SiqInstance siq)
 Destroy instance created by SIQ_CreateInstance. More...
 
void SIQ_SetDsmInstance (H_SiqInstance siq, clDsmInstHandle_t dsmInstance)
 Set instance handle for DSM-CC that SIQ is supporting. More...
 
void SIQ_SetDemuxHandle (H_SiqInstance siq, DMXREF dmxref)
 Set handle to be passed to F_DvpRequestPmt and F_DvpCancelPmt. More...
 
clDsmErr_t SIQ_RequestQueryStart (S_SiqInstance *siq, pclDsmSIQuery_t pQuery, clDsmSIQueryRef_t dsmQueryRef, void *dsmUserData, clDsmSIQueryResult_t *pResult)
 Start query request. Called by DSM-CC component. More...
 
void SIQ_RequestQueryStop (S_SiqInstance *siq, void *queryHandle, clDsmSIQueryRef_t dsmQueryRef)
 Stop query request. Called by DSM-CC component. More...
 
void SIQ_DeleteQueriesOnService (S_SiqInstance *siq, U16BIT serviceId)
 
void SIQ_QueryPmtReceive (S_SiqInstance *siq, U16BIT serviceId, H_SiqPmtTable hpmt)
 

Detailed Description

Service Information Query: main functions.

Date
28th September 2013
Author
Adam Sturtridge

Macro Definition Documentation

#define NEWLOG (   x,
  ... 
)
Value:
if ( pSetup->errPrintf ) \
pSetup->errPrintf( x "\n", ##__VA_ARGS__);

Function Documentation

H_SiqInstance SIQ_CreateInstance ( S_SiqSetup pSetup)

Create SIQ instance.

Parameters
S_SiqSetupsetup setup parameters
Returns
void SIQ_DestroyInstance ( H_SiqInstance  siq)

Destroy instance created by SIQ_CreateInstance.

Parameters
H_SiqInstancesiqInstance SIQ instance handle.
Returns
void SIQ_QueryPmtReceive ( S_SiqInstance siq,
U16BIT  serviceId,
H_SiqPmtTable  hpmt 
)
Parameters
S_SiqInstance*siq Pointer to SIQ instance
Returns
clDsmErr_t SIQ_RequestQueryStart ( S_SiqInstance siq,
pclDsmSIQuery_t  pQuery,
clDsmSIQueryRef_t  dsmQueryRef,
void *  dsmUserData,
clDsmSIQueryResult_t pResult 
)

Start query request. Called by DSM-CC component.

Parameters
H_SiqInstancesiqInstance SIQ instance handle.
Returns
void SIQ_RequestQueryStop ( S_SiqInstance siq,
void *  queryHandle,
clDsmSIQueryRef_t  dsmQueryRef 
)

Stop query request. Called by DSM-CC component.

Parameters
H_SiqInstancesiqInstance SIQ instance handle.
Returns
void SIQ_SetDebugConfig ( H_SiqInstance  siq,
F_Printf  errPrintf,
F_Printf  dbgPrintf,
U32BIT  dbgState 
)

Set Debug config for SIQ.

Parameters
H_SiqInstancesiq SIQ instance handle.
F_SiqPrintferrPrintf Error print function
F_SiqPrintfdbgPrintf Debug print function
U32BITdbgState State to filter debug printing
Returns
void SIQ_SetDebugState ( H_SiqInstance  siq,
U32BIT  dbgState 
)

Set Debug state for SIQ.

Parameters
H_SiqInstancesiq SIQ instance handle.
U32BITdbgState State to filter debug printing
Returns
void SIQ_SetDemuxHandle ( H_SiqInstance  siq,
DMXREF  dmxref 
)

Set handle to be passed to F_DvpRequestPmt and F_DvpCancelPmt.

Parameters
H_SiqInstancesiqInstance SIQ instance handle.
DMXREFdmxref Demux refernece handle
Returns
void SIQ_SetDsmInstance ( H_SiqInstance  siq,
clDsmInstHandle_t  dsmInstance 
)

Set instance handle for DSM-CC that SIQ is supporting.

Parameters
void*siqInstance SIQ instance handle.
clDsmInstHandle_tdsmInstance DSM-CC instance being supported
Returns