Mercurial > mplayer.hg
annotate dvdread/dvd_udf.h @ 24816:ba929c5ee0bc
Fix input command parser for using only tab to separate the arguments.
author | ulion |
---|---|
date | Tue, 23 Oct 2007 00:44:22 +0000 |
parents | 98ba5d5bfe2d |
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_UDF_H_INCLUDED |
3 #define DVD_UDF_H_INCLUDED | |
4 | |
5 /* | |
6 * This code is based on dvdudf by: | |
7 * Christian Wolff <scarabaeus@convergence.de>. | |
8 * | |
9 * Modifications by: | |
10 * Billy Biggs <vektor@dumbterm.net>. | |
15874 | 11 * Björn Englund <d4bjorn@dtek.chalmers.se>. |
12 * | |
7029 | 13 * dvdudf: parse and read the UDF volume information of a DVD Video |
14 * Copyright (C) 1999 Christian Wolff for convergence integrated media | |
15 * GmbH The author can be reached at scarabaeus@convergence.de, the | |
16 * project's page is at http://linuxtv.org/dvd/ | |
17 * | |
18 * This program is free software; you can redistribute it and/or modify | |
19 * it under the terms of the GNU General Public License as published by | |
20 * the Free Software Foundation; either version 2 of the License, or (at | |
21 * your option) any later version. | |
22 * | |
23 * This program is distributed in the hope that it will be useful, but | |
24 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
26 * General Public License for more details. | |
27 * | |
28 * You should have received a copy of the GNU General Public License | |
29 * along with this program; if not, write to the Free Software | |
30 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
31 * 02111-1307, USA. Or, point your browser to | |
32 * http://www.gnu.org/copyleft/gpl.html | |
33 */ | |
34 | |
24047
de28f9e8cb00
Sync libdvdread with version 0.9.5 (functional changes).
diego
parents:
20981
diff
changeset
|
35 #if defined(HAVE_INTTYPES_H) |
7029 | 36 #include <inttypes.h> |
24047
de28f9e8cb00
Sync libdvdread with version 0.9.5 (functional changes).
diego
parents:
20981
diff
changeset
|
37 #elif defined(HAVE_STDINT_H) |
de28f9e8cb00
Sync libdvdread with version 0.9.5 (functional changes).
diego
parents:
20981
diff
changeset
|
38 #include <stdint.h> |
de28f9e8cb00
Sync libdvdread with version 0.9.5 (functional changes).
diego
parents:
20981
diff
changeset
|
39 #endif |
7029 | 40 |
41 #include "dvd_reader.h" | |
42 | |
43 #ifdef __cplusplus | |
44 extern "C" { | |
45 #endif | |
46 | |
47 /** | |
48 * Looks for a file on the UDF disc/imagefile and returns the block number | |
49 * where it begins, or 0 if it is not found. The filename should be an | |
50 * absolute pathname on the UDF filesystem, starting with '/'. For example, | |
51 * '/VIDEO_TS/VTS_01_1.IFO'. On success, filesize will be set to the size of | |
52 * the file in bytes. | |
24055 | 53 * This implementation relies on that the file size is less than 2^32 |
54 * A DVD file can at most be 2^30 (-2048 ?). | |
7029 | 55 */ |
56 uint32_t UDFFindFile( dvd_reader_t *device, char *filename, uint32_t *size ); | |
24050
1542693b2a30
Sync libdvdread with version 0.9.5 (cosmetic changes).
diego
parents:
24047
diff
changeset
|
57 |
24047
de28f9e8cb00
Sync libdvdread with version 0.9.5 (functional changes).
diego
parents:
20981
diff
changeset
|
58 void FreeUDFCache(dvd_reader_t *device, void *cache); |
15874 | 59 int UDFGetVolumeIdentifier(dvd_reader_t *device, |
24050
1542693b2a30
Sync libdvdread with version 0.9.5 (cosmetic changes).
diego
parents:
24047
diff
changeset
|
60 char *volid, unsigned int volid_size); |
15874 | 61 int UDFGetVolumeSetIdentifier(dvd_reader_t *device, |
24050
1542693b2a30
Sync libdvdread with version 0.9.5 (cosmetic changes).
diego
parents:
24047
diff
changeset
|
62 uint8_t *volsetid, unsigned int volsetid_size); |
7029 | 63 #ifdef __cplusplus |
64 }; | |
65 #endif | |
66 #endif /* DVD_UDF_H_INCLUDED */ |