37 #ifndef _DVBPSI_TOT_H_ 38 #define _DVBPSI_TOT_H_ 71 } __attribute__((packed)) dvbpsi_tot_t;
112 uint16_t i_extension);
129 void dvbpsi_tot_init(dvbpsi_tot_t* p_tot, uint8_t i_table_id, uint16_t i_extension,
143 dvbpsi_tot_t *
dvbpsi_tot_new(uint8_t i_table_id, uint16_t i_extension, uint8_t i_version,
144 bool b_current_next, uint64_t i_utc_time);
181 uint8_t i_tag, uint8_t i_length,
203 #error "Multiple inclusions of tot.h" void dvbpsi_tot_init(dvbpsi_tot_t *p_tot, uint8_t i_table_id, uint16_t i_extension, uint8_t i_version, bool b_current_next, uint64_t i_utc_time)
Initialize a user-allocated dvbpsi_tot_t structure.
dvbpsi_tot_t * dvbpsi_tot_new(uint8_t i_table_id, uint16_t i_extension, uint8_t i_version, bool b_current_next, uint64_t i_utc_time)
Allocate and initialize a new dvbpsi_tot_t structure.
void(* dvbpsi_tot_callback)(void *p_cb_data, dvbpsi_tot_t *p_new_tot)
Callback type definition.
Definition: tot.h:81
bool dvbpsi_tot_attach(dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension, dvbpsi_tot_callback pf_callback, void *p_cb_data)
Creation and initialization of a TDT/TOT decoder.
uint16_t i_extension
Definition: tot.h:61
dvbpsi_descriptor_t * dvbpsi_tot_descriptor_add(dvbpsi_tot_t *p_tot, uint8_t i_tag, uint8_t i_length, uint8_t *p_data)
Add a descriptor in the TOT.
dvbpsi_psi_section_t * dvbpsi_tot_sections_generate(dvbpsi_t *p_dvbpsi, dvbpsi_tot_t *p_tot)
TDT/TOT generator.
void dvbpsi_tot_delete(dvbpsi_tot_t *p_tot)
Clean and free a dvbpsi_tot_t structure.
PSI section structure.
Definition: psi.h:68
uint8_t i_table_id
Definition: tot.h:60
void dvbpsi_tot_empty(dvbpsi_tot_t *p_tot)
Clean a dvbpsi_tot_t structure.
bool b_current_next
Definition: tot.h:65
TDT/TOT structure.
Definition: tot.h:58
uint64_t i_utc_time
Definition: tot.h:67
void dvbpsi_tot_detach(dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension)
Destroy a TDT/TOT decoder.
uint8_t i_version
Definition: tot.h:64
dvbpsi_descriptor_t * p_first_descriptor
Definition: tot.h:69
DVBPSI handle structure.
Definition: dvbpsi.h:142
Descriptor structure.
Definition: descriptor.h:82