libdvbpsi  0.2.2
Data Structures | Defines | Typedefs | Functions | Variables
bat.h File Reference

Application interface for the BAT decoder. More...

Go to the source code of this file.

Data Structures

struct  dvbpsi_bat_ts_s
 BAT transport stream description structure. More...
struct  dvbpsi_bat_s
 BAT structure. More...

Defines

#define dvbpsi_NewBAT(p_bat, i_bouquet_id, i_version, b_current_next)
 Allocate and initialize a new dvbpsi_bat_t structure.
#define dvbpsi_DeleteBAT(p_bat)
 Clean and free a dvbpsi_bat_t structure.

Typedefs

typedef struct dvbpsi_bat_ts_s dvbpsi_bat_ts_t
 dvbpsi_bat_ts_t type definition.
typedef struct dvbpsi_bat_s dvbpsi_bat_t
 dvbpsi_bat_t type definition.
typedef void(* dvbpsi_bat_callback )(void *p_cb_data, dvbpsi_bat_t *p_new_bat)
 Callback type definition.

Functions

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

Variables

uint8_t i_table_id
uint8_t uint16_t i_extension
uint8_t uint16_t
dvbpsi_bat_callback 
pf_callback
uint8_t uint16_t
dvbpsi_bat_callback void * 
p_cb_data
uint16_t i_bouquet_id
uint16_t uint8_t i_version
uint16_t uint8_t int b_current_next

Detailed Description

Application interface for the BAT decoder.

Author:
Zhu zhenglu <zhuzlu@gmail.com> Application interface for the BAT decoder. New decoded BAT are sent by callback to the application. If a table wasn't active (b_current_next == 0) and the next is the same but active (b_current_next == 1) then the service description list is empty and should be caught from the previous structure. This is a simulation to sdt.h

Define Documentation

#define dvbpsi_DeleteBAT (   p_bat)
Value:
do {                                                                    \
  dvbpsi_EmptyBAT(p_bat);                                               \
  free(p_bat);                                                          \
} while(0);

Clean and free a dvbpsi_bat_t structure.

Parameters:
p_batpointer to the BAT structure
Returns:
nothing.
#define dvbpsi_NewBAT (   p_bat,
  i_bouquet_id,
  i_version,
  b_current_next 
)
Value:
do {                                                                    \
  p_bat = (dvbpsi_bat_t*)malloc(sizeof(dvbpsi_bat_t));                  \
  if(p_bat != NULL)                                                     \
    dvbpsi_InitBAT(p_bat, i_bouquet_id, i_version, b_current_next); \
} while(0);

Allocate and initialize a new dvbpsi_bat_t structure.

Parameters:
p_batpointer to the BAT structure
i_bouquet_idbouquet ID
i_versionBAT version
b_current_nextcurrent next indicator
i_network_idoriginal network id
Returns:
nothing.