34 #ifndef CDIO_ISO9660_H_ 35 #define CDIO_ISO9660_H_ 61 #ifndef EMPTY_ARRAY_SIZE 62 #define EMPTY_ARRAY_SIZE 0 72 #define ISODCL(from, to) ((to) - (from) + 1) 74 #define MIN_TRACK_SIZE 4*75 75 #define MIN_ISO_SIZE MIN_TRACK_SIZE 148 #define ISO_MAX_PUBLISHER_ID 128 151 #define ISO_MAX_APPLICATION_ID 128 154 #define ISO_MAX_VOLUME_ID 32 157 #define ISO_MAX_VOLUMESET_ID 128 164 #define ISO_STANDARD_ID "CD001" 386 char application_data[512];
388 uint8_t unused5[653];
414 char escape_sequences[32];
500 char application_data[512];
502 uint8_t unused5[653];
540 enum { _STAT_FILE = 1, _STAT_DIR = 2 } type;
563 #define ISO_EXTENSION_ALL 0xFF 564 #define ISO_EXTENSION_NONE 0x00 565 #define ISO_EXTENSION_JOLIET \ 566 (ISO_EXTENSION_JOLIET_LEVEL1 | \ 567 ISO_EXTENSION_JOLIET_LEVEL2 | \ 568 ISO_EXTENSION_JOLIET_LEVEL3 ) 607 iso_extension_mask_t iso_extension_mask);
636 iso_extension_mask_t iso_extension_mask,
647 iso_extension_mask_t iso_extension_mask,
667 lsn_t start,
long int i_size);
689 iso_extension_mask_t iso_extension_mask);
697 iso_extension_mask_t iso_extension_mask);
800 uint8_t i_joliet_level);
859 uint32_t parent, uint32_t psize,
860 const time_t *dir_time);
864 const void *ssu_data,
unsigned int ssu_size,
865 uint32_t parent, uint32_t psize,
866 const void *psu_data,
unsigned int psu_size,
867 const time_t *dir_time);
871 uint32_t size, uint8_t file_flags,
873 unsigned int su_size,
const time_t *entry_time);
887 #define iso9660_fs_find_lsn iso9660_find_fs_lsn 908 char **ppsz_full_filename);
989 const char psz_path[]);
1013 const char psz_path[]);
1235 uint32_t extent, uint16_t parent);
1238 uint32_t extent, uint16_t parent);
1245 const char application_id[],
1246 const char publisher_id[],
const char preparer_id[],
1247 uint32_t iso_size,
const void *root_dir,
1248 uint32_t path_table_l_extent,
1249 uint32_t path_table_m_extent,
1250 uint32_t path_table_size,
const time_t *pvd_time);
1260 #ifndef DO_NOT_WANT_COMPATIBILITY 1262 #define iso9660_isdchar iso9660_is_dchar 1263 #define iso9660_isachar iso9660_is_achar #define ISO_MAX_APPLICATION_ID
Maximum number of characters in an application id.
Definition: iso9660.h:151
uint16_t iso9660_pathtable_l_add_entry(void *pt, const char name[], uint32_t extent, uint16_t parent)
ISO-9660 Supplementary Volume Descriptor.
Definition: iso9660.h:400
uint8_t file_flags
Definition: iso9660.h:258
iso9660_xa_t xa
Definition: iso9660.h:539
#define iso9660_fs_find_lsn
Definition: iso9660.h:887
void iso9660_set_pvd(void *pd, const char volume_id[], const char application_id[], const char publisher_id[], const char preparer_id[], uint32_t iso_size, const void *root_dir, uint32_t path_table_l_extent, uint32_t path_table_m_extent, uint32_t path_table_size, const time_t *pvd_time)
iso9660_ltime_t creation_date
Definition: iso9660.h:370
iso9660_ltime_t expiration_date
Definition: iso9660.h:491
The top-level header for list-related data structures.
bool iso9660_pathname_valid_p(const char psz_path[])
iso732_t opt_type_m_path_table
Definition: iso9660.h:427
iso723_t volume_sequence_number
Definition: iso9660.h:416
char * iso9660_get_system_id(const iso9660_pvd_t *p_pvd)
bool iso9660_ifs_get_system_id(iso9660_t *p_iso, cdio_utf8_t **p_psz_system_id)
Definition: iso9660.h:108
Common type definitions used pervasively in libcdio.
iso9660_stat_t * iso9660_ifs_find_lsn(iso9660_t *p_iso, lsn_t i_lsn)
char * iso9660_pathname_isofy(const char psz_path[], uint16_t i_version)
bool iso9660_ifs_fuzzy_read_superblock(iso9660_t *p_iso, iso_extension_mask_t iso_extension_mask, uint16_t i_fuzz)
Definition: iso9660.h:122
#define PRAGMA_END_PACKED
Definition: types.h:169
iso9660_ltime_t modification_date
Definition: iso9660.h:373
uint8_t iso711_t
ISO 9660 Integer and Character types.
Definition: iso9660.h:49
bool iso9660_get_ltime(const iso9660_ltime_t *p_ldate, struct tm *p_tm)
iso9660_stat_t * iso9660_ifs_find_lsn_with_path(iso9660_t *p_iso, lsn_t i_lsn, char **ppsz_path)
Definition: iso9660.h:124
iso9660_t * iso9660_open(const char *psz_path)
iso711_t interleave_gap
Definition: iso9660.h:265
bool_3way_t iso9660_have_rr(iso9660_t *p_iso, uint64_t u_file_limit)
Definition: iso9660.h:171
bool iso9660_is_dchar(int c)
char * iso9660_get_volume_id(const iso9660_pvd_t *p_pvd)
CdioList_t CdioISO9660DirList_t
A data type for a list of ISO9660 statbuf drectory pointer returned from the variious Cdio iso9660 re...
Definition: iso9660.h:519
iso731_t type_l_path_table
Definition: iso9660.h:420
iso732_t type_m_path_table
Definition: iso9660.h:311
unsigned int iso9660_dir_calc_record_size(unsigned int namelen, unsigned int su_len)
iso712_t dt_gmtoff
Definition: iso9660.h:192
iso711_t file_structure_version
Definition: iso9660.h:384
int iso9660_name_translate(const char *psz_oldname, char *psz_newname)
void iso9660_filelist_free(CdioISO9660FileList_t *p_filelist)
int32_t lsn_t
Definition: types.h:266
iso711_t dt_hour
Definition: iso9660.h:189
Definition: iso9660.h:110
Definition: iso9660.h:113
bool iso9660_ifs_read_pvd(const iso9660_t *p_iso, iso9660_pvd_t *p_pvd)
uint16_t iso9660_pathtable_m_add_entry(void *pt, const char name[], uint32_t extent, uint16_t parent)
#define ISO_MAX_VOLUME_ID
Maximum number of characters in a volume id.
Definition: iso9660.h:154
char * iso9660_strncpy_pad(char dst[], const char src[], size_t len, enum strncpy_pad_check _check)
struct _iso9660_s iso9660_t
Definition: iso9660.h:572
lsn_t lsn
Definition: iso9660.h:536
#define PRAGMA_BEGIN_PACKED
Definition: types.h:168
Definition: iso9660.h:111
Things related to the Rock Ridge Interchange Protocol (RRIP)
PRAGMA_END_PACKED typedef CdioList_t CdioISO9660FileList_t
A data type for a list of ISO9660 statbuf file pointers returned from the various Cdio iso9660 readdi...
Definition: iso9660.h:513
uint16_t iso721_t
Definition: iso9660.h:51
iso711_t length
Definition: iso9660.h:249
int iso9660_get_pvd_version(const iso9660_pvd_t *pvd)
iso731_t opt_type_l_path_table
Definition: iso9660.h:422
bool iso9660_ifs_get_volumeset_id(iso9660_t *p_iso, cdio_utf8_t **p_psz_volumeset_id)
iso711_t dt_minute
Definition: iso9660.h:190
int iso9660_get_pvd_block_size(const iso9660_pvd_t *p_pvd)
Definition: iso9660.h:557
int iso9660_name_translate_ext(const char *psz_oldname, char *psz_newname, uint8_t i_joliet_level)
lsn_t iso9660_get_root_lsn(const iso9660_pvd_t *p_pvd)
uint64_t iso733_t
Definition: iso9660.h:56
enum iso_flag_enum_s iso_flag_enums
iso711_t dt_second
Definition: iso9660.h:191
iso733_t volume_space_size
Definition: iso9660.h:412
iso_extension_enum_s
Definition: iso9660.h:554
#define ISO_STANDARD_ID
Definition: iso9660.h:164
iso9660_t * iso9660_open_ext(const char *psz_path, iso_extension_mask_t iso_extension_mask)
mode_t iso9660_get_posix_filemode(const iso9660_stat_t *p_iso_dirent)
bool iso9660_dirname_valid_p(const char psz_path[])
iso731_t opt_type_l_path_table
Definition: iso9660.h:309
char * iso9660_get_application_id(iso9660_pvd_t *p_pvd)
char * iso9660_get_preparer_id(const iso9660_pvd_t *p_pvd)
"Extended Architecture" according to the Philips Yellow Book.
Definition: xa.h:100
iso9660_t * iso9660_open_fuzzy(const char *psz_path, uint16_t i_fuzz)
enum strncpy_pad_check strncpy_pad_check_t
iso711_t len
Definition: iso9660.h:283
bool iso9660_fs_read_superblock(CdIo_t *p_cdio, iso_extension_mask_t iso_extension_mask)
bool iso9660_ifs_get_publisher_id(iso9660_t *p_iso, cdio_utf8_t **p_psz_publisher_id)
iso733_t path_table_size
Definition: iso9660.h:418
iso733_t extent
Definition: iso9660.h:252
Definition: iso9660.h:174
iso733_t path_table_size
Definition: iso9660.h:306
iso732_t opt_type_m_path_table
Definition: iso9660.h:313
void iso9660_dir_add_entry_su(void *dir, const char filename[], uint32_t extent, uint32_t size, uint8_t file_flags, const void *su_data, unsigned int su_size, const time_t *entry_time)
Definition: iso9660.h:173
iso_flag_enum_s
Definition: iso9660.h:107
bool iso9660_fs_read_pvd(const CdIo_t *p_cdio, iso9660_pvd_t *p_pvd)
iso733_t size
Definition: iso9660.h:254
char * iso9660_get_volumeset_id(const iso9660_pvd_t *p_pvd)
void iso9660_set_ltime_with_timezone(const struct tm *_tm, int timezone, iso9660_ltime_t *p_pvd_date)
Definition: iso9660.h:121
iso711_t type
Definition: iso9660.h:401
iso9660_ltime_t modification_date
Definition: iso9660.h:487
ISO-9660 Primary Volume Descriptor.
Definition: iso9660.h:291
iso9660_stat_t * iso9660_fs_stat_translate(CdIo_t *p_cdio, const char psz_path[])
ISO-9660 shorter-format time structure. See ECMA 9.1.5.
Definition: iso9660.h:184
Definition: iso9660.h:558
CdioList_t * iso9660_fs_readdir(CdIo_t *p_cdio, const char psz_path[])
char * iso9660_get_publisher_id(const iso9660_pvd_t *p_pvd)
iso9660_dir_t root_directory_record
Definition: iso9660.h:315
iso9660_stat_t * iso9660_fs_find_lsn_with_path(CdIo_t *p_cdio, lsn_t i_lsn, char **ppsz_full_filename)
void iso9660_set_dtime_with_timezone(const struct tm *p_tm, int timezone, iso9660_dtime_t *p_idr_date)
char root_directory_filename
Definition: iso9660.h:432
iso723_t volume_set_size
Definition: iso9660.h:415
Definition: iso9660.h:125
Definition: iso9660.h:116
iso711_t version
Definition: iso9660.h:405
Definition: iso9660.h:123
long int iso9660_iso_seek_read(const iso9660_t *p_iso, void *ptr, lsn_t start, long int i_size)
iso_vd_enum_s
Definition: iso9660.h:120
void iso9660_pathtable_init(void *pt)
int8_t iso712_t
Definition: iso9660.h:50
Definition: iso9660.h:555
void iso9660_set_evd(void *pd)
iso732_t type_m_path_table
Definition: iso9660.h:425
uint8_t iso9660_get_dir_len(const iso9660_dir_t *p_idr)
void iso9660_dir_init_new_su(void *dir, uint32_t self, uint32_t ssize, const void *ssu_data, unsigned int ssu_size, uint32_t parent, uint32_t psize, const void *psu_data, unsigned int psu_size, const time_t *dir_time)
iso723_t volume_sequence_number
Definition: iso9660.h:269
uint8_t iso9660_ifs_get_joliet_level(iso9660_t *p_iso)
Unix stat-like version of iso9660_dir.
Definition: iso9660.h:530
const char * iso9660_get_pvd_id(const iso9660_pvd_t *p_pvd)
uint32_t iso732_t
Definition: iso9660.h:55
Things related to the ISO-9660 XA (Extended Attributes) format.
CdioList_t * iso9660_ifs_readdir(iso9660_t *p_iso, const char psz_path[])
The top-level header for libcdio: the CD Input and Control library. Applications include this for any...
Definition: iso9660.h:109
bool iso9660_close(iso9660_t *p_iso)
bool iso9660_ifs_is_xa(const iso9660_t *p_iso)
iso723_t logical_block_size
Definition: iso9660.h:305
Definition: iso9660.h:559
iso711_t dt_month
Definition: iso9660.h:186
enum iso_extension_enum_s iso_extension_enums
CdioISO9660FileList_t * iso9660_filelist_new(void)
iso711_t file_structure_version
Definition: iso9660.h:498
Definition: iso9660.h:114
void iso9660_set_dtime(const struct tm *tm, iso9660_dtime_t *idr_date)
iso9660_ltime_t effective_date
Definition: iso9660.h:380
iso711_t xa_length
Definition: iso9660.h:250
Definition: iso9660.h:115
void iso9660_set_ltime(const struct tm *_tm, iso9660_ltime_t *p_pvd_date)
iso731_t type_l_path_table
Definition: iso9660.h:307
iso711_t file_unit_size
Definition: iso9660.h:261
struct _CdIo CdIo_t
Definition: cdio.h:47
void iso9660_stat_free(iso9660_stat_t *p_stat)
bool iso9660_ifs_get_application_id(iso9660_t *p_iso, cdio_utf8_t **p_psz_app_id)
CdioISO9660DirList_t * iso9660_dirlist_new(void)
iso711_t dt_day
Definition: iso9660.h:188
bool iso9660_ifs_read_superblock(iso9660_t *p_iso, iso_extension_mask_t iso_extension_mask)
iso9660_dir_t root_directory_record
Definition: iso9660.h:430
iso711_t dt_year
Definition: iso9660.h:185
iso712_t lt_gmtoff
Definition: iso9660.h:222
iso723_t logical_block_size
Definition: iso9660.h:417
iso711_t version
Definition: iso9660.h:295
char dchar_t
Definition: iso9660.h:59
char cdio_utf8_t
UTF-8 char definition.
Definition: types.h:234
iso_enum1_s
Definition: iso9660.h:83
char root_directory_filename
Definition: iso9660.h:318
enum iso_vd_enum_s iso_vd_enums
bool_3way_t
Definition: types.h:236
struct _CdioList CdioList_t
Definition: ds.h:33
iso723_t volume_set_size
Definition: iso9660.h:303
char flags
Definition: iso9660.h:406
iso9660_stat_t * iso9660_ifs_stat(iso9660_t *p_iso, const char psz_path[])
uint8_t iso9660_get_pvd_type(const iso9660_pvd_t *p_pvd)
void iso9660_dir_init_new(void *dir, uint32_t self, uint32_t ssize, uint32_t parent, uint32_t psize, const time_t *dir_time)
iso_rock_statbuf_t rr
Definition: iso9660.h:532
bool iso9660_ifs_get_volume_id(iso9660_t *p_iso, cdio_utf8_t **p_psz_volume_id)
uint8_t iso_extension_mask_t
Definition: iso9660.h:547
uint32_t secsize
Definition: iso9660.h:538
char * iso9660_dir_to_name(const iso9660_dir_t *p_iso9660_dir)
unsigned int iso9660_pathtable_get_size(const void *pt)
#define ISO_MAX_PUBLISHER_ID
Maximum number of characters in a publisher id.
Definition: iso9660.h:148
iso9660_stat_t * iso9660_fs_stat(CdIo_t *p_cdio, const char psz_path[])
strncpy_pad_check
Definition: iso9660.h:170
#define ISODCL(from, to)
Definition: iso9660.h:72
various POSIX definitions.
iso9660_dtime_t recording_time
Definition: iso9660.h:257
PRAGMA_BEGIN_PACKED struct iso9660_dtime_s GNUC_PACKED
iso733_t volume_space_size
Definition: iso9660.h:300
char achar_t
Definition: iso9660.h:58
uint32_t iso731_t
Definition: iso9660.h:54
iso723_t volume_sequence_number
Definition: iso9660.h:304
iso711_t type
Definition: iso9660.h:292
iso9660_ltime_t expiration_date
Definition: iso9660.h:377
Definition: iso9660.h:172
Definition: iso9660.h:112
#define ISO_MAX_VOLUMESET_ID
Maximum number of characters in a volume-set id.
Definition: iso9660.h:157
enum iso_enum1_s iso_enums1
iso9660_t * iso9660_open_fuzzy_ext(const char *psz_path, iso_extension_mask_t iso_extension_mask, uint16_t i_fuzz)
uint32_t iso723_t
Definition: iso9660.h:53
bool iso9660_is_achar(int c)
iso9660_ltime_t creation_date
Definition: iso9660.h:484
iso9660_stat_t * iso9660_ifs_stat_translate(iso9660_t *p_iso, const char psz_path[])
#define EMPTY_ARRAY_SIZE
Definition: iso9660.h:62
bool iso9660_ifs_get_preparer_id(iso9660_t *p_iso, cdio_utf8_t **p_psz_preparer_id)
Definition: iso9660.h:556
uint32_t size
Definition: iso9660.h:537
bool b_xa
Definition: iso9660.h:541
int iso9660_get_pvd_space_size(const iso9660_pvd_t *p_pvd)
iso9660_ltime_t effective_date
Definition: iso9660.h:494
uint16_t iso722_t
Definition: iso9660.h:52
bool iso9660_get_dtime(const iso9660_dtime_t *idr_date, bool b_localtime, struct tm *tm)
ISO-9660 longer-format time structure.
Definition: iso9660.h:207
Format of an ISO-9660 directory record.
Definition: iso9660.h:248
void iso9660_dirlist_free(CdioISO9660DirList_t *p_filelist)