/* * osta_udf.h * * This file is based on OSTA UDF(tm) 2.60 (March 1, 2005) * http://www.osta.org * * Copyright (c) 2001-2004 Ben Fennema * Copyright (c) 2017-2019 Pali Rohár <[email protected]> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU Public License ("GPL"). * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ /** * @file * OSTA-UDF defines and structure definitions */ #include "ecma_167.h" #ifndef _OSTA_UDF_H #define _OSTA_UDF_H … /* OSTA CS0 Charspec (UDF 2.60 2.1.2) */ #define UDF_CHAR_SET_TYPE … #define UDF_CHAR_SET_INFO … /* Entity Identifier (UDF 2.60 2.1.5) */ /* Identifiers (UDF 2.60 2.1.5.2) */ /* Implementation Use Extended Attribute (UDF 2.60 3.3.4.5) */ /* Virtual Allocation Table (UDF 1.50 2.2.10) */ /* Logical Volume Extended Information (UDF 1.50 Errata, DCN 5003, 3.3.4.5.1.3) */ /* OS2EA (UDF 1.50 3.3.4.5.3.1) */ /* MacUniqueIDTable (UDF 1.50 3.3.4.5.4.3) */ /* MacResourceFork (UDF 1.50 3.3.4.5.4.4) */ #define UDF_ID_DEVELOPER … #define UDF_ID_COMPLIANT … #define UDF_ID_LV_INFO … #define UDF_ID_FREE_EA … #define UDF_ID_FREE_APP_EA … #define UDF_ID_DVD_CGMS … #define UDF_ID_VAT_LVEXTENSION … #define UDF_ID_OS2_EA … #define UDF_ID_OS2_EA_LENGTH … #define UDF_ID_MAC_VOLUME … #define UDF_ID_MAC_FINDER … #define UDF_ID_MAC_UNIQUE … #define UDF_ID_MAC_RESOURCE … #define UDF_ID_OS400_DIRINFO … #define UDF_ID_VIRTUAL … #define UDF_ID_SPARABLE … #define UDF_ID_ALLOC … #define UDF_ID_SPARING … #define UDF_ID_METADATA … /* Identifier Suffix (UDF 2.60 2.1.5.3) */ #define DOMAIN_FLAGS_HARD_WRITE_PROTECT … #define DOMAIN_FLAGS_SOFT_WRITE_PROTECT … struct domainIdentSuffix { … } __packed; struct UDFIdentSuffix { … } __packed; struct impIdentSuffix { … } __packed; struct appIdentSuffix { … } __packed; /* Logical Volume Integrity Descriptor (UDF 2.60 2.2.6) */ /* Implementation Use (UDF 2.60 2.2.6.4) */ struct logicalVolIntegrityDescImpUse { … } __packed; /* Implementation Use Volume Descriptor (UDF 2.60 2.2.7) */ /* Implementation Use (UDF 2.60 2.2.7.2) */ struct impUseVolDescImpUse { … } __packed; struct udfPartitionMap2 { … } __packed; /* Virtual Partition Map (UDF 2.60 2.2.8) */ struct virtualPartitionMap { … } __packed; /* Sparable Partition Map (UDF 2.60 2.2.9) */ struct sparablePartitionMap { … } __packed; /* Metadata Partition Map (UDF 2.60 2.2.10) */ struct metadataPartitionMap { … } __packed; /* Virtual Allocation Table (UDF 2.60 2.2.11) */ struct virtualAllocationTable20 { … } __packed; #define ICBTAG_FILE_TYPE_VAT20 … /* Sparing Table (UDF 2.60 2.2.12) */ struct sparingEntry { … } __packed; struct sparingTable { … } __packed; /* Metadata File (and Metadata Mirror File) (UDF 2.60 2.2.13.1) */ #define ICBTAG_FILE_TYPE_MAIN … #define ICBTAG_FILE_TYPE_MIRROR … #define ICBTAG_FILE_TYPE_BITMAP … /* struct long_ad ICB - ADImpUse (UDF 2.60 2.2.4.3) */ struct allocDescImpUse { … } __packed; #define AD_IU_EXT_ERASED … /* Real-Time Files (UDF 2.60 6.11) */ #define ICBTAG_FILE_TYPE_REALTIME … /* Implementation Use Extended Attribute (UDF 2.60 3.3.4.5) */ /* FreeEASpace (UDF 2.60 3.3.4.5.1.1) */ struct freeEaSpace { … } __packed; /* DVD Copyright Management Information (UDF 2.60 3.3.4.5.1.2) */ struct DVDCopyrightImpUse { … } __packed; /* Logical Volume Extended Information (UDF 1.50 Errata, DCN 5003, 3.3.4.5.1.3) */ struct LVExtensionEA { … } __packed; /* Application Use Extended Attribute (UDF 2.60 3.3.4.6) */ /* FreeAppEASpace (UDF 2.60 3.3.4.6.1) */ struct freeAppEASpace { … } __packed; /* UDF Defined System Stream (UDF 2.60 3.3.7) */ #define UDF_ID_UNIQUE_ID … #define UDF_ID_NON_ALLOC … #define UDF_ID_POWER_CAL … #define UDF_ID_BACKUP … /* UDF Defined Non-System Streams (UDF 2.60 3.3.8) */ #define UDF_ID_MAC_RESOURCE_FORK_STREAM … /* #define UDF_ID_OS2_EA "*UDF OS/2 EA" */ #define UDF_ID_NT_ACL … #define UDF_ID_UNIX_ACL … /* Operating System Identifiers (UDF 2.60 6.3) */ #define UDF_OS_CLASS_UNDEF … #define UDF_OS_CLASS_DOS … #define UDF_OS_CLASS_OS2 … #define UDF_OS_CLASS_MAC … #define UDF_OS_CLASS_UNIX … #define UDF_OS_CLASS_WIN9X … #define UDF_OS_CLASS_WINNT … #define UDF_OS_CLASS_OS400 … #define UDF_OS_CLASS_BEOS … #define UDF_OS_CLASS_WINCE … #define UDF_OS_ID_UNDEF … #define UDF_OS_ID_DOS … #define UDF_OS_ID_OS2 … #define UDF_OS_ID_MAC … #define UDF_OS_ID_MAX_OSX … #define UDF_OS_ID_UNIX … #define UDF_OS_ID_AIX … #define UDF_OS_ID_SOLARIS … #define UDF_OS_ID_HPUX … #define UDF_OS_ID_IRIX … #define UDF_OS_ID_LINUX … #define UDF_OS_ID_MKLINUX … #define UDF_OS_ID_FREEBSD … #define UDF_OS_ID_NETBSD … #define UDF_OS_ID_WIN9X … #define UDF_OS_ID_WINNT … #define UDF_OS_ID_OS400 … #define UDF_OS_ID_BEOS … #define UDF_OS_ID_WINCE … #endif /* _OSTA_UDF_H */