libdvbpsi  2.0.0-git
MPEG Transport Stream PSI table parser
Data Structures | Typedefs | Functions
rst.h File Reference

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

Go to the source code of this file.

Data Structures

struct  dvbpsi_rst_event_s
 RST service description structure. More...
 
struct  dvbpsi_rst_s
 RST structure. More...
 

Typedefs

typedef struct dvbpsi_rst_event_s dvbpsi_rst_event_t
 dvbpsi_rst_event_t type definition.
 
typedef struct dvbpsi_rst_s dvbpsi_rst_t
 dvbpsi_rst_t type definition.
 
typedef void(* dvbpsi_rst_callback) (void *p_priv, dvbpsi_rst_t *p_new_rst)
 Callback type definition.
 

Functions

bool dvbpsi_rst_attach (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension, dvbpsi_rst_callback pf_callback, void *p_priv)
 
void dvbpsi_rst_detach (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension)
 Destroy a RST decoder. More...
 
void dvbpsi_rst_init (dvbpsi_rst_t *p_rst)
 Initialize a user-allocated dvbpsi_cat_t structure. More...
 
dvbpsi_rst_tdvbpsi_rst_new (void)
 Allocate and initialize a new dvbpsi_rst_t structure. More...
 
void dvbpsi_rst_empty (dvbpsi_rst_t *p_rst)
 Clean a dvbpsi_rst_t structure. More...
 
void dvbpsi_rst_delete (dvbpsi_rst_t *p_rst)
 Clean and free a dvbpsi_rst_t structure. More...
 
dvbpsi_rst_event_tdvbpsi_rst_event_add (dvbpsi_rst_t *p_rst, uint16_t i_ts_id, uint16_t i_orig_network_id, uint16_t i_service_id, uint16_t i_event_id, uint8_t i_running_status)
 Add an event in the RST. More...
 
dvbpsi_psi_section_tdvbpsi_rst_sections_generate (dvbpsi_t *p_dvbpsi, dvbpsi_rst_t *p_rst)
 

Detailed Description

Application interface for the RST decoder and the RST generator.

>

Author
Corno Roberto corno.nosp@m..rob.nosp@m.erto@.nosp@m.gmai.nosp@m.l.com

Application interface for the RST decoder and the RST generator. New decoded RST tables are sent by callback to the application.

Function Documentation

◆ dvbpsi_rst_delete()

void dvbpsi_rst_delete ( dvbpsi_rst_t p_rst)

Clean and free a dvbpsi_rst_t structure.

Parameters
p_rstpointer to the RST structure
Returns
nothing.

◆ dvbpsi_rst_detach()

void dvbpsi_rst_detach ( dvbpsi_t p_dvbpsi,
uint8_t  i_table_id,
uint16_t  i_extension 
)

Destroy a RST decoder.

Parameters
p_dvbpsihandle to dvbpsi with attached decoder
i_table_idTable ID
i_extensionTable ID extension
Returns
nothing.

The handle isn't valid any more.

◆ dvbpsi_rst_empty()

void dvbpsi_rst_empty ( dvbpsi_rst_t p_rst)

Clean a dvbpsi_rst_t structure.

Parameters
p_rstpointer to the RST structure
Returns
nothing.

◆ dvbpsi_rst_event_add()

dvbpsi_rst_event_t * dvbpsi_rst_event_add ( dvbpsi_rst_t p_rst,
uint16_t  i_ts_id,
uint16_t  i_orig_network_id,
uint16_t  i_service_id,
uint16_t  i_event_id,
uint8_t  i_running_status 
)

Add an event in the RST.

Parameters
p_rstpointer to the RST structure
i_ts_idevent's transport stream id
i_orig_network_idevent's original network id
i_service_idevent's service id
i_event_idevent's id
i_running_statusevent's running status
Returns
a pointer to the added event.

◆ dvbpsi_rst_init()

void dvbpsi_rst_init ( dvbpsi_rst_t p_rst)

Initialize a user-allocated dvbpsi_cat_t structure.

Parameters
p_rstpointer to the RST structure
Returns
nothing.

◆ dvbpsi_rst_new()

dvbpsi_rst_t * dvbpsi_rst_new ( void  )

Allocate and initialize a new dvbpsi_rst_t structure.

Returns
p_rst pointer to the RST structure