comparison libmpdvdkit2/libdvdcss.h @ 7027:c9a4dfaa9868

importing libdvdcss 1.2.2 files
author arpi
date Fri, 16 Aug 2002 22:35:45 +0000
parents
children fd2d4be9ed6f
comparison
equal deleted inserted replaced
7026:a3126e9099b4 7027:c9a4dfaa9868
1 /*****************************************************************************
2 * private.h: private DVD reading library data
3 *****************************************************************************
4 * Copyright (C) 1998-2001 VideoLAN
5 * $Id$
6 *
7 * Authors: Stéphane Borel <stef@via.ecp.fr>
8 * Samuel Hocevar <sam@zoy.org>
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
23 *****************************************************************************/
24
25 /*****************************************************************************
26 * The libdvdcss structure
27 *****************************************************************************/
28 struct dvdcss_s
29 {
30 /* File descriptor */
31 char * psz_device;
32 int i_fd;
33 int i_seekpos;
34
35 /* Decryption stuff */
36 int i_method;
37 css_t css;
38 int b_ioctls;
39 int b_scrambled;
40 dvd_title_t *p_titles;
41
42 /* Error management */
43 char * psz_error;
44 int b_errors;
45 int b_debug;
46
47 #ifdef WIN32
48 char * p_readv_buffer;
49 int i_readv_buf_size;
50 #endif
51
52 #ifndef WIN32
53 int i_raw_fd;
54 int i_read_fd;
55 #endif
56 };
57
58 /*****************************************************************************
59 * libdvdcss method: used like init flags
60 *****************************************************************************/
61 #define DVDCSS_METHOD_KEY 0
62 #define DVDCSS_METHOD_DISC 1
63 #define DVDCSS_METHOD_TITLE 2
64
65 /*****************************************************************************
66 * Functions used across the library
67 *****************************************************************************/
68 int _dvdcss_seek ( dvdcss_t, int );
69 int _dvdcss_read ( dvdcss_t, void *, int );
70
71 void _dvdcss_error ( dvdcss_t, char * );
72 void _dvdcss_debug ( dvdcss_t, char * );
73