]> git.sesse.net Git - vlc/blob - plugins/dvd/dummy_dvdcss.h
*Fixed demux plugin selection.
[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.7 2002/01/23 03:15:31 stef 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  * Defines and flags
31  *****************************************************************************/
32 #define DVDCSS_BLOCK_SIZE      2048
33
34 #define DVDCSS_NOFLAGS         0
35 #define DVDCSS_READ_DECRYPT    (1 << 0)
36 #define DVDCSS_SEEK_MPEG       (1 << 0)
37 #define DVDCSS_SEEK_KEY        (1 << 1)
38
39 /*****************************************************************************
40  * Exported prototypes
41  *****************************************************************************/
42 dvdcss_handle dummy_dvdcss_open  ( char * );
43 int           dummy_dvdcss_close ( dvdcss_handle );
44 int           dummy_dvdcss_title ( dvdcss_handle, int );
45 int           dummy_dvdcss_seek  ( dvdcss_handle, int, int );
46 int           dummy_dvdcss_read  ( dvdcss_handle, void *, int, int );
47 int           dummy_dvdcss_readv ( dvdcss_handle, void *, int, int );
48 char *        dummy_dvdcss_error ( dvdcss_handle );
49
50 /*****************************************************************************
51  * Pointers which will be filled either with dummy_dvdcss functions or
52  * with the dlopen()ed ones.
53  *****************************************************************************/
54 #define ____dvdcss_open  dvdcss_open
55 #define ____dvdcss_close dvdcss_close
56 #define ____dvdcss_title dvdcss_title
57 #define ____dvdcss_seek  dvdcss_seek
58 #define ____dvdcss_read  dvdcss_read
59 #define ____dvdcss_readv dvdcss_readv
60 #define ____dvdcss_error dvdcss_error
61
62 dvdcss_handle (* ____dvdcss_open )   ( char * );
63 int           (* ____dvdcss_close )  ( dvdcss_handle );
64 int           (* ____dvdcss_title )  ( dvdcss_handle, int );
65 int           (* ____dvdcss_seek )   ( dvdcss_handle, int, int );
66 int           (* ____dvdcss_read )   ( dvdcss_handle, void *, int, int );
67 int           (* ____dvdcss_readv )  ( dvdcss_handle, void *, int, int );
68 char *        (* ____dvdcss_error )  ( dvdcss_handle );
69
70