]> git.sesse.net Git - vlc/blob - src/interface/intf_channels.h
* Header cleaning: filled all empty authors fields, added CVS $Id stuff.
[vlc] / src / interface / intf_channels.h
1 /*****************************************************************************
2  * intf_channels.h: Channel handling functions
3  *****************************************************************************
4  * Copyright (C) 1998, 1999, 2000 VideoLAN
5  * $Id: intf_channels.h,v 1.2 2001/03/21 13:42:34 sam Exp $
6  *
7  * Authors: Vincent Seguin <seguin@via.ecp.fr>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  * 
14  * This program 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
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22  *****************************************************************************/
23
24 /*****************************************************************************
25  * intf_channel_t: channel description
26  *****************************************************************************
27  * A 'channel' is a descriptor of an input method. It is used to switch easily
28  * from source to source without having to specify the whole input thread
29  * configuration. The channels array, stored in the interface thread object, is
30  * loaded in intf_Create, and unloaded in intf_Destroy.
31  *****************************************************************************/
32 typedef struct intf_channel_s
33 {
34     /* Channel description */
35     int         i_channel;            /* channel number, -1 for end of array */
36     char *      psz_description;              /* channel description (owned) */
37
38     /* Input configuration */
39     int         i_input_method;                   /* input method descriptor */
40     char *      psz_input_source;                   /* source string (owned) */
41     int         i_input_port;                                        /* port */
42     int         i_input_vlan_id;                                  /* vlan id */
43 } intf_channel_t;
44
45 /*****************************************************************************
46  * Prototypes
47  *****************************************************************************/
48 int     intf_LoadChannels   ( struct intf_thread_s *, char * );
49 void    intf_UnloadChannels ( struct intf_thread_s * );
50 int     intf_SelectChannel  ( struct intf_thread_s *, int );
51