src
dvdcss
dvdcss.h
Go to the documentation of this file.
1
11
/*
12
* Copyright (C) 1998-2008 VideoLAN
13
*
14
* This program is free software; you can redistribute it and/or modify
15
* it under the terms of the GNU General Public License as published by
16
* the Free Software Foundation; either version 2 of the License, or
17
* (at your option) any later version.
18
*
19
* This program is distributed in the hope that it will be useful,
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
* GNU General Public License for more details.
23
*
24
* You should have received a copy of the GNU General Public License along
25
* with libdvdcss; if not, write to the Free Software Foundation, Inc.,
26
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27
*/
28
29
#ifndef DVDCSS_DVDCSS_H
30
#ifndef _DOXYGEN_SKIP_ME
31
#define DVDCSS_DVDCSS_H 1
32
#endif
33
34
#ifdef __cplusplus
35
extern
"C"
{
36
#endif
37
39
typedef
struct
dvdcss_s*
dvdcss_t
;
40
41
43
#define DVDCSS_BLOCK_SIZE 2048
44
46
#define DVDCSS_NOFLAGS 0
47
49
#define DVDCSS_READ_DECRYPT (1 << 0)
50
52
#define DVDCSS_SEEK_MPEG (1 << 0)
53
55
#define DVDCSS_SEEK_KEY (1 << 1)
56
57
58
#if defined(LIBDVDCSS_EXPORTS)
59
#define LIBDVDCSS_EXPORT __declspec(dllexport) extern
60
#elif defined(LIBDVDCSS_IMPORTS)
61
#define LIBDVDCSS_EXPORT __declspec(dllimport) extern
62
#elif defined(SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT)
63
#define LIBDVDCSS_EXPORT __attribute__((visibility("default"))) extern
64
#else
65
#define LIBDVDCSS_EXPORT extern
66
#endif
67
68
69
/*
70
* Exported prototypes.
71
*/
72
LIBDVDCSS_EXPORT dvdcss_t
dvdcss_open
(
char
*psz_target );
73
LIBDVDCSS_EXPORT
int
dvdcss_close
( dvdcss_t );
74
LIBDVDCSS_EXPORT
int
dvdcss_seek
( dvdcss_t,
75
int
i_blocks,
76
int
i_flags );
77
LIBDVDCSS_EXPORT
int
dvdcss_read
( dvdcss_t,
78
void
*p_buffer,
79
int
i_blocks,
80
int
i_flags );
81
LIBDVDCSS_EXPORT
int
dvdcss_readv
( dvdcss_t,
82
void
*p_iovec,
83
int
i_blocks,
84
int
i_flags );
85
LIBDVDCSS_EXPORT
char
*
dvdcss_error
( dvdcss_t );
86
87
LIBDVDCSS_EXPORT
int
dvdcss_is_scrambled
( dvdcss_t );
88
89
#ifdef __cplusplus
90
}
91
#endif
92
93
#endif
/* DVDCSS_DVDCSS_H */