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

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

Go to the source code of this file.

Data Structures

struct  dvbpsi_pat_program_s
 PAT program structure. More...
struct  dvbpsi_pat_s
 PAT structure. More...

Defines

#define dvbpsi_NewPAT(p_pat, i_ts_id, i_version, b_current_next)
 Allocate and initialize a new dvbpsi_pat_t structure.
#define dvbpsi_DeletePAT(p_pat)
 Clean and free a dvbpsi_pat_t structure.

Typedefs

typedef struct dvbpsi_pat_program_s dvbpsi_pat_program_t
 dvbpsi_pat_program_t type definition.
typedef struct dvbpsi_pat_s dvbpsi_pat_t
 dvbpsi_pat_t type definition.
typedef void(* dvbpsi_pat_callback )(void *p_cb_data, dvbpsi_pat_t *p_new_pat)
 Callback type definition.

Functions

 __attribute__ ((deprecated)) dvbpsi_handle dvbpsi_AttachPAT(dvbpsi_pat_callback pf_callback

Variables

void * p_cb_data
uint16_t i_ts_id
uint16_t uint8_t i_version
uint16_t uint8_t int b_current_next
uint16_t i_number
uint16_t uint16_t i_pid
int i_max_pps

Detailed Description

Application interface for the PAT decoder and the PAT generator.

>

Author:
Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr> Application interface for the PAT decoder and the PAT generator. New decoded PAT tables are sent by callback to the application.

Define Documentation

#define dvbpsi_DeletePAT (   p_pat)
Value:
do {                                                                    \
  dvbpsi_EmptyPAT(p_pat);                                               \
  free(p_pat);                                                          \
} while(0);

Clean and free a dvbpsi_pat_t structure.

Parameters:
p_patpointer to the PAT structure
Returns:
nothing.
#define dvbpsi_NewPAT (   p_pat,
  i_ts_id,
  i_version,
  b_current_next 
)
Value:
do {                                                                    \
  p_pat = (dvbpsi_pat_t*)malloc(sizeof(dvbpsi_pat_t));                  \
  if(p_pat != NULL)                                                     \
    dvbpsi_InitPAT(p_pat, i_ts_id, i_version, b_current_next);          \
} while(0);

Allocate and initialize a new dvbpsi_pat_t structure.

Parameters:
p_patpointer to the PAT structure
i_ts_idtransport stream ID
i_versionPAT version
b_current_nextcurrent next indicator
Returns:
nothing.