vd_ffmpeg: Reset ctx->vo_initialized to 0 on a resolution change
[mplayer/glamo.git] / libdvdcss / device.h
blobddaa18eb98dfd1d362c45ead0ee38864b9eb241c
1 /*****************************************************************************
2 * device.h: DVD device access
3 *****************************************************************************
4 * Copyright (C) 1998-2002 VideoLAN
5 * $Id$
7 * Authors: Stéphane Borel <stef@via.ecp.fr>
8 * Sam Hocevar <sam@zoy.org>
9 * Håkan Hjort <d95hjort@dtek.chalmers.se>
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License along
22 * with libdvdcss; if not, write to the Free Software Foundation, Inc.,
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 *****************************************************************************/
26 #ifndef DVDCSS_DEVICE_H
27 #define DVDCSS_DEVICE_H
29 /*****************************************************************************
30 * iovec structure: vectored data entry
31 *****************************************************************************/
32 #if defined( WIN32 ) && !defined( SYS_CYGWIN )
33 # include <io.h> /* read() */
34 #else
35 # include <sys/types.h>
36 # include <sys/uio.h> /* struct iovec */
37 #endif
39 #include "dvdcss/dvdcss.h"
41 #if defined( WIN32 ) && !defined( SYS_CYGWIN )
42 struct iovec
44 void *iov_base; /* Pointer to data. */
45 size_t iov_len; /* Length of data. */
47 #endif
49 /*****************************************************************************
50 * Device reading prototypes
51 *****************************************************************************/
52 int _dvdcss_use_ioctls ( dvdcss_t );
53 void _dvdcss_check ( dvdcss_t );
54 int _dvdcss_open ( dvdcss_t );
55 int _dvdcss_close ( dvdcss_t );
57 /*****************************************************************************
58 * Device reading prototypes, raw-device specific
59 *****************************************************************************/
60 #if !defined(WIN32) && !defined(SYS_OS2)
61 int _dvdcss_raw_open ( dvdcss_t, char const * );
62 #endif
64 #endif /* DVDCSS_DEVICE_H */