Mercurial > mplayer.hg
annotate dvdread/dvd_input.h @ 26017:9ba1e85e13f7
Remove unused #define from config.h.
author | diego |
---|---|
date | Thu, 21 Feb 2008 16:34:23 +0000 |
parents | 1542693b2a30 |
children |
rev | line source |
---|---|
24050
1542693b2a30
Sync libdvdread with version 0.9.5 (cosmetic changes).
diego
parents:
24047
diff
changeset
|
1 /* -*- c-basic-offset: 2; indent-tabs-mode: nil -*- */ |
7029 | 2 #ifndef DVD_INPUT_H_INCLUDED |
3 #define DVD_INPUT_H_INCLUDED | |
4 | |
5 /* | |
6 * Copyright (C) 2001, 2002 Samuel Hocevar <sam@zoy.org>, | |
7 * Håkan Hjort <d95hjort@dtek.chalmers.se> | |
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 * Defines and flags. Make sure they fit the libdvdcss API! | |
26 */ | |
27 #define DVDINPUT_NOFLAGS 0 | |
28 | |
29 #define DVDINPUT_READ_DECRYPT (1 << 0) | |
30 | |
31 typedef struct dvd_input_s *dvd_input_t; | |
32 | |
33 /** | |
15874 | 34 * Pointers which will be filled either the input methods functions. |
7029 | 35 */ |
15874 | 36 extern dvd_input_t (*dvdinput_open) (const char *); |
37 extern int (*dvdinput_close) (dvd_input_t); | |
38 extern int (*dvdinput_seek) (dvd_input_t, int); | |
39 extern int (*dvdinput_title) (dvd_input_t, int); | |
40 extern int (*dvdinput_read) (dvd_input_t, void *, int, int); | |
41 extern char * (*dvdinput_error) (dvd_input_t); | |
7029 | 42 |
43 /** | |
24047
de28f9e8cb00
Sync libdvdread with version 0.9.5 (functional changes).
diego
parents:
20981
diff
changeset
|
44 * Free any objects allocated by dvdinput_setup. |
de28f9e8cb00
Sync libdvdread with version 0.9.5 (functional changes).
diego
parents:
20981
diff
changeset
|
45 * Should only be called when libdvdread is not to be used any more. |
de28f9e8cb00
Sync libdvdread with version 0.9.5 (functional changes).
diego
parents:
20981
diff
changeset
|
46 * Closes dlopened libraries. |
de28f9e8cb00
Sync libdvdread with version 0.9.5 (functional changes).
diego
parents:
20981
diff
changeset
|
47 */ |
de28f9e8cb00
Sync libdvdread with version 0.9.5 (functional changes).
diego
parents:
20981
diff
changeset
|
48 void dvdinput_free(void); |
de28f9e8cb00
Sync libdvdread with version 0.9.5 (functional changes).
diego
parents:
20981
diff
changeset
|
49 |
de28f9e8cb00
Sync libdvdread with version 0.9.5 (functional changes).
diego
parents:
20981
diff
changeset
|
50 /** |
7029 | 51 * Setup function accessed by dvd_reader.c. Returns 1 if there is CSS support. |
52 */ | |
15874 | 53 int dvdinput_setup(void); |
7029 | 54 |
55 #endif /* DVD_INPUT_H_INCLUDED */ |