patch genisoimage multi extent
[platform/upstream/cdrkit.git] / genisoimage / ifo_read.h
1 /*
2  * This file has been modified for the cdrkit suite.
3  *
4  * The behaviour and appearence of the program code below can differ to a major
5  * extent from the version distributed by the original author(s).
6  *
7  * For details, see Changelog file distributed with the cdrkit package. If you
8  * received this file from another source then ask the distributing person for
9  * a log of modifications.
10  *
11  */
12
13 /* @(#)ifo_read.h       1.2 04/03/02 joerg */
14
15 #ifndef _IFO_READ_H
16 #define _IFO_READ_H
17
18 /*
19  * Copyright (C) 2000, 2001, 2002 Björn Englund <d4bjorn@dtek.chalmers.se>,
20  *                                Håkan Hjort <d95hjort@dtek.chalmers.se
21  *                                Olaf Beck <olaf_sc@yahoo.com>
22  *                                (I only did the cut down no other contribs)
23  *                                Jörg Schilling <schilling@fokus.gmd.de>
24  *                                (making the code portable)
25  * This program is free software; you can redistribute it and/or modify
26  * it under the terms of the GNU General Public License as published by
27  * the Free Software Foundation; either version 2 of the License, or (at
28  * your option) any later version.
29  *
30  * This program is distributed in the hope that it will be useful, but
31  * WITHOUT ANY WARRANTY; without even the implied warranty of
32  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
33  * General Public License for more details.
34  *
35  * You should have received a copy of the GNU General Public License
36  * along with this program; if not, write to the Free Software
37  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
38  */
39
40 /*
41  * NOTE: This is a cut down version of libdvdread for genisoimage, due
42  * to portability issues with the current libdvdread according to
43  * the maintainer of genisoimage.
44  * This cut down version only reads from a harddisk file structure
45  * and it only implements the functions necessary inorder to make
46  * genisoimage produce valid DVD-Video images.
47  * DON'T USE THIS LIBRARY IN ANY OTHER PROGRAM GET THE REAL
48  * LIBDVDREAD INSTEAD
49  */
50
51
52
53 #include "ifo_types.h"
54 #include "dvd_reader.h"
55
56 #ifdef __cplusplus
57 extern "C" {
58 #endif
59
60
61 /*
62  * handle = ifoOpen(dvd, title);
63  *
64  * Opens an IFO and reads a tiny fraction of the data for the IFO file
65  * corresponding to the given title set. If title 0 is given, the video
66  * manager IFO file is read.
67  * Returns a handle to a tiny parsed fraction of a IFO strcuture
68  */
69 extern  ifo_handle_t *ifoOpen(dvd_reader_t *, int);
70
71
72 /*
73  * ifoClose(ifofile);
74  * Cleans up the IFO information. This will free all data allocated.
75  */
76 extern  void ifoClose(ifo_handle_t *);
77
78 #ifdef __cplusplus
79 };
80 #endif
81 #endif /* _IFO_READ_H */