~ubuntu-branches/debian/wheezy/vlc/wheezy

« back to all changes in this revision

Viewing changes to modules/access/dvd/dvdcss.h

Tags: upstream-0.7.2.final
ImportĀ upstreamĀ versionĀ 0.7.2.final

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*****************************************************************************
 
2
 * dvdcss.h: Dummy libdvdcss header.
 
3
 *****************************************************************************
 
4
 * Copyright (C) 2001 VideoLAN
 
5
 * $Id: dvdcss.h 6961 2004-03-05 17:34:23Z sam $
 
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