1 /*****************************************************************************
2 * intf_channels.h: Channel handling functions
3 *****************************************************************************
4 * Copyright (C) 1998, 1999, 2000 VideoLAN
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
21 *****************************************************************************/
23 /*****************************************************************************
24 * intf_channel_t: channel description
25 *****************************************************************************
26 * A 'channel' is a descriptor of an input method. It is used to switch easily
27 * from source to source without having to specify the whole input thread
28 * configuration. The channels array, stored in the interface thread object, is
29 * loaded in intf_Create, and unloaded in intf_Destroy.
30 *****************************************************************************/
31 typedef struct intf_channel_s
33 /* Channel description */
34 int i_channel; /* channel number, -1 for end of array */
35 char * psz_description; /* channel description (owned) */
37 /* Input configuration */
38 int i_input_method; /* input method descriptor */
39 char * psz_input_source; /* source string (owned) */
40 int i_input_port; /* port */
41 int i_input_vlan_id; /* vlan id */
44 /*****************************************************************************
46 *****************************************************************************/
47 int intf_LoadChannels ( struct intf_thread_s *, char * );
48 void intf_UnloadChannels ( struct intf_thread_s * );
49 int intf_SelectChannel ( struct intf_thread_s *, int );