comparison libmpdvdkit2/device.h @ 7027:c9a4dfaa9868

importing libdvdcss 1.2.2 files
author arpi
date Fri, 16 Aug 2002 22:35:45 +0000
parents
children 0211de3039eb
comparison
equal deleted inserted replaced
7026:a3126e9099b4 7027:c9a4dfaa9868
1 /*****************************************************************************
2 * device.h: DVD device access
3 *****************************************************************************
4 * Copyright (C) 1998-2002 VideoLAN
5 * $Id$
6 *
7 * Authors: Stéphane Borel <stef@via.ecp.fr>
8 * Samuel Hocevar <sam@zoy.org>
9 * Håkan Hjort <d95hjort@dtek.chalmers.se>
10 *
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.
15 *
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.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
24 *****************************************************************************/
25
26 /*****************************************************************************
27 * iovec structure: vectored data entry
28 *****************************************************************************/
29 #if defined( WIN32 )
30 # include <io.h> /* read() */
31 #else
32 # include <sys/uio.h> /* struct iovec */
33 #endif
34
35 #if defined( WIN32 )
36 struct iovec
37 {
38 void *iov_base; /* Pointer to data. */
39 size_t iov_len; /* Length of data. */
40 };
41 #endif
42
43 /*****************************************************************************
44 * Device reading prototypes
45 *****************************************************************************/
46 int _dvdcss_use_ioctls ( dvdcss_t );
47 int _dvdcss_open ( dvdcss_t );
48 int _dvdcss_close ( dvdcss_t );
49 int _dvdcss_readv ( dvdcss_t, struct iovec *, int );
50
51 /*****************************************************************************
52 * Device reading prototypes, raw-device specific
53 *****************************************************************************/
54 #ifndef WIN32
55 int _dvdcss_raw_open ( dvdcss_t, char * );
56 #endif
57