libdvbpsi  0.2.2
Data Structures | Macros | Typedefs | Functions | Variables
nit.h File Reference

Application interface for the NIT decoder and the NIT generator. More...

Go to the source code of this file.

Data Structures

struct  dvbpsi_nit_ts_s
 NIT TS structure. More...
 
struct  dvbpsi_nit_s
 NIT structure. More...
 

Macros

#define dvbpsi_NewNIT(p_nit, i_network_id,i_version, b_current_next)
 Allocate and initialize a new dvbpsi_nit_t structure. More...
 
#define dvbpsi_DeleteNIT(p_nit)
 Clean and free a dvbpsi_nit_t structure. More...
 

Typedefs

typedef struct dvbpsi_nit_ts_s dvbpsi_nit_ts_t
 dvbpsi_nit_ts_t type definition.
 
typedef struct dvbpsi_nit_s dvbpsi_nit_t
 dvbpsi_nit_t type definition.
 
typedef void(* dvbpsi_nit_callback )(void *p_cb_data, dvbpsi_nit_t *p_new_nit)
 Callback type definition.
 

Functions

 __attribute__ ((deprecated)) int dvbpsi_AttachNIT(dvbpsi_decoder_t *p_psi_decoder
 

Variables

uint8_t i_table_id
 
uint8_t uint16_t i_extension
 
uint8_t uint16_t
dvbpsi_nit_callback 
pf_callback
 
uint8_t uint16_t
dvbpsi_nit_callback void * 
p_cb_data
 
uint16_t i_network_id
 
uint16_t uint8_t i_version
 
uint16_t uint8_t int b_current_next
 
uint8_t i_tag
 
uint8_t uint8_t i_length
 
uint8_t uint8_t uint8_t * p_data
 
uint16_t i_ts_id
 
uint16_t uint16_t i_orig_network_id
 

Detailed Description

Application interface for the NIT decoder and the NIT generator.

Author
Johann Hanne Application interface for the NIT decoder and the NIT generator. New decoded NIT tables are sent by callback to the application.

Macro Definition Documentation

#define dvbpsi_DeleteNIT (   p_nit)
Value:
do { \
dvbpsi_EmptyNIT(p_nit); \
free(p_nit); \
} while(0);

Clean and free a dvbpsi_nit_t structure.

Parameters
p_nitpointer to the NIT structure
Returns
nothing.
#define dvbpsi_NewNIT (   p_nit,
  i_network_id,
  i_version,
  b_current_next 
)
Value:
do { \
p_nit = (dvbpsi_nit_t*)malloc(sizeof(dvbpsi_nit_t)); \
if(p_nit != NULL) \
dvbpsi_InitNIT(p_nit, i_network_id, i_version, b_current_next); \
} while(0);

Allocate and initialize a new dvbpsi_nit_t structure.

Parameters
p_nitpointer to the NIT structure
i_network_idnetwork id
i_versionNIT version
b_current_nextcurrent next indicator
i_pcr_pidPCR_PID
Returns
nothing.