1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
#ifndef _DVBPSI_SECTIONS_H_
#define _DVBPSI_SECTIONS_H_
#ifdef __cplusplus
extern "C" {
#endif
typedef void (*dvbpsi_sections_new_cb_t) (void * p_cb_data,
dvbpsi_handle h_dvbpsi,
dvbpsi_psi_section_t* p_section);
/*****************************************************************************
* dvbpsi_sections_t
*****************************************************************************/
/*!
* \struct dvbpsi_demux_s
* \brief subtable demultiplexor structure
*
* This structure contains the subtables demultiplexor data, such as the
* decoders and new subtable callback.
*/
/*!
* \typedef struct dvbpsi_demux_s dvbpsi_demux_t
* \brief dvbpsi_demux_t type definition.
*/
typedef struct dvbpsi_sections_s
{
dvbpsi_handle p_decoder; /*!< Parent PSI Decoder */
/* New subtable callback */
dvbpsi_sections_new_cb_t pf_new_callback; /*!< New subtable callback */
void * p_new_cb_data; /*!< Data provided to the
previous callback */
} dvbpsi_sections_t;
dvbpsi_handle dvbpsi_AttachSections(dvbpsi_sections_new_cb_t pf_new_cb,
void * p_new_cb_data);
void dvbpsi_DetachSections(dvbpsi_handle h_dvbpsi);
void dvbpsi_PushSection(dvbpsi_handle h_dvbpsi, dvbpsi_psi_section_t* p_section);
#ifdef __cplusplus
};
#endif
#else
#error "Multiple inclusions of demux.h"
#endif
|