| 1 | /* |
| 2 | * This code is based on dvdudf by: |
| 3 | * Christian Wolff <[email protected]>. |
| 4 | * |
| 5 | * Modifications by: |
| 6 | * Billy Biggs <[email protected]>. |
| 7 | * Björn Englund <[email protected]>. |
| 8 | * |
| 9 | * dvdudf: parse and read the UDF volume information of a DVD Video |
| 10 | * Copyright (C) 1999 Christian Wolff for convergence integrated media |
| 11 | * GmbH The author can be reached at [email protected], the |
| 12 | * project's page is at http://linuxtv.org/dvd/ |
| 13 | * |
| 14 | * This file is part of libdvdread. |
| 15 | * |
| 16 | * libdvdread is free software; you can redistribute it and/or modify |
| 17 | * it under the terms of the GNU General Public License as published by |
| 18 | * the Free Software Foundation; either version 2 of the License, or |
| 19 | * (at your option) any later version. |
| 20 | * |
| 21 | * libdvdread is distributed in the hope that it will be useful, |
| 22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 24 | * GNU General Public License for more details. |
| 25 | * |
| 26 | * You should have received a copy of the GNU General Public License along |
| 27 | * with libdvdread; if not, write to the Free Software Foundation, Inc., |
| 28 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 29 | */ |
| 30 | |
| 31 | #ifndef LIBDVDREAD_DVD_UDF_H |
| 32 | #define LIBDVDREAD_DVD_UDF_H |
| 33 | |
| 34 | #include <inttypes.h> |
| 35 | |
| 36 | #include <dvdread/attributes.h> |
| 37 | #include <dvdread/dvd_reader.h> |
| 38 | |
| 39 | #ifdef __cplusplus |
| 40 | extern "C" { |
| 41 | #endif |
| 42 | |
| 43 | /** |
| 44 | * Looks for a file on the UDF disc/imagefile and returns the block number |
| 45 | * where it begins, or 0 if it is not found. The filename should be an |
| 46 | * absolute pathname on the UDF filesystem, starting with '/'. For example, |
| 47 | * '/VIDEO_TS/VTS_01_1.IFO'. On success, filesize will be set to the size of |
| 48 | * the file in bytes. |
| 49 | */ |
| 50 | DVDREAD_API uint32_t UDFFindFile( dvd_reader_t *, const char *filename, uint32_t *size ); |
| 51 | |
| 52 | DVDREAD_API int UDFGetVolumeIdentifier(dvd_reader_t *, |
| 53 | char *volid, unsigned int volid_size); |
| 54 | DVDREAD_API int UDFGetVolumeSetIdentifier(dvd_reader_t *, |
| 55 | uint8_t *volsetid, unsigned int volsetid_size); |
| 56 | |
| 57 | #ifdef __cplusplus |
| 58 | }; |
| 59 | #endif |
| 60 | #endif /* LIBDVDREAD_DVD_UDF_H */ |