41 #ifndef _DVBPSI_BAT_H_
42 #define _DVBPSI_BAT_H_
128 bool dvbpsi_bat_attach(
dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension,
160 uint8_t i_version,
bool b_current_next);
173 uint8_t i_version,
bool b_current_next);
210 uint8_t i_tag, uint8_t i_length,
228 uint16_t
i_ts_id, uint16_t i_orig_network_id);
246 uint8_t i_tag, uint8_t i_length,
268 #error "Multiple inclusions of bat.h"
void dvbpsi_bat_empty(dvbpsi_bat_t *p_bat)
Clean a dvbpsi_bat_t structure.
dvbpsi_bat_ts_t * dvbpsi_bat_ts_add(dvbpsi_bat_t *p_bat, uint16_t i_ts_id, uint16_t i_orig_network_id)
Add a TS description at the end of the BAT.
struct dvbpsi_bat_ts_s dvbpsi_bat_ts_t
dvbpsi_bat_ts_t type definition.
dvbpsi_bat_t * dvbpsi_bat_new(uint8_t i_table_id, uint16_t i_extension, uint8_t i_version, bool b_current_next)
Allocate and initialize a new dvbpsi_bat_t structure.
void(* dvbpsi_bat_callback)(void *p_priv, dvbpsi_bat_t *p_new_bat)
Callback type definition.
Definition: bat.h:112
void dvbpsi_bat_detach(dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension)
Destroy a BAT decoder.
dvbpsi_descriptor_t * dvbpsi_bat_bouquet_descriptor_add(dvbpsi_bat_t *p_bat, uint8_t i_tag, uint8_t i_length, uint8_t *p_data)
Add a descriptor in the BAT.
void dvbpsi_bat_delete(dvbpsi_bat_t *p_bat)
Clean and free a dvbpsi_bat_t structure.
dvbpsi_descriptor_t * dvbpsi_bat_ts_descriptor_add(dvbpsi_bat_ts_t *p_bat, uint8_t i_tag, uint8_t i_length, uint8_t *p_data)
Add a descriptor in the BAT TS descriptors.
void dvbpsi_bat_init(dvbpsi_bat_t *p_bat, uint8_t i_table_id, uint16_t i_extension, uint8_t i_version, bool b_current_next)
Initialize a user-allocated dvbpsi_bat_t structure.
struct dvbpsi_bat_s dvbpsi_bat_t
dvbpsi_bat_t type definition.
uint16_t i_ts_id
Definition: sis.h:4
BAT structure.
Definition: bat.h:90
dvbpsi_bat_ts_t * p_first_ts
Definition: bat.h:99
uint8_t i_table_id
Definition: bat.h:91
uint16_t i_extension
Definition: bat.h:92
uint8_t i_version
Definition: bat.h:94
bool b_current_next
Definition: bat.h:95
dvbpsi_descriptor_t * p_first_descriptor
Definition: bat.h:97
BAT transport stream description structure.
Definition: bat.h:63
dvbpsi_descriptor_t * p_first_descriptor
Definition: bat.h:67
struct dvbpsi_bat_ts_s * p_next
Definition: bat.h:69
uint16_t i_ts_id
Definition: bat.h:64
uint16_t i_orig_network_id
Definition: bat.h:65
Descriptor structure.
Definition: descriptor.h:83
PSI section structure.
Definition: psi.h:69
DVBPSI handle structure.
Definition: dvbpsi.h:143