libcdio  0.93
iso9660.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2003-2008, 2012-2013
3  Rocky Bernstein <rocky@gnu.org>
4  Copyright (C) 2000 Herbert Valerio Riedel <hvr@gnu.org>
5 
6  See also iso9660.h by Eric Youngdale (1993).
7 
8  Copyright 1993 Yggdrasil Computing, Incorporated
9 
10  This program is free software: you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14 
15  This program is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with this program. If not, see <http://www.gnu.org/licenses/>.
22 */
33 
34 #ifndef CDIO_ISO9660_H_
35 #define CDIO_ISO9660_H_
36 
37 #include <time.h>
38 
39 #include <cdio/cdio.h>
40 #include <cdio/ds.h>
41 #include <cdio/posix.h>
42 
49 typedef uint8_t iso711_t;
50 typedef int8_t iso712_t;
51 typedef uint16_t iso721_t;
52 typedef uint16_t iso722_t;
53 typedef uint32_t iso723_t;
54 typedef uint32_t iso731_t;
55 typedef uint32_t iso732_t;
56 typedef uint64_t iso733_t;
58 typedef char achar_t;
59 typedef char dchar_t;
61 #ifndef EMPTY_ARRAY_SIZE
62 #define EMPTY_ARRAY_SIZE 0
63 #endif
64 
65 #include <cdio/types.h>
66 #include <cdio/xa.h>
67 
68 #ifdef ISODCL
69 #undef ISODCL
70 #endif
71 /* This part borrowed from the bsd386 isofs */
72 #define ISODCL(from, to) ((to) - (from) + 1)
73 
74 #define MIN_TRACK_SIZE 4*75
75 #define MIN_ISO_SIZE MIN_TRACK_SIZE
76 
83 extern enum iso_enum1_s {
86  LEN_ISONAME = 31,
90  MAX_ISONAME = 37,
96  ISO_BLOCKSIZE = 2048
98 } iso_enums1;
99 
107 extern enum iso_flag_enum_s {
108  ISO_FILE = 0,
118 
120 extern enum iso_vd_enum_s {
126 } iso_vd_enums;
127 
128 
148 #define ISO_MAX_PUBLISHER_ID 128
149 
151 #define ISO_MAX_APPLICATION_ID 128
152 
154 #define ISO_MAX_VOLUME_ID 32
155 
157 #define ISO_MAX_VOLUMESET_ID 128
158 
162 extern const char ISO_STANDARD_ID[sizeof("CD001")-1];
163 
164 #define ISO_STANDARD_ID "CD001"
165 
166 #ifdef __cplusplus
167 extern "C" {
168 #endif /* __cplusplus */
169 
170 typedef enum strncpy_pad_check {
176 
178 
194 } GNUC_PACKED;
195 
197 
208  char lt_year [ISODCL( 1, 4)];
211  char lt_month [ISODCL( 5, 6)];
215  char lt_day [ISODCL( 7, 8)];
216  char lt_hour [ISODCL( 9, 10)];
217  char lt_minute [ISODCL( 11, 12)];
218  char lt_second [ISODCL( 13, 14)];
219  char lt_hsecond [ISODCL( 15, 16)];
226 } GNUC_PACKED;
227 
231 
232 #include <cdio/rock.h>
233 
258  uint8_t file_flags;
282  union {
284  char str[1];
285  } filename;
286 } GNUC_PACKED;
287 
293  char id[5];
296  char unused1[1];
299  uint8_t unused2[8];
302  uint8_t unused3[32];
385  uint8_t unused4[1];
386  char application_data[512];
388  uint8_t unused5[653];
389 } GNUC_PACKED;
390 
392 
403  char id[5];
406  char flags;
411  char unused2[8];
414  char escape_sequences[32];
499  uint8_t unused4[1];
500  char application_data[512];
502  uint8_t unused5[653];
503 } GNUC_PACKED;
504 
506 
508 
518 struct iso9660_stat_s { /* big endian!! */
519 
522  struct tm tm;
525  uint32_t size;
526  uint32_t secsize;
528  enum { _STAT_FILE = 1, _STAT_DIR = 2 } type;
529  bool b_xa;
531 };
532 
535 typedef uint8_t iso_extension_mask_t;
536 
542 extern enum iso_extension_enum_s {
549 
550 
551 #define ISO_EXTENSION_ALL 0xFF
552 #define ISO_EXTENSION_NONE 0x00
553 #define ISO_EXTENSION_JOLIET \
554  (ISO_EXTENSION_JOLIET_LEVEL1 | \
555  ISO_EXTENSION_JOLIET_LEVEL2 | \
556  ISO_EXTENSION_JOLIET_LEVEL3 )
557 
558 
560 typedef struct _iso9660_s iso9660_t;
561 
569  bool iso9660_close (iso9660_t * p_iso);
570 
571 
576  iso9660_t *iso9660_open (const char *psz_path /*flags, mode */);
577 
585  iso9660_t *iso9660_open_ext (const char *psz_path,
586  iso_extension_mask_t iso_extension_mask);
587 
602  iso9660_t *iso9660_open_fuzzy (const char *psz_path /*flags, mode */,
603  uint16_t i_fuzz);
604 
614  iso9660_t *iso9660_open_fuzzy_ext (const char *psz_path,
615  iso_extension_mask_t iso_extension_mask,
616  uint16_t i_fuzz
617  /*flags, mode */);
618 
626  iso_extension_mask_t iso_extension_mask,
627  uint16_t i_fuzz);
628 
645  long int iso9660_iso_seek_read (const iso9660_t *p_iso, /*out*/ void *ptr,
646  lsn_t start, long int i_size);
647 
652  bool iso9660_fs_read_pvd ( const CdIo_t *p_cdio,
653  /*out*/ iso9660_pvd_t *p_pvd );
654 
659  bool iso9660_ifs_read_pvd (const iso9660_t *p_iso,
660  /*out*/ iso9660_pvd_t *p_pvd);
661 
667  bool iso9660_fs_read_superblock (CdIo_t *p_cdio,
668  iso_extension_mask_t iso_extension_mask);
669 
676  iso_extension_mask_t iso_extension_mask);
677 
678 
679 /*====================================================
680  Time conversion
681  ====================================================*/
682 
687  void iso9660_set_dtime (const struct tm *tm,
688  /*out*/ iso9660_dtime_t *idr_date);
689 
690 
696  void iso9660_set_dtime_with_timezone (const struct tm *p_tm,
697  int timezone,
698  /*out*/ iso9660_dtime_t *p_idr_date);
699 
703  void iso9660_set_ltime (const struct tm *_tm,
704  /*out*/ iso9660_ltime_t *p_pvd_date);
705 
709  void iso9660_set_ltime_with_timezone (const struct tm *_tm,
710  int timezone,
711  /*out*/ iso9660_ltime_t *p_pvd_date);
712 
721  bool iso9660_get_dtime (const iso9660_dtime_t *idr_date, bool b_localtime,
722  /*out*/ struct tm *tm);
723 
724 
729  bool iso9660_get_ltime (const iso9660_ltime_t *p_ldate,
730  /*out*/ struct tm *p_tm);
731 
732  /*====================================================
733  Character Classification and String Manipulation
734  ====================================================*/
740  bool iso9660_is_dchar (int c);
741 
747  bool iso9660_is_achar (int c);
748 
760  int iso9660_name_translate(const char *psz_oldname,
761  /*out*/ char *psz_newname);
762 
778  int iso9660_name_translate_ext(const char *psz_oldname, char *psz_newname,
779  uint8_t i_joliet_level);
780 
792  char *iso9660_strncpy_pad(char dst[], const char src[], size_t len,
793  enum strncpy_pad_check _check);
794 
795  /*=====================================================================
796  File and Directory Names
797  ======================================================================*/
798 
809  bool iso9660_dirname_valid_p (const char psz_path[]);
810 
817  char *iso9660_pathname_isofy (const char psz_path[], uint16_t i_version);
818 
830  bool iso9660_pathname_valid_p (const char psz_path[]);
831 
832 /*=====================================================================
833  directory tree
834 ======================================================================*/
835 
836 void
837 iso9660_dir_init_new (void *dir, uint32_t self, uint32_t ssize,
838  uint32_t parent, uint32_t psize,
839  const time_t *dir_time);
840 
841 void
842 iso9660_dir_init_new_su (void *dir, uint32_t self, uint32_t ssize,
843  const void *ssu_data, unsigned int ssu_size,
844  uint32_t parent, uint32_t psize,
845  const void *psu_data, unsigned int psu_size,
846  const time_t *dir_time);
847 
848 void
849 iso9660_dir_add_entry_su (void *dir, const char filename[], uint32_t extent,
850  uint32_t size, uint8_t file_flags,
851  const void *su_data,
852  unsigned int su_size, const time_t *entry_time);
853 
854 unsigned int
855 iso9660_dir_calc_record_size (unsigned int namelen, unsigned int su_len);
856 
864 #define iso9660_fs_find_lsn iso9660_find_fs_lsn
866 
867 
876  /*out*/ char **ppsz_path);
877 
886 
887 
903  lsn_t i_lsn,
904  /*out*/ char **ppsz_path);
905 
909 void iso9660_stat_free(iso9660_stat_t *p_stat);
910 
929 iso9660_stat_t *iso9660_fs_stat (CdIo_t *p_cdio, const char psz_path[]);
930 
931 
940  const char psz_path[],
941  bool b_mode2);
942 
946 iso9660_stat_t *iso9660_ifs_stat (iso9660_t *p_iso, const char psz_path[]);
947 
948 
954  const char psz_path[]);
955 
962 CdioList_t * iso9660_fs_readdir (CdIo_t *p_cdio, const char psz_path[],
963  bool b_mode2);
964 
969 CdioList_t * iso9660_ifs_readdir (iso9660_t *p_iso, const char psz_path[]);
970 
976 
982  /*out*/ cdio_utf8_t **p_psz_app_id);
983 
988 
989 uint8_t iso9660_get_dir_len(const iso9660_dir_t *p_idr);
990 
991 #ifdef FIXME
992 uint8_t iso9660_get_dir_size(const iso9660_dir_t *p_idr);
993 
994 lsn_t iso9660_get_dir_extent(const iso9660_dir_t *p_idr);
995 #endif
996 
1003  char * iso9660_dir_to_name (const iso9660_dir_t *p_iso9660_dir);
1004 
1008  mode_t iso9660_get_posix_filemode(const iso9660_stat_t *p_iso_dirent);
1009 
1014  char *iso9660_get_preparer_id(const iso9660_pvd_t *p_pvd);
1015 
1021  /*out*/ cdio_utf8_t **p_psz_preparer_id);
1022 
1027  char *iso9660_get_publisher_id(const iso9660_pvd_t *p_pvd);
1028 
1034  /*out*/ cdio_utf8_t **p_psz_publisher_id);
1035 
1036  uint8_t iso9660_get_pvd_type(const iso9660_pvd_t *p_pvd);
1037 
1038  const char * iso9660_get_pvd_id(const iso9660_pvd_t *p_pvd);
1039 
1040  int iso9660_get_pvd_space_size(const iso9660_pvd_t *p_pvd);
1041 
1042  int iso9660_get_pvd_block_size(const iso9660_pvd_t *p_pvd) ;
1043 
1047  int iso9660_get_pvd_version(const iso9660_pvd_t *pvd) ;
1048 
1053  char *iso9660_get_system_id(const iso9660_pvd_t *p_pvd);
1054 
1069  bool_3way_t iso9660_have_rr(iso9660_t *p_iso, uint64_t u_file_limit);
1070 
1076  /*out*/ cdio_utf8_t **p_psz_system_id);
1077 
1078 
1083 
1088  char *iso9660_get_volume_id(const iso9660_pvd_t *p_pvd);
1089 
1095  /*out*/ cdio_utf8_t **p_psz_volume_id);
1096 
1101  char *iso9660_get_volumeset_id(const iso9660_pvd_t *p_pvd);
1102 
1108  /*out*/ cdio_utf8_t **p_psz_volumeset_id);
1109 
1110  /* pathtable */
1111 
1113  void iso9660_pathtable_init (void *pt);
1114 
1115  unsigned int iso9660_pathtable_get_size (const void *pt);
1116 
1117  uint16_t iso9660_pathtable_l_add_entry (void *pt, const char name[],
1118  uint32_t extent, uint16_t parent);
1119 
1120  uint16_t iso9660_pathtable_m_add_entry (void *pt, const char name[],
1121  uint32_t extent, uint16_t parent);
1122 
1127  void iso9660_set_pvd (void *pd, const char volume_id[],
1128  const char application_id[],
1129  const char publisher_id[], const char preparer_id[],
1130  uint32_t iso_size, const void *root_dir,
1131  uint32_t path_table_l_extent,
1132  uint32_t path_table_m_extent,
1133  uint32_t path_table_size, const time_t *pvd_time);
1134 
1135  void iso9660_set_evd (void *pd);
1136 
1140  bool iso9660_ifs_is_xa (const iso9660_t * p_iso);
1141 
1142 
1143 #ifndef DO_NOT_WANT_COMPATIBILITY
1144 
1145 #define iso9660_isdchar iso9660_is_dchar
1146 #define iso9660_isachar iso9660_is_achar
1147 #endif /*DO_NOT_WANT_COMPATIBILITY*/
1148 
1149 #ifdef __cplusplus
1150 }
1151 #endif /* __cplusplus */
1152 
1153 #undef ISODCL
1154 #endif /* CDIO_ISO9660_H_ */
1155 
1156 /*
1157  * Local variables:
1158  * c-file-style: "gnu"
1159  * tab-width: 8
1160  * indent-tabs-mode: nil
1161  * End:
1162  */
#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)
char unused2[8]
Definition: iso9660.h:411
char filename[EMPTY_ARRAY_SIZE]
Definition: iso9660.h:530
ISO-9660 Supplementary Volume Descriptor.
Definition: iso9660.h:400
uint8_t file_flags
Definition: iso9660.h:258
iso9660_xa_t xa
Definition: iso9660.h:527
#define iso9660_fs_find_lsn
Definition: iso9660.h:864
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
achar_t system_id[ISO_MAX_SYSTEM_ID]
Definition: iso9660.h:297
iso9660_ltime_t expiration_date
Definition: iso9660.h:491
char application_data[512]
Definition: iso9660.h:386
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)
Definition: iso9660.h:96
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:88
Definition: iso9660.h:122
#define PRAGMA_END_PACKED
Definition: types.h:168
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)
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
Definition: iso9660.h:85
int iso9660_name_translate(const char *psz_oldname, char *psz_newname)
int32_t lsn_t
Definition: types.h:265
iso711_t dt_hour
Definition: iso9660.h:189
dchar_t volume_set_id[ISO_MAX_VOLUMESET_ID]
Definition: iso9660.h:321
char unused1[1]
Definition: iso9660.h:296
Definition: iso9660.h:110
Definition: iso9660.h:113
bool iso9660_ifs_read_pvd(const iso9660_t *p_iso, iso9660_pvd_t *p_pvd)
Definition: iso9660.h:528
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:560
lsn_t lsn
Definition: iso9660.h:524
#define PRAGMA_BEGIN_PACKED
Definition: types.h:167
char lt_second[ISODCL(13, 14)]
Definition: iso9660.h:218
Definition: iso9660.h:111
struct tm tm
Definition: iso9660.h:522
Things related to the Rock Ridge Interchange Protocol (RRIP)
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:545
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:542
#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[])
uint8_t unused5[653]
Definition: iso9660.h:388
iso731_t opt_type_l_path_table
Definition: iso9660.h:309
char str[1]
Definition: iso9660.h:284
char * iso9660_get_application_id(iso9660_pvd_t *p_pvd)
dchar_t copyright_file_id[37]
Definition: iso9660.h:473
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
Definition: iso9660.h:94
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
uint8_t unused4[1]
Definition: iso9660.h:385
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)
char lt_day[ISODCL(7, 8)]
Definition: iso9660.h:215
Definition: iso9660.h:173
char lt_month[ISODCL(5, 6)]
Definition: iso9660.h:211
uint8_t unused5[653]
Definition: iso9660.h:502
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 lt_hour[ISODCL(9, 10)]
Definition: iso9660.h:216
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
ISO-9660 shorter-format time structure. See ECMA 9.1.5.
Definition: iso9660.h:184
Definition: iso9660.h:546
char * iso9660_get_publisher_id(const iso9660_pvd_t *p_pvd)
union iso9660_dir_s::@11 filename
iso9660_dir_t root_directory_record
Definition: iso9660.h:315
dchar_t volume_set_id[ISO_MAX_VOLUMESET_ID]
Definition: iso9660.h:435
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:528
Definition: iso9660.h:123
iso9660_stat_t * iso9660_fs_find_lsn_with_path(CdIo_t *p_cdio, lsn_t i_lsn, char **ppsz_path)
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:543
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)
Definition: iso9660.h:92
Definition: rock.h:282
iso723_t volume_sequence_number
Definition: iso9660.h:269
uint8_t iso9660_ifs_get_joliet_level(iso9660_t *p_iso)
dchar_t bibliographic_file_id[37]
Definition: iso9660.h:368
Unix stat-like version of iso9660_dir.
Definition: iso9660.h:518
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
achar_t publisher_id[ISO_MAX_PUBLISHER_ID]
Definition: iso9660.h:325
bool iso9660_close(iso9660_t *p_iso)
bool iso9660_ifs_is_xa(const iso9660_t *p_iso)
Definition: iso9660.h:84
iso723_t logical_block_size
Definition: iso9660.h:305
achar_t application_id[ISO_MAX_APPLICATION_ID]
Definition: iso9660.h:347
Definition: iso9660.h:547
iso711_t dt_month
Definition: iso9660.h:186
enum iso_extension_enum_s iso_extension_enums
iso711_t file_structure_version
Definition: iso9660.h:498
dchar_t abstract_file_id[37]
Definition: iso9660.h:366
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)
iso9660_stat_t * iso9660_fs_stat_translate(CdIo_t *p_cdio, const char psz_path[], bool b_mode2)
iso711_t dt_day
Definition: iso9660.h:188
bool iso9660_ifs_read_superblock(iso9660_t *p_iso, iso_extension_mask_t iso_extension_mask)
dchar_t volume_id[ISO_MAX_VOLUME_ID]
Definition: iso9660.h:409
iso9660_dir_t root_directory_record
Definition: iso9660.h:430
iso711_t dt_year
Definition: iso9660.h:185
char lt_hsecond[ISODCL(15, 16)]
Definition: iso9660.h:219
iso712_t lt_gmtoff
Definition: iso9660.h:222
achar_t system_id[ISO_MAX_SYSTEM_ID]
Definition: iso9660.h:407
iso723_t logical_block_size
Definition: iso9660.h:417
enum iso9660_stat_s::@12 type
dchar_t abstract_file_id[37]
Definition: iso9660.h:480
iso711_t version
Definition: iso9660.h:295
achar_t application_id[ISO_MAX_APPLICATION_ID]
Definition: iso9660.h:461
char dchar_t
Definition: iso9660.h:59
char cdio_utf8_t
UTF-8 char definition.
Definition: types.h:233
iso_enum1_s
Definition: iso9660.h:83
char root_directory_filename
Definition: iso9660.h:318
char escape_sequences[32]
Definition: iso9660.h:414
enum iso_vd_enum_s iso_vd_enums
bool_3way_t
Definition: types.h:235
struct _CdioList CdioList_t
Definition: ds.h:35
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)
char lt_minute[ISODCL(11, 12)]
Definition: iso9660.h:217
void iso9660_dir_init_new(void *dir, uint32_t self, uint32_t ssize, uint32_t parent, uint32_t psize, const time_t *dir_time)
achar_t publisher_id[ISO_MAX_PUBLISHER_ID]
Definition: iso9660.h:437
iso_rock_statbuf_t rr
Definition: iso9660.h:520
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:535
dchar_t copyright_file_id[37]
Definition: iso9660.h:359
uint32_t secsize
Definition: iso9660.h:526
char * iso9660_dir_to_name(const iso9660_dir_t *p_iso9660_dir)
achar_t preparer_id[ISO_MAX_PREPARER_ID]
Definition: iso9660.h:336
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:86
Definition: iso9660.h:172
Definition: iso9660.h:112
CdioList_t * iso9660_fs_readdir(CdIo_t *p_cdio, const char psz_path[], bool b_mode2)
#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
dchar_t bibliographic_file_id[37]
Definition: iso9660.h:482
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
char lt_year[ISODCL(1, 4)]
Definition: iso9660.h:208
achar_t preparer_id[ISO_MAX_PREPARER_ID]
Definition: iso9660.h:449
uint8_t unused3[32]
Definition: iso9660.h:302
uint8_t unused2[8]
Definition: iso9660.h:299
bool iso9660_ifs_get_preparer_id(iso9660_t *p_iso, cdio_utf8_t **p_psz_preparer_id)
Definition: iso9660.h:544
uint32_t size
Definition: iso9660.h:525
bool b_xa
Definition: iso9660.h:529
int iso9660_get_pvd_space_size(const iso9660_pvd_t *p_pvd)
iso9660_ltime_t effective_date
Definition: iso9660.h:494
Definition: iso9660.h:90
uint16_t iso722_t
Definition: iso9660.h:52
char application_data[512]
Definition: iso9660.h:500
dchar_t volume_id[ISO_MAX_VOLUME_ID]
Definition: iso9660.h:298
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
uint8_t unused4[1]
Definition: iso9660.h:499