blob: 3df3faea2f2a6d49c6782c9aabfd1d522e4219ea [file] [log] [blame]
Gong Ked869dd72020-07-20 09:00:25 +08001/**
2 * \file
3 * \brief DVB utility functions
4 */
5
6#ifndef DVB_UTILS_H_
7#define DVB_UTILS_H_
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13/**Demux input source.*/
14typedef enum {
15 DVB_DEMUX_SOURCE_TS0, /**< Hardware TS input port 0.*/
16 DVB_DEMUX_SOURCE_TS1, /**< Hardware TS input port 1.*/
17 DVB_DEMUX_SOURCE_TS2, /**< Hardware TS input port 2.*/
18 DVB_DEMUX_SOURCE_DMA0 /**< DMA input port 0.*/
19} DVB_DemuxSource_t;
20
21/**
22 * Set the demux's input source.
23 * \param dmx_idx Demux device's index.
24 * \param src The demux's input source.
25 * \retval 0 On success.
26 * \retval -1 On error.
27 */
28int dvb_set_demux_source (int dmx_idx, DVB_DemuxSource_t src);
29
30#ifdef __cplusplus
31}
32#endif
33
34#endif /*DVB_UTILS_H_*/
35