libdvbpsi  0.2.2
Data Structures | Macros | Typedefs | Functions | Variables
cat.h File Reference

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

Go to the source code of this file.

Data Structures

struct  dvbpsi_cat_s
 CAT structure. More...
 

Macros

#define dvbpsi_NewCAT(p_cat,i_version, b_current_next)
 Allocate and initialize a new dvbpsi_cat_t structure. More...
 
#define dvbpsi_DeleteCAT(p_cat)
 Clean and free a dvbpsi_cat_t structure. More...
 

Typedefs

typedef struct dvbpsi_cat_s dvbpsi_cat_t
 dvbpsi_cat_t type definition.
 
typedef void(* dvbpsi_cat_callback )(void *p_cb_data, dvbpsi_cat_t *p_new_cat)
 Callback type definition.
 

Functions

 __attribute__ ((deprecated)) dvbpsi_handle dvbpsi_AttachCAT(dvbpsi_cat_callback pf_callback
 

Variables

void * p_cb_data
 
uint8_t i_version
 
uint8_t int b_current_next
 
uint8_t i_tag
 
uint8_t uint8_t i_length
 
uint8_t uint8_t uint8_t * p_data
 

Detailed Description

Application interface for the CAT decoder and the CAT generator.

Author
Arnaud de Bossoreille de Ribou bozo@.nosp@m.via..nosp@m.ecp.f.nosp@m.r Application interface for the CAT decoder and the CAT generator. New decoded CAT tables are sent by callback to the application.

Macro Definition Documentation

#define dvbpsi_DeleteCAT (   p_cat)
Value:
do { \
dvbpsi_EmptyCAT(p_cat); \
free(p_cat); \
} while(0);

Clean and free a dvbpsi_cat_t structure.

Parameters
p_catpointer to the CAT structure
Returns
nothing.
#define dvbpsi_NewCAT (   p_cat,
  i_version,
  b_current_next 
)
Value:
do { \
p_cat = (dvbpsi_cat_t*)malloc(sizeof(dvbpsi_cat_t)); \
if(p_cat != NULL) \
dvbpsi_InitCAT(p_cat, i_version, b_current_next); \
} while(0);

Allocate and initialize a new dvbpsi_cat_t structure.

Parameters
p_catpointer to the CAT structure
i_versionCAT version
b_current_nextcurrent next indicator
Returns
nothing.