1 /*****************************************************************************
2 * libdvdcss.h: DVD reading library, exported functions.
3 *****************************************************************************
4 * Copyright (C) 1998-2001 VideoLAN
5 * $Id: dvdcss.h,v 1.3 2001/06/20 07:43:48 sam Exp $
7 * Authors: Stéphane Borel <stef@via.ecp.fr>
8 * Samuel Hocevar <sam@zoy.org>
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.
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.
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 *****************************************************************************/
25 /*****************************************************************************
26 * The libdvdcss structure
27 *****************************************************************************/
28 typedef struct dvdcss_s* dvdcss_handle;
30 /*****************************************************************************
32 *****************************************************************************/
33 #define DVDCSS_NOFLAGS 0
35 #define DVDCSS_INIT_QUIET (1 << 0)
36 #define DVDCSS_INIT_DEBUG (1 << 1)
38 #define DVDCSS_READ_DECRYPT (1 << 0)
40 #define DVDCSS_BLOCK_SIZE 2048
42 /*****************************************************************************
44 *****************************************************************************/
45 extern dvdcss_handle dvdcss_open ( char *psz_target,
47 extern int dvdcss_close ( dvdcss_handle );
48 extern int dvdcss_crack ( dvdcss_handle,
51 extern int dvdcss_seek ( dvdcss_handle,
53 extern int dvdcss_read ( dvdcss_handle,
57 extern int dvdcss_readv ( dvdcss_handle,
61 extern char * dvdcss_error ( dvdcss_handle );