libdvbv5 1.22.1
Library to work with Digital TV devices on Linux
|
Provides the table parser for the CAT (Conditional Access Table) More...
Go to the source code of this file.
Data Structures | |
struct | dvb_table_cat |
ATSC CAT table. More... | |
Macros | |
#define | DVB_TABLE_CAT |
ATSC CAT table ID. More... | |
#define | DVB_TABLE_CAT_PID |
ATSC PID table ID. More... | |
Functions | |
ssize_t | dvb_table_cat_init (struct dvb_v5_fe_parms *parms, const uint8_t *buf, ssize_t buflen, struct dvb_table_cat **table) |
Initializes and parses CAT table. More... | |
void | dvb_table_cat_free (struct dvb_table_cat *table) |
Frees all data allocated by the CAT table parser. More... | |
void | dvb_table_cat_print (struct dvb_v5_fe_parms *parms, struct dvb_table_cat *table) |
Prints the content of the CAT table. More... | |
Provides the table parser for the CAT (Conditional Access Table)
Definition in file cat.h.
void dvb_table_cat_free | ( | struct dvb_table_cat * | table | ) |
Frees all data allocated by the CAT table parser.
table | pointer to struct dvb_table_cat to be freed |
ssize_t dvb_table_cat_init | ( | struct dvb_v5_fe_parms * | parms, |
const uint8_t * | buf, | ||
ssize_t | buflen, | ||
struct dvb_table_cat ** | table | ||
) |
Initializes and parses CAT table.
parms | struct dvb_v5_fe_parms pointer to the opened device |
buf | buffer containing the CAT raw data |
buflen | length of the buffer |
table | pointer to struct dvb_table_cat to be allocated and filled |
This function allocates an CAT table and fills the fields inside the struct. It also makes sure that all fields will follow the CPU endianness. Due to that, the content of the buffer may change.
void dvb_table_cat_print | ( | struct dvb_v5_fe_parms * | parms, |
struct dvb_table_cat * | table | ||
) |
Prints the content of the CAT table.
parms | struct dvb_v5_fe_parms pointer to the opened device |
table | pointer to struct dvb_table_cat |