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

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

Go to the source code of this file.

Data Structures

struct  dvbpsi_eit_event_s
 EIT service description structure. More...
struct  dvbpsi_eit_s
 EIT structure. More...

Defines

#define dvbpsi_NewEIT(p_eit, i_service_id, i_version, b_current_next, i_ts_id, i_network_id, i_segment_last_section_number, i_last_table_id)
 Allocate and initialize a new dvbpsi_eit_t structure.
#define dvbpsi_DeleteEIT(p_eit)
 Clean and free a dvbpsi_eit_t structure.

Typedefs

typedef struct dvbpsi_eit_event_s dvbpsi_eit_event_t
 dvbpsi_eit_event_t type definition.
typedef struct dvbpsi_eit_s dvbpsi_eit_t
 dvbpsi_eit_t type definition.
typedef void(* dvbpsi_eit_callback )(void *p_cb_data, dvbpsi_eit_t *p_new_eit)
 Callback type definition.

Functions

 __attribute__ ((deprecated)) int dvbpsi_AttachEIT(dvbpsi_decoder_t *p_psi_decoder
dvbpsi_eit_event_tdvbpsi_EITAddEvent (dvbpsi_eit_t *p_eit, uint16_t i_event_id, uint64_t i_start_time, uint32_t i_duration, uint8_t i_running_status, int b_free_ca)
 Add a service description at the end of the EIT.

Variables

uint8_t i_table_id
uint8_t uint16_t i_extension
uint8_t uint16_t
dvbpsi_eit_callback 
pf_callback
uint8_t uint16_t
dvbpsi_eit_callback void * 
p_cb_data
uint16_t i_service_id
uint16_t uint8_t i_version
uint16_t uint8_t int b_current_next
uint16_t uint8_t int uint16_t i_ts_id
uint16_t uint8_t int uint16_t
uint16_t 
i_network_id
uint16_t uint8_t int uint16_t
uint16_t uint8_t 
i_segment_last_section_number
uint16_t uint8_t int uint16_t
uint16_t uint8_t uint8_t 
i_last_table_id
uint8_t i_tag
uint8_t uint8_t i_length
uint8_t uint8_t uint8_t * p_data

Detailed Description

Application interface for the EIT decoder and the EIT generator.

>

Author:
Christophe Massiot <massiot@via.ecp.fr> Application interface for the EIT decoder and the EIT generator. New decoded EIT tables are sent by callback to the application.

Define Documentation

#define dvbpsi_DeleteEIT (   p_eit)
Value:
do {                                                                    \
  dvbpsi_EmptyEIT(p_eit);                                               \
  free(p_eit);                                                          \
} while(0);

Clean and free a dvbpsi_eit_t structure.

Parameters:
p_eitpointer to the EIT structure
Returns:
nothing.
#define dvbpsi_NewEIT (   p_eit,
  i_service_id,
  i_version,
  b_current_next,
  i_ts_id,
  i_network_id,
  i_segment_last_section_number,
  i_last_table_id 
)
Value:
do {                                                                    \
  p_eit = (dvbpsi_eit_t*)malloc(sizeof(dvbpsi_eit_t));                  \
  if(p_eit != NULL)                                                     \
    dvbpsi_InitEIT(p_eit, i_service_id, i_version, b_current_next, i_ts_id, i_network_id, i_segment_last_section_number, i_last_table_id); \
} while(0);

Allocate and initialize a new dvbpsi_eit_t structure.

Parameters:
p_eitpointer to the EIT structure
i_ts_idtransport stream ID
i_versionEIT version
b_current_nextcurrent next indicator
i_network_idoriginal network id
Returns:
nothing.

Function Documentation

dvbpsi_eit_event_t * dvbpsi_EITAddEvent ( dvbpsi_eit_t p_eit,
uint16_t  i_event_id,
uint64_t  i_start_time,
uint32_t  i_duration,
uint8_t  i_running_status,
int  b_free_ca 
)

Add a service description at the end of the EIT.

Parameters:
p_eitpointer to the EIT structure
i_event_idEvent ID
i_start_timeStart Time
i_durationDuration
i_running_statusRunning status
b_free_caFree CA flag
Returns:
a pointer to the added service description.