Remove HAVE_MATRIXVIEW references
[mplayer/kovensky.git] / libdvdread4 / dvd_input.h
blob2d786df3b3eb64c28c43ee9e252425334ca599fa
1 /*
2 * Copyright (C) 2001, 2002 Samuel Hocevar <sam@zoy.org>,
3 * HÃ¥kan Hjort <d95hjort@dtek.chalmers.se>
5 * This file is part of libdvdread.
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.
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.
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.
22 #ifndef LIBDVDREAD_DVD_INPUT_H
23 #define LIBDVDREAD_DVD_INPUT_H
25 /**
26 * Defines and flags. Make sure they fit the libdvdcss API!
28 #define DVDINPUT_NOFLAGS 0
30 #define DVDINPUT_READ_DECRYPT (1 << 0)
32 typedef struct dvd_input_s *dvd_input_t;
34 /**
35 * Function pointers that will be filled in by the input implementation.
36 * These functions provide the main API.
38 extern dvd_input_t (*dvdinput_open) (const char *);
39 extern int (*dvdinput_close) (dvd_input_t);
40 extern int (*dvdinput_seek) (dvd_input_t, int);
41 extern int (*dvdinput_title) (dvd_input_t, int);
42 extern int (*dvdinput_read) (dvd_input_t, void *, int, int);
43 extern char * (*dvdinput_error) (dvd_input_t);
45 /**
46 * Setup function accessed by dvd_reader.c. Returns 1 if there is CSS support.
48 int dvdinput_setup(void);
50 #endif /* LIBDVDREAD_DVD_INPUT_H */