annotate libdvdcss/dvdcss/dvdcss.h @ 36387:85c8e2989c90

Add some missing "const".
author reimar
date Fri, 25 Oct 2013 19:59:54 +0000
parents 691431d2289e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
1 /**
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
2 * \file dvdcss.h
27442
afa2cc0166be Sync libdvdcss with upstream version r212.
diego
parents: 25617
diff changeset
3 * \author Stéphane Borel <stef@via.ecp.fr>
27462
60bd1a7f3fc6 Sync libdvdcss with upstream version 1.2.10.
diego
parents: 27442
diff changeset
4 * \author Sam Hocevar <sam@zoy.org>
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
5 * \brief The \e libdvdcss public header.
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
6 *
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
7 * This header contains the public types and functions that applications
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
8 * using \e libdvdcss may use.
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
9 */
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
10
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
11 /*
27462
60bd1a7f3fc6 Sync libdvdcss with upstream version 1.2.10.
diego
parents: 27442
diff changeset
12 * Copyright (C) 1998-2008 VideoLAN
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
13 *
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
14 * This program is free software; you can redistribute it and/or modify
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
15 * it under the terms of the GNU General Public License as published by
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
16 * the Free Software Foundation; either version 2 of the License, or
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
17 * (at your option) any later version.
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
18 *
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
19 * This program is distributed in the hope that it will be useful,
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
22 * GNU General Public License for more details.
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
23 *
31098
9e9595c779cf libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents: 27462
diff changeset
24 * You should have received a copy of the GNU General Public License along
9e9595c779cf libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents: 27462
diff changeset
25 * with libdvdcss; if not, write to the Free Software Foundation, Inc.,
9e9595c779cf libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents: 27462
diff changeset
26 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
27 */
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
28
24535
b015cbd37591 Leading underscores in identifiers are reserved in C.
diego
parents: 20613
diff changeset
29 #ifndef DVDCSS_DVDCSS_H
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
30 #ifndef _DOXYGEN_SKIP_ME
24535
b015cbd37591 Leading underscores in identifiers are reserved in C.
diego
parents: 20613
diff changeset
31 #define DVDCSS_DVDCSS_H 1
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
32 #endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
33
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
34 #ifdef __cplusplus
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
35 extern "C" {
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
36 #endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
37
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
38 /** Library instance handle, to be used for each library call. */
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
39 typedef struct dvdcss_s* dvdcss_t;
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
40
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
41
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
42 /** The block size of a DVD. */
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
43 #define DVDCSS_BLOCK_SIZE 2048
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
44
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
45 /** The default flag to be used by \e libdvdcss functions. */
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
46 #define DVDCSS_NOFLAGS 0
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
47
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
48 /** Flag to ask dvdcss_read() to decrypt the data it reads. */
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
49 #define DVDCSS_READ_DECRYPT (1 << 0)
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
50
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
51 /** Flag to tell dvdcss_seek() it is seeking in MPEG data. */
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
52 #define DVDCSS_SEEK_MPEG (1 << 0)
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
53
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
54 /** Flag to ask dvdcss_seek() to check the current title key. */
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
55 #define DVDCSS_SEEK_KEY (1 << 1)
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
56
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
57
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
58 #if defined(LIBDVDCSS_EXPORTS)
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
59 #define LIBDVDCSS_EXPORT __declspec(dllexport) extern
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
60 #elif defined(LIBDVDCSS_IMPORTS)
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
61 #define LIBDVDCSS_EXPORT __declspec(dllimport) extern
35952
691431d2289e Update internal libdvdcss to Git revision 39e0e2b.
diego
parents: 35263
diff changeset
62 #elif defined(SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT)
35263
a893e72567ca Updated libdvdcss to r255
SubJunk
parents: 31098
diff changeset
63 #define LIBDVDCSS_EXPORT __attribute__((visibility("default"))) extern
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
64 #else
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
65 #define LIBDVDCSS_EXPORT extern
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
66 #endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
67
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
68
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
69 /*
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
70 * Exported prototypes.
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
71 */
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
72 LIBDVDCSS_EXPORT dvdcss_t dvdcss_open ( char *psz_target );
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
73 LIBDVDCSS_EXPORT int dvdcss_close ( dvdcss_t );
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
74 LIBDVDCSS_EXPORT int dvdcss_seek ( dvdcss_t,
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
75 int i_blocks,
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
76 int i_flags );
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
77 LIBDVDCSS_EXPORT int dvdcss_read ( dvdcss_t,
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
78 void *p_buffer,
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
79 int i_blocks,
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
80 int i_flags );
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
81 LIBDVDCSS_EXPORT int dvdcss_readv ( dvdcss_t,
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
82 void *p_iovec,
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
83 int i_blocks,
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
84 int i_flags );
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
85 LIBDVDCSS_EXPORT char * dvdcss_error ( dvdcss_t );
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
86
27442
afa2cc0166be Sync libdvdcss with upstream version r212.
diego
parents: 25617
diff changeset
87 LIBDVDCSS_EXPORT int dvdcss_is_scrambled ( dvdcss_t );
afa2cc0166be Sync libdvdcss with upstream version r212.
diego
parents: 25617
diff changeset
88
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
89 #ifdef __cplusplus
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
90 }
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
91 #endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
92
25617
9fa3af97c963 Fix #endif comment, sync with libdvdcss r208.
diego
parents: 24535
diff changeset
93 #endif /* DVDCSS_DVDCSS_H */