libdvbpsi  2.0.0-git
MPEG Transport Stream PSI table parser
chain.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * chain.h
3  *
4  * Copyright (C) 2015 VideoLAN
5  * $Id$
6  *
7  * Authors: Jean-Paul Saman <jpsaman@videolan.org>
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22  *
23  *****************************************************************************/
24 
59 #ifndef _DVBPSI_CHAIN_H_
60 #define _DVBPSI_CHAIN_H_
61 
62 #ifdef __cplusplus
63 extern "C" {
64 #endif
65 
66 /*****************************************************************************
67  * dvbpsi_chain_demux_new
68  *****************************************************************************/
81  dvbpsi_callback_del_t pf_del, void *p_data);
82 
83 /*****************************************************************************
84  * dvbpsi_chain_demux_delete
85  *****************************************************************************/
96 
97 /*****************************************************************************
98  * dvbpsi_decoder_chain_add
99  *****************************************************************************/
108 
109 /*****************************************************************************
110  * dvbpsi_decoder_chain_remove
111  *****************************************************************************/
123 bool dvbpsi_decoder_chain_remove(dvbpsi_t *p_dvbpsi, const dvbpsi_decoder_t *p_decoder);
124 
125 /*****************************************************************************
126  * dvbpsi_decoder_chain_get
127  *****************************************************************************/
137 dvbpsi_decoder_t *dvbpsi_decoder_chain_get(dvbpsi_t *p_dvbpsi, const uint16_t table_id, const uint16_t extension);
138 
139 #ifdef __cplusplus
140 };
141 #endif
142 
143 #else
144 #error "Multiple inclusions of chain.h"
145 #endif
bool dvbpsi_chain_demux_delete(dvbpsi_t *p_dvbpsi)
dvbpsi_chain_demux_delete walks the chain of PSI (sub-)table decoders and removes them from the chain...
dvbpsi_decoder_t * dvbpsi_decoder_chain_get(dvbpsi_t *p_dvbpsi, const uint16_t table_id, const uint16_t extension)
Gets decoder from the chain based on given table_id and extension. If extension is 0,...
bool dvbpsi_decoder_chain_add(dvbpsi_t *p_dvbpsi, dvbpsi_decoder_t *p_decoder)
Adds decoder to the chain in handle 'p_dvbpsi' at dvbpsi_t::dvbpsi_decoder_t.
bool dvbpsi_chain_demux_new(dvbpsi_t *p_dvbpsi, dvbpsi_callback_new_t pf_new, dvbpsi_callback_del_t pf_del, void *p_data)
dvbpsi_chain_demux_new creates a decoder for demuxing PSI tables and subtables.
bool dvbpsi_decoder_chain_remove(dvbpsi_t *p_dvbpsi, const dvbpsi_decoder_t *p_decoder)
Deletes decoder from the chain in handle 'p_dvbpsi' at dvbpsi_t::dvbpsi_decoder_t.
void(* dvbpsi_callback_new_t)(dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension, void *p_data)
Callback used in case of a new PSI table is detected.
Definition: dvbpsi.h:230
void(* dvbpsi_callback_del_t)(dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension)
Callback used to delete PSI table.
Definition: dvbpsi.h:243
PSI decoder structure.
Definition: dvbpsi.h:293
DVBPSI handle structure.
Definition: dvbpsi.h:143