2003-08-17 05:31:19 +00:00
|
|
|
|
/*
|
2003-09-01 02:08:59 +00:00
|
|
|
|
$Id: iso9660_private.h,v 1.5 2003/09/01 02:08:59 rocky Exp $
|
2003-08-17 05:31:19 +00:00
|
|
|
|
|
|
|
|
|
|
Copyright (C) 2000 Herbert Valerio Riedel <hvr@gnu.org>
|
|
|
|
|
|
Copyright (C) 2003 Rocky Bernstein <rocky@panix.com>
|
|
|
|
|
|
|
2003-09-01 02:08:59 +00:00
|
|
|
|
See also iso9660.h by Eric Youngdale (1993).
|
|
|
|
|
|
|
|
|
|
|
|
Copyright 1993 Yggdrasil Computing, Incorporated
|
|
|
|
|
|
Copyright (c) 1999,2000 J. Schilling
|
|
|
|
|
|
|
2003-08-17 05:31:19 +00:00
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __CDIO_ISO9660_PRIVATE_H__
|
|
|
|
|
|
#define __CDIO_ISO9660_PRIVATE_H__
|
|
|
|
|
|
|
2003-08-29 02:38:07 +00:00
|
|
|
|
#include <cdio/types.h>
|
2003-08-17 05:31:19 +00:00
|
|
|
|
|
|
|
|
|
|
#define ISO_VERSION 1
|
|
|
|
|
|
|
|
|
|
|
|
PRAGMA_BEGIN_PACKED
|
|
|
|
|
|
|
|
|
|
|
|
struct iso_volume_descriptor {
|
2003-09-01 02:08:59 +00:00
|
|
|
|
uint8_t type; /* 711 */
|
2003-08-17 05:31:19 +00:00
|
|
|
|
char id[5];
|
2003-09-01 02:08:59 +00:00
|
|
|
|
uint8_t version; /* 711 */
|
2003-08-17 05:31:19 +00:00
|
|
|
|
char data[2041];
|
|
|
|
|
|
} GNUC_PACKED;
|
|
|
|
|
|
|
|
|
|
|
|
#define struct_iso_volume_descriptor_SIZEOF ISO_BLOCKSIZE
|
|
|
|
|
|
|
2003-08-31 05:00:44 +00:00
|
|
|
|
#define struct_iso9660_pvd_SIZEOF ISO_BLOCKSIZE
|
2003-08-17 05:31:19 +00:00
|
|
|
|
|
2003-09-01 02:08:59 +00:00
|
|
|
|
/*
|
|
|
|
|
|
* XXX JS: The next structure has an odd length!
|
|
|
|
|
|
* Some compilers (e.g. on Sun3/mc68020) padd the structures to even length.
|
|
|
|
|
|
* For this reason, we cannot use sizeof (struct iso_path_table) or
|
|
|
|
|
|
* sizeof (struct iso_directory_record) to compute on disk sizes.
|
|
|
|
|
|
* Instead, we use offsetof(..., name) and add the name size.
|
|
|
|
|
|
* See mkisofs.h
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/* We use this to help us look up the parent inode numbers. */
|
|
|
|
|
|
|
2003-08-17 05:31:19 +00:00
|
|
|
|
struct iso_path_table {
|
|
|
|
|
|
uint8_t name_len; /* 711 */
|
2003-09-01 02:08:59 +00:00
|
|
|
|
uint8_t xa_len; /* 711 */
|
|
|
|
|
|
uint32_t extent; /* 731/732 */
|
|
|
|
|
|
uint16_t parent; /* 721/722 */
|
2003-08-17 05:31:19 +00:00
|
|
|
|
char name[EMPTY_ARRAY_SIZE];
|
|
|
|
|
|
} GNUC_PACKED;
|
|
|
|
|
|
|
|
|
|
|
|
#define struct_iso_path_table_SIZEOF 8
|
|
|
|
|
|
|
2003-08-31 05:00:44 +00:00
|
|
|
|
#define struct_iso9660_dir_SIZEOF 33
|
2003-08-17 05:31:19 +00:00
|
|
|
|
|
|
|
|
|
|
PRAGMA_END_PACKED
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* __CDIO_ISO9660_PRIVATE_H__ */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
* Local variables:
|
|
|
|
|
|
* c-file-style: "gnu"
|
|
|
|
|
|
* tab-width: 8
|
|
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
|
|
* End:
|
|
|
|
|
|
*/
|