cat.h man page

lib/include/libdvbv5/cat.h — Provides the table parser for the CAT (Conditional Access Table)

Synopsis

#include <stdint.h>
#include <unistd.h>
#include <libdvbv5/header.h>

Data Structures

struct dvb_table_cat
ATSC CAT table.

Macros

#define DVB_TABLE_CAT
ATSC CAT table ID.
#define DVB_TABLE_CAT_PID
ATSC PID table ID.

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.
void dvb_table_cat_free (struct dvb_table_cat *table)
Frees all data allocated by the CAT table parser.
void dvb_table_cat_print (struct dvb_v5_fe_parms *parms, struct dvb_table_cat *table)
Prints the content of the CAT table.

Detailed Description

Provides the table parser for the CAT (Conditional Access Table)

Copyright:

GNU General Public License version 2 (GPLv2)

Author:

Andre Roth

Bug Report

Please submit bug reports and patches to linux-media@vger.kernel.org

Definition in file cat.h.

Function Documentation

void dvb_table_cat_free (struct dvb_table_cat * table)

Frees all data allocated by the CAT table parser.

Parameters:

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.

Parameters:

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.

Returns:

On success, it returns the size of the allocated struct. A negative value indicates an error.

void dvb_table_cat_print (struct dvb_v5_fe_parms * parms, struct dvb_table_cat * table)

Prints the content of the CAT table.

Parameters:

parms struct dvb_v5_fe_parms pointer to the opened device
table pointer to struct dvb_table_cat

Author

Generated automatically by Doxygen for libdvbv5 from the source code.

Info

Tue Mar 1 2016 Version 1.10.0 libdvbv5