annotate dvdread/dvd_udf.h @ 39:caef08851d58 src

Add #include for config.h. Several preprocessor definitions were used without config.h being present. This would break the build if the definitions were not provided on the compiler command line.
author diego
date Tue, 05 May 2009 17:27:14 +0000
parents c743d79f187b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
1 /*
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
2 * This code is based on dvdudf by:
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
3 * Christian Wolff <scarabaeus@convergence.de>.
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
4 *
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
5 * Modifications by:
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
6 * Billy Biggs <vektor@dumbterm.net>.
22
447c5319a522 Convert all ISO8859-1 sequences to proper UTF-8.
diego
parents: 21
diff changeset
7 * Björn Englund <d4bjorn@dtek.chalmers.se>.
20
fce16251755c Remove all trailing whitespace,
rathann
parents: 3
diff changeset
8 *
3
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
9 * dvdudf: parse and read the UDF volume information of a DVD Video
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
10 * Copyright (C) 1999 Christian Wolff for convergence integrated media
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
11 * GmbH The author can be reached at scarabaeus@convergence.de, the
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
12 * project's page is at http://linuxtv.org/dvd/
20
fce16251755c Remove all trailing whitespace,
rathann
parents: 3
diff changeset
13 *
21
4aa618ae094f Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents: 20
diff changeset
14 * This file is part of libdvdread.
4aa618ae094f Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents: 20
diff changeset
15 *
4aa618ae094f Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents: 20
diff changeset
16 * libdvdread is free software; you can redistribute it and/or modify
3
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
17 * it under the terms of the GNU General Public License as published by
21
4aa618ae094f Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents: 20
diff changeset
18 * the Free Software Foundation; either version 2 of the License, or
4aa618ae094f Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents: 20
diff changeset
19 * (at your option) any later version.
20
fce16251755c Remove all trailing whitespace,
rathann
parents: 3
diff changeset
20 *
21
4aa618ae094f Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents: 20
diff changeset
21 * libdvdread is distributed in the hope that it will be useful,
4aa618ae094f Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents: 20
diff changeset
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
4aa618ae094f Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents: 20
diff changeset
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4aa618ae094f Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents: 20
diff changeset
24 * GNU General Public License for more details.
20
fce16251755c Remove all trailing whitespace,
rathann
parents: 3
diff changeset
25 *
21
4aa618ae094f Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents: 20
diff changeset
26 * You should have received a copy of the GNU General Public License along
4aa618ae094f Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents: 20
diff changeset
27 * with libdvdread; if not, write to the Free Software Foundation, Inc.,
4aa618ae094f Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents: 20
diff changeset
28 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
3
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
29 */
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
30
23
ac07d427fbc6 Use consistent multiple inclusion guards everywhere:
diego
parents: 22
diff changeset
31 #ifndef LIBDVDREAD_DVD_UDF_H
ac07d427fbc6 Use consistent multiple inclusion guards everywhere:
diego
parents: 22
diff changeset
32 #define LIBDVDREAD_DVD_UDF_H
ac07d427fbc6 Use consistent multiple inclusion guards everywhere:
diego
parents: 22
diff changeset
33
3
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
34 #include <inttypes.h>
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
35
33
c743d79f187b Move installed headers into dvdread directory to make them easier to
reimar
parents: 26
diff changeset
36 #include "dvdread/dvd_reader.h"
3
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
37
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
38 #ifdef __cplusplus
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
39 extern "C" {
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
40 #endif
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
41
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
42 /**
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
43 * Looks for a file on the UDF disc/imagefile and returns the block number
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
44 * where it begins, or 0 if it is not found. The filename should be an
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
45 * absolute pathname on the UDF filesystem, starting with '/'. For example,
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
46 * '/VIDEO_TS/VTS_01_1.IFO'. On success, filesize will be set to the size of
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
47 * the file in bytes.
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
48 */
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
49 uint32_t UDFFindFile( dvd_reader_t *device, char *filename, uint32_t *size );
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
50
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
51 void FreeUDFCache(void *cache);
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
52 int UDFGetVolumeIdentifier(dvd_reader_t *device,
26
0d82d0f30c98 cosmetics: Convert all tabs to spaces.
diego
parents: 23
diff changeset
53 char *volid, unsigned int volid_size);
3
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
54 int UDFGetVolumeSetIdentifier(dvd_reader_t *device,
26
0d82d0f30c98 cosmetics: Convert all tabs to spaces.
diego
parents: 23
diff changeset
55 uint8_t *volsetid, unsigned int volsetid_size);
3
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
56 void *GetUDFCacheHandle(dvd_reader_t *device);
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
57 void SetUDFCacheHandle(dvd_reader_t *device, void *cache);
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
58
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
59 #ifdef __cplusplus
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
60 };
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
61 #endif
23
ac07d427fbc6 Use consistent multiple inclusion guards everywhere:
diego
parents: 22
diff changeset
62 #endif /* LIBDVDREAD_DVD_UDF_H */