Mercurial > mplayer.hg
annotate libmpdvdkit2/dvdcss/dvdcss.h @ 20325:a8d4bc11b5c1
little fix, sorry
author | ptt |
---|---|
date | Sat, 21 Oct 2006 09:57:38 +0000 |
parents | e5d97c5f3c32 |
children | cca07f6ff5b6 |
rev | line source |
---|---|
19820
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
1 /** |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
2 * \file dvdcss.h |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
3 * \author Stéphane Borel <stef@via.ecp.fr> |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
4 * \author Samuel Hocevar <sam@zoy.org> |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
5 * \brief The \e libdvdcss public header. |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
6 * |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
7 * This header contains the public types and functions that applications |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
8 * using \e libdvdcss may use. |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
9 */ |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
10 |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
11 /* |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
12 * Copyright (C) 1998-2002 VideoLAN |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
13 * $Id$ |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
14 * |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
15 * This program is free software; you can redistribute it and/or modify |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
16 * it under the terms of the GNU General Public License as published by |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
17 * the Free Software Foundation; either version 2 of the License, or |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
18 * (at your option) any later version. |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
19 * |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
20 * This program is distributed in the hope that it will be useful, |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
23 * GNU General Public License for more details. |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
24 * |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
25 * You should have received a copy of the GNU General Public License |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
26 * along with this program; if not, write to the Free Software |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
27 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
28 */ |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
29 |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
30 #ifndef _DVDCSS_DVDCSS_H |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
31 #ifndef _DOXYGEN_SKIP_ME |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
32 #define _DVDCSS_DVDCSS_H 1 |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
33 #endif |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
34 |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
35 #ifdef __cplusplus |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
36 extern "C" { |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
37 #endif |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
38 |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
39 /** Library instance handle, to be used for each library call. */ |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
40 typedef struct dvdcss_s* dvdcss_t; |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
41 |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
42 |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
43 /** The block size of a DVD. */ |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
44 #define DVDCSS_BLOCK_SIZE 2048 |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
45 |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
46 /** The default flag to be used by \e libdvdcss functions. */ |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
47 #define DVDCSS_NOFLAGS 0 |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
48 |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
49 /** Flag to ask dvdcss_read() to decrypt the data it reads. */ |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
50 #define DVDCSS_READ_DECRYPT (1 << 0) |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
51 |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
52 /** Flag to tell dvdcss_seek() it is seeking in MPEG data. */ |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
53 #define DVDCSS_SEEK_MPEG (1 << 0) |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
54 |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
55 /** Flag to ask dvdcss_seek() to check the current title key. */ |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
56 #define DVDCSS_SEEK_KEY (1 << 1) |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
57 |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
58 |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
59 /* |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
60 * Our version number. The variable name contains the interface version. |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
61 */ |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
62 extern char * dvdcss_interface_2; |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
63 |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
64 |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
65 /* |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
66 * Exported prototypes. |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
67 */ |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
68 extern dvdcss_t dvdcss_open ( char *psz_target ); |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
69 extern int dvdcss_close ( dvdcss_t ); |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
70 extern int dvdcss_seek ( dvdcss_t, |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
71 int i_blocks, |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
72 int i_flags ); |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
73 extern int dvdcss_read ( dvdcss_t, |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
74 void *p_buffer, |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
75 int i_blocks, |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
76 int i_flags ); |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
77 extern int dvdcss_readv ( dvdcss_t, |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
78 void *p_iovec, |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
79 int i_blocks, |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
80 int i_flags ); |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
81 extern char * dvdcss_error ( dvdcss_t ); |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
82 |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
83 |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
84 /* |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
85 * Deprecated stuff. |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
86 */ |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
87 #ifndef _DOXYGEN_SKIP_ME |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
88 #define dvdcss_title(a,b) dvdcss_seek(a,b,DVDCSS_SEEK_KEY) |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
89 #define dvdcss_handle dvdcss_t |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
90 #endif |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
91 |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
92 |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
93 #ifdef __cplusplus |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
94 } |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
95 #endif |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
96 |
e5d97c5f3c32
Move dvdcss.h to a dvdcss subdirectory, just like upstream libdvdcss does.
diego
parents:
diff
changeset
|
97 #endif /* <dvdcss/dvdcss.h> */ |