]> git.sesse.net Git - vlc/blob - plugins/dvd/dummy_dvdcss.h
* Added a dummy libdvdcss so that the DVD plugin can be used without
[vlc] / plugins / dvd / dummy_dvdcss.h
1 /*****************************************************************************
2  * dummy_dvdcss.h: Dummy libdvdcss header.
3  *****************************************************************************
4  * Copyright (C) 2001 VideoLAN
5  * $Id: dummy_dvdcss.h,v 1.1 2001/08/06 13:28:00 sam Exp $
6  *
7  * Authors: Samuel Hocevar <sam@zoy.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., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22  *****************************************************************************/
23
24 /*****************************************************************************
25  * The libdvdcss structure
26  *****************************************************************************/
27 typedef struct dvdcss_s* dvdcss_handle;
28
29 /*****************************************************************************
30  * Flags
31  *****************************************************************************/
32 #define DVDCSS_NOFLAGS         0
33
34 #define DVDCSS_INIT_QUIET      (1 << 0)
35 #define DVDCSS_INIT_DEBUG      (1 << 1)
36
37 #define DVDCSS_READ_DECRYPT    (1 << 0)
38
39 #define DVDCSS_BLOCK_SIZE      2048
40
41 /*****************************************************************************
42  * Exported prototypes
43  *****************************************************************************/
44 dvdcss_handle dummy_dvdcss_open  ( char *, int i_flags );
45 int           dummy_dvdcss_close ( dvdcss_handle );
46 int           dummy_dvdcss_title ( dvdcss_handle, int );
47 int           dummy_dvdcss_seek  ( dvdcss_handle, int );
48 int           dummy_dvdcss_read  ( dvdcss_handle, void *, int, int );
49 int           dummy_dvdcss_readv ( dvdcss_handle, void *, int, int );
50 char *        dummy_dvdcss_error ( dvdcss_handle );
51
52 /*****************************************************************************
53  * Pointers which will be filled either with dummy_dvdcss functions or
54  * with the dlopen()ed ones.
55  *****************************************************************************/
56 dvdcss_handle (* dvdcss_open )   ( char *, int i_flags );
57 int           (* dvdcss_close )  ( dvdcss_handle );
58 int           (* dvdcss_title )  ( dvdcss_handle, int );
59 int           (* dvdcss_seek )   ( dvdcss_handle, int );
60 int           (* dvdcss_read )   ( dvdcss_handle, void *, int, int );
61 int           (* dvdcss_readv )  ( dvdcss_handle, void *, int, int );
62 char *        (* dvdcss_error )  ( dvdcss_handle );
63