]> git.sesse.net Git - vlc/blob - include/vlc_devices.h
update module LIST file.
[vlc] / include / vlc_devices.h
1 /*****************************************************************************
2  * vlc_devices.h : Devices handling
3  *****************************************************************************
4  * Copyright (C) 1999-2006 the VideoLAN team
5  * $Id$
6  *
7  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 #if !defined( __LIBVLC__ )
25   #error You are not libvlc or one of its plugins. You cannot include this file
26 #endif
27
28 #ifndef _VLC_DEVICES_H
29 #define _VLC_DEVICES_H 1
30
31 enum
32 {
33     DEVICE_CAN_DVD,
34     DEVICE_CAN_CD,
35 };
36
37 enum
38 {
39     MEDIA_TYPE_CDDA,
40     MEDIA_TYPE_VCD,
41     MEDIA_TYPE_DVD,
42 };
43
44 struct device_t
45 {
46     int             i_capabilities;
47     int             i_media_type;
48     vlc_bool_t      b_seen;
49     char *psz_uri;
50     char *psz_name;
51 };
52
53 struct device_probe_t
54 {
55     VLC_COMMON_MEMBERS;
56     int         i_devices;
57     device_t  **pp_devices;
58
59     probe_sys_t *p_sys;
60     void      ( *pf_run )    ( device_probe_t * );  /** Run function */
61 };
62
63 static inline void device_GetDVD(void)
64 {
65 }
66
67 #endif