Debian Codegraph @

src/dvd_input.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2001, 2002 Samuel Hocevar <[email protected]>,
3 * Håkan Hjort <[email protected]>
4 *
5 * This file is part of libdvdread.
6 *
7 * libdvdread is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * libdvdread is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with libdvdread; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 */
21
22 #ifndef LIBDVDREAD_DVD_INPUT_H
23 #define LIBDVDREAD_DVD_INPUT_H
24
25 /**
26 * Defines and flags. Make sure they fit the libdvdcss API!
27 */
28 #include "dvdread_internal.h"
29 #define DVDINPUT_NOFLAGS 0
30
31 #define DVDINPUT_READ_DECRYPT (1 << 0)
32
33 typedef struct dvd_input_s *dvd_input_t;
34
35 /**
36 * Function pointers that will be filled in by the input implementation.
37 * These functions provide the main API.
38 */
39 extern dvd_input_t (*dvdinput_open) (void *, dvd_logger_cb *,
40 const char *,
41 dvd_reader_stream_cb *,
42 dvd_reader_filesystem_h *);
43 extern int (*dvdinput_close) (dvd_input_t);
44 extern int (*dvdinput_seek) (dvd_input_t, int);
45 extern int (*dvdinput_title) (dvd_input_t, int);
46 extern int (*dvdinput_read) (dvd_input_t, void *, int, int);
47 /* run to initialize DVD-Audio encryption */
48 extern int (*dvdinput_init) (dvd_input_t, uint8_t* mkb);
49
50 extern void dvdinput_set_stream(dvd_input_t, dvd_type_t);
51 /**
52 * Setup function accessed by dvd_reader.c. Returns 1 if there is CSS support.
53 * Otherwise it fallsback to the internal dvdread implementation (without css support)
54 * which is basically the same as calling dvdinput_setup_builtin.
55 */
56 /* dvda flag enabled cpxm */
57 int dvdinput_setup(void *, dvd_logger_cb *, dvd_type_t dvda_flag);
58
59 /**
60 * Setup function accessed by dvd_reader.c using the builtin libdvdread implementation
61 * (without css support)
62 */
63 void dvdinput_setup_builtin(void *, dvd_logger_cb *);
64
65 #endif /* LIBDVDREAD_DVD_INPUT_H */