annotate libdvdread/dvd_input.h @ 367:1274107d0eac src

moved dvdread to libdvdread; it's the first step for the separation of the lib from dvdnav
author nicodvb
date Sat, 31 May 2008 12:29:19 +0000
parents dvdread/dvd_input.h@9b1b740e3fc9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
225
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
1 #ifndef DVD_INPUT_H_INCLUDED
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
2 #define DVD_INPUT_H_INCLUDED
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
3
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
4 /*
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
5 * Copyright (C) 2001, 2002 Samuel Hocevar <sam@zoy.org>,
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
6 * Håkan Hjort <d95hjort@dtek.chalmers.se>
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
7 *
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
8 * This program is free software; you can redistribute it and/or modify
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
9 * it under the terms of the GNU General Public License as published by
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
10 * the Free Software Foundation; either version 2 of the License, or
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
11 * (at your option) any later version.
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
12 *
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
13 * This program is distributed in the hope that it will be useful,
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
16 * GNU General Public License for more details.
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
17 *
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
18 * You should have received a copy of the GNU General Public License
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
19 * along with this program; if not, write to the Free Software
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
21 */
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
22
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
23 /**
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
24 * Defines and flags. Make sure they fit the libdvdcss API!
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
25 */
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
26 #define DVDINPUT_NOFLAGS 0
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
27
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
28 #define DVDINPUT_READ_DECRYPT (1 << 0)
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
29
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
30 typedef struct dvd_input_s *dvd_input_t;
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
31
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
32 /**
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
33 * Pointers which will be filled either the input methods functions.
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
34 */
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
35 extern dvd_input_t (*dvdinput_open) (const char *);
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
36 extern int (*dvdinput_close) (dvd_input_t);
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
37 extern int (*dvdinput_seek) (dvd_input_t, int);
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
38 extern int (*dvdinput_title) (dvd_input_t, int);
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
39 extern int (*dvdinput_read) (dvd_input_t, void *, int, int);
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
40 extern char * (*dvdinput_error) (dvd_input_t);
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
41
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
42 /**
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
43 * Setup function accessed by dvd_reader.c. Returns 1 if there is CSS support.
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
44 */
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
45 int dvdinput_setup(void);
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
46
9b1b740e3fc9 big build system changes
mroi
parents:
diff changeset
47 #endif /* DVD_INPUT_H_INCLUDED */