| 1 | |
| 2 | /* Command line oriented batch and dialog tool which creates, loads, |
| 3 | manipulates and burns ISO 9660 filesystem images. |
| 4 | |
| 5 | Copyright 2007-2026 Thomas Schmitt, <[email protected]> |
| 6 | |
| 7 | Provided under GPL version 2 or later. |
| 8 | |
| 9 | This file contains inner declarations of xorriso. |
| 10 | The public interface is in xorriso.h |
| 11 | */ |
| 12 | |
| 13 | |
| 14 | /* For now, #ifdef Xorriso_is_xorriso_selF has no meaning. |
| 15 | But it is already now to be set only by the xorriso.c module. |
| 16 | */ |
| 17 | |
| 18 | #ifndef Xorriso_private_includeD |
| 19 | #define Xorriso_private_includeDcxx . . $ `xorriso/xorriso_private.h:19:9`! yes |
| 20 | |
| 21 | |
| 22 | /* <<< Disable this to disable pthread_mutex locking on message and result |
| 23 | output. |
| 24 | */ |
| 25 | #define Xorriso_fetch_with_msg_queueScxx . . $ `xorriso/xorriso_private.h:25:9`! yes |
| 26 | |
| 27 | |
| 28 | /* for uint32_t */ |
| 29 | #ifdef HAVE_STDINT_Hcxx . . $ `<built-in>:432:9`! |
| 30 | #include <stdint.h> |
| 31 | #else |
| 32 | #ifdef HAVE_INTTYPES_H |
| 33 | #include <inttypes.h> |
| 34 | #endif |
| 35 | #endif |
| 36 | |
| 37 | /* for pthread_mutex_t on OpenBSD */ |
| 38 | #include <pthread.h> |
| 39 | |
| 40 | |
| 41 | /** The source code release timestamp */ |
| 42 | #include "xorriso_timestamp.h"cxx . . $ `<file>/xorriso/xorriso_timestamp.h`/ |
| 43 | #ifndef Xorriso_timestamPcxx . . $ `xorriso/xorriso_timestamp.h:1:9`! |
| 44 | #define Xorriso_timestamP "-none-given-" |
| 45 | #endif |
| 46 | |
| 47 | /** The binary build timestamp is to be set externally by the compiler |
| 48 | or by a macro definition in xorriso_buildstamp.h. |
| 49 | */ |
| 50 | #include "xorriso_buildstamp.h"cxx . . $ `<file>/xorriso/xorriso_buildstamp.h`/ |
| 51 | #ifndef Xorriso_build_timestamPcxx . . $ `xorriso/xorriso_buildstamp.h:2:9`! |
| 52 | #define Xorriso_build_timestamP "-none-given-" |
| 53 | #endif |
| 54 | |
| 55 | |
| 56 | #include "sfile.h"cxx . . $ `<file>/xorriso/sfile.h`/ |
| 57 | #include "misc_funct.h"cxx . . $ `<file>/xorriso/misc_funct.h`/ |
| 58 | |
| 59 | |
| 60 | struct ExclusionScxx . . $ ExclusionS#; /* List of -not_* conditions */ |
| 61 | struct PermiteMcxx . . $ PermiteM#; /* Stack of temporarily altered access permissions */ |
| 62 | struct CheckmediajoBcxx . . $ CheckmediajoB#; /* Parameters for Xorriso_check_media() */ |
| 63 | struct SectorbitmaPcxx . . $ SectorbitmaP#; /* Distiniction between valid and invalid sectors */ |
| 64 | struct FindjoBcxx . . $ FindjoB#; /* Program and status of a find run */ |
| 65 | |
| 66 | |
| 67 | /* maximum number of history lines to be reported with -status:long_history */ |
| 68 | #define Xorriso_status_history_maXcxx . . $ `xorriso/xorriso_private.h:68:9`! 100 |
| 69 | |
| 70 | |
| 71 | /** The list of startup file names */ |
| 72 | #define Xorriso_rc_nuMcxx . . $ `xorriso/xorriso_private.h:72:9`! 4 |
| 73 | |
| 74 | |
| 75 | /* Default setting for the size limit of single data files: |
| 76 | 100 extents with 4 GB - 2 kB each = 400 GB - 200 kB |
| 77 | */ |
| 78 | #define Xorriso_default_file_size_limiTcxx . . $ `xorriso/xorriso_private.h:78:9`! \ |
| 79 | (((off_t) 400) * ((off_t) 1024*1024*1024) - (off_t) 204800) |
| 80 | |
| 81 | |
| 82 | /* Maximum number of appended partitions. Effectively usable number depends |
| 83 | on system area type. |
| 84 | */ |
| 85 | #define Xorriso_max_appended_partitionScxx . . $ `xorriso/xorriso_private.h:85:9`! 8 |
| 86 | |
| 87 | |
| 88 | /* |
| 89 | Maximum length of a disc label text plus 1. |
| 90 | */ |
| 91 | #define Xorriso_disc_label_sizEcxx . . $ `xorriso/xorriso_private.h:91:9`! 129 |
| 92 | |
| 93 | |
| 94 | struct XorrisOcxx . . $ XorrisO# { /* the global context of xorriso */ |
| 95 | |
| 96 | int libs_are_startedcxx . . $ XorrisO#libs_are_started.; |
| 97 | |
| 98 | /* source */ |
| 99 | char prognamecxx . . $ XorrisO#progname.[SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; |
| 100 | char initial_wdxcxx . . $ XorrisO#initial_wdx.[SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; |
| 101 | int no_rccxx . . $ XorrisO#no_rc.; |
| 102 | |
| 103 | /* Command line argument emulations by program name: |
| 104 | 0=xorriso mode |
| 105 | 1=mkisofs mode |
| 106 | 2=cdrecord mode |
| 107 | */ |
| 108 | int argument_emulationcxx . . $ XorrisO#argument_emulation.; |
| 109 | |
| 110 | /* Whether to try completion of unrecognized options to known genisoimage |
| 111 | options. 0=no, 1=yes. |
| 112 | */ |
| 113 | int genisoimage_completioncxx . . $ XorrisO#genisoimage_completion.; |
| 114 | |
| 115 | /* Under which interpreter the current activities are running: |
| 116 | 0=xorriso mode : Xorriso_interpreter() |
| 117 | 1=mkisofs mode : Xorriso_genisofs() |
| 118 | 2=cdrecord mode : Xorriso_cdrskin() |
| 119 | */ |
| 120 | int current_interpretercxx . . $ XorrisO#current_interpreter.; |
| 121 | |
| 122 | /** List of startupfiles */ |
| 123 | char rc_filenamescxx . . $ XorrisO#rc_filenames.[Xorriso_rc_nuMcxx . . $ `xorriso/xorriso_private.h:72:9`!][SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; |
| 124 | int rc_filename_countcxx . . $ XorrisO#rc_filename_count.; |
| 125 | |
| 126 | int arrange_argscxx . . $ XorrisO#arrange_args.; |
| 127 | |
| 128 | /* Whether .mkisofsrc has already been read */ |
| 129 | int mkisofsrc_donecxx . . $ XorrisO#mkisofsrc_done.; |
| 130 | |
| 131 | char wdicxx . . $ XorrisO#wdi.[SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; |
| 132 | char wdxcxx . . $ XorrisO#wdx.[SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; |
| 133 | int did_something_usefulcxx . . $ XorrisO#did_something_useful.; |
| 134 | |
| 135 | int add_plainlycxx . . $ XorrisO#add_plainly.; |
| 136 | off_tcxx . . $ off_t# split_sizecxx . . $ XorrisO#split_size.; |
| 137 | |
| 138 | char list_delimitercxx . . $ XorrisO#list_delimiter.[81]; |
| 139 | |
| 140 | /* >>> put libisofs aspects here <<< */ |
| 141 | |
| 142 | int ino_behaviorcxx . . $ XorrisO#ino_behavior.; /* bit0= at image load time: |
| 143 | Do not load PX inode numbers but generate new |
| 144 | unique ones for all loaded IsoNode. |
| 145 | bit1= at image generation time: |
| 146 | Do not consolidate suitable nodes to hardlinks. |
| 147 | bit2= at restore-to-disk time: |
| 148 | Do not consolidate suitable nodes to hardlinks. |
| 149 | bit3= with update: |
| 150 | Do not try to detect hardlink splits and joinings. |
| 151 | bit4= with extract: |
| 152 | Do not create or use hln arrays if sort_lba_on |
| 153 | bit5= with command -lsl |
| 154 | Do not create hln array for hard link count |
| 155 | */ |
| 156 | |
| 157 | int iso_levelcxx . . $ XorrisO#iso_level.; |
| 158 | int iso_level_is_defaultcxx . . $ XorrisO#iso_level_is_default.; |
| 159 | int do_jolietcxx . . $ XorrisO#do_joliet.; |
| 160 | int do_hfspluscxx . . $ XorrisO#do_hfsplus.; |
| 161 | int do_fatcxx . . $ XorrisO#do_fat.; |
| 162 | int do_rockridgecxx . . $ XorrisO#do_rockridge.; |
| 163 | int do_iso1999cxx . . $ XorrisO#do_iso1999.; |
| 164 | int ecma119_mapcxx . . $ XorrisO#ecma119_map.; /* 0=unmapped , 1=stripped , 2=uppercase , 3=lowercase */ |
| 165 | int joliet_mapcxx . . $ XorrisO#joliet_map.; /* 0=unmapped , 1=stripped */ |
| 166 | |
| 167 | int do_aaipcxx . . $ XorrisO#do_aaip.; /* bit0= ACL in |
| 168 | bit1= ACL out |
| 169 | bit2= EA in |
| 170 | bit3= EA out |
| 171 | bit4= record dev,inode per node, isofs_st_out in root |
| 172 | bit5= check dev,inode,isofs_st_in |
| 173 | bit6= omit content check if bit5 check is conclusive |
| 174 | bit7= omit dev check with bit5 |
| 175 | bit8= store output charset in xattr "isofs.cs" |
| 176 | bit9= set input charset from xattr "isofs.cs" |
| 177 | bit10= if bit2: import from local filesystem all xattr |
| 178 | namespaces, not only "user." |
| 179 | if bit3: export to local filesystem all xattr |
| 180 | namespaces, not only "user." |
| 181 | During node manipulations: |
| 182 | enable manipulations of all xattr namespaces, |
| 183 | not only "user." (but usually not "isofs.") |
| 184 | bit11= read lfa_flags (chattr) from local file objects and |
| 185 | when loading ISO image, write them into the |
| 186 | ISO filesystem |
| 187 | bit12= restore lfa_flags when restoring file to disk |
| 188 | bit13= do not restore known superuser lfa_flags |
| 189 | bit14= restore only known lfa_flags |
| 190 | bit15= ignore non-settable lfa_flags when importing files from |
| 191 | disk and do not record "isofs.fa" if the other flags |
| 192 | are all zero |
| 193 | bit16= try to restore lfa_flags one-by-one if the whole set |
| 194 | fails possibly because of inappropriate attributes |
| 195 | bit17= read XFS-style project ids from local file objects and |
| 196 | when loading ISO image, write them into the |
| 197 | ISO filesystem, restore them when restoring file to disk |
| 198 | bit18= restore project id 0, too |
| 199 | */ |
| 200 | |
| 201 | int lfa_flags_settingcxx . . $ XorrisO#lfa_flags_setting.; /* Current settings of command -lfa_flags |
| 202 | bit0= on |
| 203 | bit1= auto_su |
| 204 | bit2= auto_on (i.e. only if libisofs has been |
| 205 | compiled with lfa enabled) |
| 206 | bit3= libisofs indeed has lfa enabled |
| 207 | (to be set only at program start) |
| 208 | bit11-16= at the end of the command these bits |
| 209 | get put into .do_aaip if bit0 is on. |
| 210 | Else the lfa bits of do_aaip will be set |
| 211 | to 0. |
| 212 | */ |
| 213 | int lfa_flags_defaultcxx . . $ XorrisO#lfa_flags_default.; /* Default for lfa_flags_setting */ |
| 214 | |
| 215 | uint64_tcxx . . $ uint64_t# lfa_restore_maskcxx . . $ XorrisO#lfa_restore_mask.; /* At most the flag bits which are set here will |
| 216 | be restored when a file gets restored to disk |
| 217 | */ |
| 218 | char lfa_restore_err_sevcxx . . $ XorrisO#lfa_restore_err_sev.[20]; /* Severity to use with error message due to |
| 219 | lfa restore problems. "silent" and "all" |
| 220 | suppress error messages. |
| 221 | */ |
| 222 | |
| 223 | struct NumbermappeRcxx . . $ NumbermappeR# *projid_mappercxx . . $ XorrisO#projid_mapper.; /* For -projid map+N,M=R[,[S]] */ |
| 224 | |
| 225 | int do_md5cxx . . $ XorrisO#do_md5.; /* bit0= read MD5 array |
| 226 | bit1= write session MD5 |
| 227 | bit2= write MD5 for each data file |
| 228 | bit3= make file content stability check by double reading |
| 229 | bit4= use recorded MD5 as proxy of ISO file |
| 230 | bit5= with bit0: do not check tags of superblock,tree,session |
| 231 | bit6= during extraction verify file content by recorded MD5 |
| 232 | bit7= with bit6: take lack of MD5 as error |
| 233 | */ |
| 234 | |
| 235 | int no_emul_toccxx . . $ XorrisO#no_emul_toc.; /* bit0= On overwritables: |
| 236 | write first session to LBA 0 rather than 32. |
| 237 | */ |
| 238 | |
| 239 | int do_old_emptycxx . . $ XorrisO#do_old_empty.; /* See -compliance old_empty |
| 240 | own data content: range [0,31]. The new way is to have |
| 241 | a dedicated block to which all such files will point. |
| 242 | */ |
| 243 | |
| 244 | char scdbackup_tag_namecxx . . $ XorrisO#scdbackup_tag_name.[81]; |
| 245 | char scdbackup_tag_timecxx . . $ XorrisO#scdbackup_tag_time.[19]; |
| 246 | char scdbackup_tag_writtencxx . . $ XorrisO#scdbackup_tag_written.[512]; |
| 247 | char scdbackup_tag_listnamecxx . . $ XorrisO#scdbackup_tag_listname.[SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; |
| 248 | |
| 249 | int relax_compliancecxx . . $ XorrisO#relax_compliance.; /* opaque bitfield to be set by xorrisoburn */ |
| 250 | int allow_dir_id_ext_dfltcxx . . $ XorrisO#allow_dir_id_ext_dflt.; /* -compliance allow_dir_id_ext still on default */ |
| 251 | char rr_reloc_dircxx . . $ XorrisO#rr_reloc_dir.[256]; |
| 252 | int rr_reloc_flagscxx . . $ XorrisO#rr_reloc_flags.; |
| 253 | int untranslated_name_lencxx . . $ XorrisO#untranslated_name_len.; |
| 254 | int do_follow_patterncxx . . $ XorrisO#do_follow_pattern.; |
| 255 | int do_follow_paramcxx . . $ XorrisO#do_follow_param.; |
| 256 | int do_follow_linkscxx . . $ XorrisO#do_follow_links.; |
| 257 | int follow_link_limitcxx . . $ XorrisO#follow_link_limit.; |
| 258 | int resolve_link_rec_countcxx . . $ XorrisO#resolve_link_rec_count.; |
| 259 | int resolve_link_rec_limitcxx . . $ XorrisO#resolve_link_rec_limit.; |
| 260 | int do_follow_concatcxx . . $ XorrisO#do_follow_concat.; |
| 261 | int do_follow_mountcxx . . $ XorrisO#do_follow_mount.; |
| 262 | int do_global_uidcxx . . $ XorrisO#do_global_uid.; |
| 263 | uid_tcxx . . $ uid_t# global_uidcxx . . $ XorrisO#global_uid.; |
| 264 | int do_global_gidcxx . . $ XorrisO#do_global_gid.; |
| 265 | gid_tcxx . . $ gid_t# global_gidcxx . . $ XorrisO#global_gid.; |
| 266 | int do_global_modecxx . . $ XorrisO#do_global_mode.; |
| 267 | mode_tcxx . . $ mode_t# global_dir_modecxx . . $ XorrisO#global_dir_mode.; |
| 268 | mode_tcxx . . $ mode_t# global_file_modecxx . . $ XorrisO#global_file_mode.; |
| 269 | |
| 270 | int do_taocxx . . $ XorrisO#do_tao.; /* 1= Use TAO or Incremental |
| 271 | -1= Use SAO or DAO |
| 272 | 0= let libburn choose */ |
| 273 | |
| 274 | struct Xorriso_lsTcxx . . $ Xorriso_lsT# *filterscxx . . $ XorrisO#filters.; |
| 275 | int filter_list_closedcxx . . $ XorrisO#filter_list_closed.; |
| 276 | |
| 277 | int zlib_levelcxx . . $ XorrisO#zlib_level.; |
| 278 | int zlib_level_defaultcxx . . $ XorrisO#zlib_level_default.; |
| 279 | int zisofs_block_sizecxx . . $ XorrisO#zisofs_block_size.; |
| 280 | int zisofs_block_size_defaultcxx . . $ XorrisO#zisofs_block_size_default.; |
| 281 | int zisofs_by_magiccxx . . $ XorrisO#zisofs_by_magic.; |
| 282 | int zisofs_v2_enabledcxx . . $ XorrisO#zisofs_v2_enabled.; /* 0=no, 1=as_needed, 2=force */ |
| 283 | uint64_tcxx . . $ uint64_t# zisofs_max_total_blockscxx . . $ XorrisO#zisofs_max_total_blocks.; |
| 284 | uint64_tcxx . . $ uint64_t# zisofs_max_total_blocks_defaultcxx . . $ XorrisO#zisofs_max_total_blocks_default.; |
| 285 | uint64_tcxx . . $ uint64_t# zisofs_max_file_blockscxx . . $ XorrisO#zisofs_max_file_blocks.; |
| 286 | uint64_tcxx . . $ uint64_t# zisofs_max_file_blocks_defaultcxx . . $ XorrisO#zisofs_max_file_blocks_default.; |
| 287 | int zisofs_v2_block_sizecxx . . $ XorrisO#zisofs_v2_block_size.; |
| 288 | int zisofs_v2_block_size_defaultcxx . . $ XorrisO#zisofs_v2_block_size_default.; |
| 289 | int64_tcxx . . $ int64_t# zisofs_block_number_targetcxx . . $ XorrisO#zisofs_block_number_target.; |
| 290 | double zisofs_bpt_discard_free_ratiocxx . . $ XorrisO#zisofs_bpt_discard_free_ratio.; |
| 291 | double zisofs_bpt_discard_free_ratio_defaultcxx . . $ XorrisO#zisofs_bpt_discard_free_ratio_default.; |
| 292 | int zisofs_susp_z2cxx . . $ XorrisO#zisofs_susp_z2.; |
| 293 | int zisofs_susp_z2_defaultcxx . . $ XorrisO#zisofs_susp_z2_default.; |
| 294 | |
| 295 | int do_overwritecxx . . $ XorrisO#do_overwrite.; /* 0=off, 1=on, 2=nondir */ |
| 296 | int do_reassurecxx . . $ XorrisO#do_reassure.; /* 0=off, 1=on, 2=tree */ |
| 297 | |
| 298 | uint32_tcxx . . $ uint32_t# isofs_sizecxx . . $ XorrisO#isofs_size.; /* Size of loaded ISO filesystem */ |
| 299 | int isofs_has_whatcxx . . $ XorrisO#isofs_has_what.; /* bit0= hasRR |
| 300 | bit1= hasJoliet |
| 301 | bit2= hasIso1999 |
| 302 | bit3= hasElTorito |
| 303 | */ |
| 304 | int tree_loadedcxx . . $ XorrisO#tree_loaded.; /* 0= ISO 9660 , 1 = Joliet , 2 = ISO 9660:1999 */ |
| 305 | int rr_loadedcxx . . $ XorrisO#rr_loaded.; /* 1= Rock Ridge information was used, 0= Not */ |
| 306 | |
| 307 | char volid_pvdcxx . . $ XorrisO#volid_pvd.[33]; |
| 308 | char volid_jolietcxx . . $ XorrisO#volid_joliet.[33]; |
| 309 | char volid_1999cxx . . $ XorrisO#volid_1999.[33]; |
| 310 | char volid_hfspluscxx . . $ XorrisO#volid_hfsplus.[33]; |
| 311 | int volid_defaultcxx . . $ XorrisO#volid_default.; |
| 312 | char loaded_volid_pvdcxx . . $ XorrisO#loaded_volid_pvd.[33]; |
| 313 | char loaded_volid_jolietcxx . . $ XorrisO#loaded_volid_joliet.[33]; |
| 314 | char loaded_volid_1999cxx . . $ XorrisO#loaded_volid_1999.[33]; |
| 315 | char assert_volidcxx . . $ XorrisO#assert_volid.[SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; |
| 316 | char assert_volid_sevcxx . . $ XorrisO#assert_volid_sev.[80]; |
| 317 | |
| 318 | char preparer_idcxx . . $ XorrisO#preparer_id.[129]; |
| 319 | |
| 320 | char publishercxx . . $ XorrisO#publisher.[129]; |
| 321 | char application_idcxx . . $ XorrisO#application_id.[129]; |
| 322 | char system_idcxx . . $ XorrisO#system_id.[33]; |
| 323 | char volset_idcxx . . $ XorrisO#volset_id.[129]; |
| 324 | |
| 325 | char copyright_filecxx . . $ XorrisO#copyright_file.[38]; |
| 326 | char biblio_filecxx . . $ XorrisO#biblio_file.[38]; |
| 327 | char abstract_filecxx . . $ XorrisO#abstract_file.[38]; |
| 328 | |
| 329 | char application_usecxx . . $ XorrisO#application_use.[SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; |
| 330 | |
| 331 | char session_logfilecxx . . $ XorrisO#session_logfile.[SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; |
| 332 | off_tcxx . . $ off_t# session_lbacxx . . $ XorrisO#session_lba.; |
| 333 | off_tcxx . . $ off_t# session_blockscxx . . $ XorrisO#session_blocks.; |
| 334 | |
| 335 | /* >>> put libburn/isoburn aspects here */ |
| 336 | |
| 337 | struct Xorriso_lsTcxx . . $ Xorriso_lsT# *drive_blacklistcxx . . $ XorrisO#drive_blacklist.; |
| 338 | struct Xorriso_lsTcxx . . $ Xorriso_lsT# *drive_greylistcxx . . $ XorrisO#drive_greylist.; |
| 339 | struct Xorriso_lsTcxx . . $ Xorriso_lsT# *drive_whitelistcxx . . $ XorrisO#drive_whitelist.; |
| 340 | |
| 341 | int toc_emulation_flagcxx . . $ XorrisO#toc_emulation_flag.; /* bit0= bit3 for isoburn_drive_aquire() |
| 342 | scan -ROM profiles for ISO sessions |
| 343 | bit1= bit4 for isoburn_drive_aquire() |
| 344 | do not emulate TOC on overwritable media |
| 345 | bit2= bit7 for isoburn_drive_aquire() |
| 346 | pretend any media to be -ROM |
| 347 | bit3= bit9 for isoburn_drive_aquire() |
| 348 | Ignore enclosing session at LBA 0 |
| 349 | */ |
| 350 | |
| 351 | int image_start_modecxx . . $ XorrisO#image_start_mode.; /* From what address to load the ISO image |
| 352 | bit0-15= addressing mode |
| 353 | 0= automatic lba as deduced from media |
| 354 | 1= value is session number |
| 355 | 2= value is track number |
| 356 | 3= value is lba |
| 357 | 4= value is volid |
| 358 | bit16= with mode 3 : value is possibly 16 too high. |
| 359 | Let isoburn_set_msc1() adjust it. |
| 360 | bit30= interference with normal msc1 processing |
| 361 | is enabled. Without this bit, |
| 362 | isoburn_set_msc1() will not be called. |
| 363 | bit31= image loading has happened, |
| 364 | setting is kept for rollback only. |
| 365 | Always apply as 0=auto. |
| 366 | */ |
| 367 | char image_start_valuecxx . . $ XorrisO#image_start_value.[81]; /* value according image_start_mode */ |
| 368 | |
| 369 | uint32_tcxx . . $ uint32_t# displacementcxx . . $ XorrisO#displacement.; |
| 370 | int displacement_signcxx . . $ XorrisO#displacement_sign.; |
| 371 | |
| 372 | int read_fscxx . . $ XorrisO#read_fs.; /* bit0=norock , bit1=nojoliet */ |
| 373 | |
| 374 | int drives_exclusivecxx . . $ XorrisO#drives_exclusive.; /* burn_preset_device_open() param exclusive */ |
| 375 | int drives_accesscxx . . $ XorrisO#drives_access.; /* 0=readonly , 1=unrestricted */ |
| 376 | |
| 377 | int linux_scsi_dev_familycxx . . $ XorrisO#linux_scsi_dev_family.; /* 0= default, 1= sr, 2= scd, (3= st), 4= sg */ |
| 378 | |
| 379 | int early_stdio_testcxx . . $ XorrisO#early_stdio_test.; /* For burn_allow_drive_role_4(): |
| 380 | bit1= Test whether a stdio drive can be opened for |
| 381 | read-write resp. read-only resp. write only. |
| 382 | bit2= Classify files which cannot be opened at all |
| 383 | as role 0 : useless dummy. |
| 384 | bit3= Classify non-empty role 5 drives as |
| 385 | BURN_DISC_APPENDABLE with NWA after the |
| 386 | end of the file. It is nevertheless |
| 387 | possible to change this address by call |
| 388 | burn_write_opts_set_start_byte(). |
| 389 | */ |
| 390 | |
| 391 | int cache_num_tilescxx . . $ XorrisO#cache_num_tiles.; /* -data_cache_size */ |
| 392 | int cache_tile_blockscxx . . $ XorrisO#cache_tile_blocks.; |
| 393 | int cache_defaultcxx . . $ XorrisO#cache_default.; /* bit0= cache_num_tiles, bit1= cache_tile_blocks */ |
| 394 | |
| 395 | int do_calm_drivecxx . . $ XorrisO#do_calm_drive.; /* bit0= calm down drive after acquiring it |
| 396 | bit1= do not calm down drive when giving it up |
| 397 | (The combination of bit0 and bit1 is yet undefined) |
| 398 | */ |
| 399 | |
| 400 | char indevcxx . . $ XorrisO#indev.[SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; |
| 401 | void *in_drive_handlecxx . . $ XorrisO#in_drive_handle.; /* interpreted only by libburnia oriented modules */ |
| 402 | void *in_volset_handlecxx . . $ XorrisO#in_volset_handle.; /* interpreted only by libburnia oriented modules */ |
| 403 | char *in_charsetcxx . . $ XorrisO#in_charset.; /* The charset to interpret the filename bytes */ |
| 404 | int indev_is_exclusivecxx . . $ XorrisO#indev_is_exclusive.; |
| 405 | int indev_accesscxx . . $ XorrisO#indev_access.; /* see drives_access */ |
| 406 | char indev_off_adrcxx . . $ XorrisO#indev_off_adr.[SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; /* Result of burn_drive_convert_fs_adr(indev) |
| 407 | when indev gets acquired. */ |
| 408 | int indev_md5_was_oncxx . . $ XorrisO#indev_md5_was_on.; /* Value of (xorriso->do_md5 & 1) when the in_drive |
| 409 | was acquired |
| 410 | */ |
| 411 | |
| 412 | time_tcxx . . $ time_t# isofs_st_outcxx . . $ XorrisO#isofs_st_out.; /* A time point at least 1 second before image |
| 413 | composition began. To be stored with image as |
| 414 | xattr "isofs.st". */ |
| 415 | time_tcxx . . $ time_t# isofs_st_incxx . . $ XorrisO#isofs_st_in.; /* That time point as read from "isofs.st" of the |
| 416 | loaded image. */ |
| 417 | |
| 418 | int volset_change_pendingcxx . . $ XorrisO#volset_change_pending.; /* whether -commit would make sense |
| 419 | 0= no change pending |
| 420 | 1= change pending |
| 421 | 2= change pending, but -as misofs -print-size |
| 422 | was performed on the changed image model |
| 423 | 3= change pending, but the attempt to write it |
| 424 | failed |
| 425 | */ |
| 426 | int commit_attemptscxx . . $ XorrisO#commit_attempts.; /* For Xorriso_change_is_pending bit1 */ |
| 427 | int print_size_attemptscxx . . $ XorrisO#print_size_attempts.; /* For Xorriso_change_is_pending bit1 */ |
| 428 | int write_session_countercxx . . $ XorrisO#write_session_counter.; /* For Xorriso_change_is_pending bit1 */ |
| 429 | int print_size_countercxx . . $ XorrisO#print_size_counter.; /* For Xorriso_change_is_pending bit1 */ |
| 430 | |
| 431 | int no_volset_presentcxx . . $ XorrisO#no_volset_present.; /* set to 1 on first failure */ |
| 432 | |
| 433 | struct CheckmediajoBcxx . . $ CheckmediajoB# *check_media_defaultcxx . . $ XorrisO#check_media_default.; |
| 434 | int check_media_bad_limitcxx . . $ XorrisO#check_media_bad_limit.; /* values defined as Xorriso_read_quality_* */ |
| 435 | struct SectorbitmaPcxx . . $ SectorbitmaP# *in_sector_mapcxx . . $ XorrisO#in_sector_map.; /* eventual sector validity bitmap */ |
| 436 | |
| 437 | |
| 438 | char outdevcxx . . $ XorrisO#outdev.[SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; |
| 439 | void *out_drive_handlecxx . . $ XorrisO#out_drive_handle.; /* interpreted only by xorrisoburn.c */ |
| 440 | char *out_charsetcxx . . $ XorrisO#out_charset.; /* The charset to produce the filename bytes for */ |
| 441 | int dev_fd_1cxx . . $ XorrisO#dev_fd_1.; /* The fd which substitutes for /dev/fd/1 and is |
| 442 | connected to externaly perveived stdout. |
| 443 | */ |
| 444 | int outdev_is_exclusivecxx . . $ XorrisO#outdev_is_exclusive.; |
| 445 | int outdev_accesscxx . . $ XorrisO#outdev_access.; /* see drives_access */ |
| 446 | char outdev_off_adrcxx . . $ XorrisO#outdev_off_adr.[SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; /* Result of burn_drive_convert_fs_adr(outdev) |
| 447 | when outdev gets acquired. */ |
| 448 | |
| 449 | off_tcxx . . $ off_t# grow_blindly_msc2cxx . . $ XorrisO#grow_blindly_msc2.; /* if >= 0 this causes growing from drive to drive. |
| 450 | The value is used as block address offset for |
| 451 | image generation. Like in: mkisofs -C msc1,msc2 |
| 452 | */ |
| 453 | |
| 454 | int ban_stdio_writecxx . . $ XorrisO#ban_stdio_write.; |
| 455 | int do_dummycxx . . $ XorrisO#do_dummy.; |
| 456 | int perform_opccxx . . $ XorrisO#perform_opc.; /* 0= no explicit OPC |
| 457 | 1= OPC as of growisofs tradition: |
| 458 | Only with DVD-R[W], |
| 459 | only if burn_drive.num_opc_tables is 0 |
| 460 | 2= unconditional OPC on all media types |
| 461 | */ |
| 462 | int do_closecxx . . $ XorrisO#do_close.; |
| 463 | int auto_closecxx . . $ XorrisO#auto_close.; /* Whether to let do_close depend on media state */ |
| 464 | |
| 465 | int write_speedcxx . . $ XorrisO#write_speed.; /* Write speed in libburn units : 1000 bytes/second , |
| 466 | 0 = Max, -1 = Min, -2= do not set */ |
| 467 | int read_speedcxx . . $ XorrisO#read_speed.; /* Read speed. See above */ |
| 468 | int read_speed_forcecxx . . $ XorrisO#read_speed_force.; /* >0 : use burn_nominal_slowdown() in |
| 469 | Xorriso_check_interval() */ |
| 470 | int read_speed_corrcxx . . $ XorrisO#read_speed_corr.; /* parameter max_corr for burn_nominal_slowdown */ |
| 471 | |
| 472 | int fscxx . . $ XorrisO#fs.; /* fifo size in 2048 byte chunks : at most 1 GB */ |
| 473 | int paddingcxx . . $ XorrisO#padding.; /* number of bytes to add after ISO 9660 image */ |
| 474 | int do_padding_by_libisofscxx . . $ XorrisO#do_padding_by_libisofs.; /* 0= by libburn , 1= by libisofs */ |
| 475 | |
| 476 | int alignmentcxx . . $ XorrisO#alignment.; /* if > 0 : output size alignment in 2048 byte blocks. |
| 477 | This is always done by libburn, i.e. attached |
| 478 | outside the image. Eventual inner alignment of |
| 479 | the image end happens first. |
| 480 | */ |
| 481 | |
| 482 | int do_stream_recordingcxx . . $ XorrisO#do_stream_recording.; /* 0=no, 1=yes, 2=for data, not for dir |
| 483 | >=16 means yes with number as start LBA */ |
| 484 | |
| 485 | int dvd_obscxx . . $ XorrisO#dvd_obs.; /* DVD write chunk size: 0, 32k or 64k */ |
| 486 | int do_obs_padcxx . . $ XorrisO#do_obs_pad.; /* 1= pad up end on all media types */ |
| 487 | |
| 488 | int bdr_obs_exemptcxx . . $ XorrisO#bdr_obs_exempt.; /* 1= do not unconditionally apply do_obs_pad=1 |
| 489 | to BD-R if not stream recording |
| 490 | */ |
| 491 | |
| 492 | int modesty_on_drivecxx . . $ XorrisO#modesty_on_drive.; /* "enable" of burn_drive_set_buffer_waiting() |
| 493 | 0= disable , 1= enable waiting , |
| 494 | (-1 = do not change setting) |
| 495 | */ |
| 496 | int min_buffer_useccxx . . $ XorrisO#min_buffer_usec.; /* The other parameters for this function */ |
| 497 | int max_buffer_useccxx . . $ XorrisO#max_buffer_usec.; |
| 498 | int buffer_timeout_seccxx . . $ XorrisO#buffer_timeout_sec.; |
| 499 | int min_buffer_percentcxx . . $ XorrisO#min_buffer_percent.; |
| 500 | int max_buffer_percentcxx . . $ XorrisO#max_buffer_percent.; |
| 501 | |
| 502 | int use_immed_bitcxx . . $ XorrisO#use_immed_bit.; /* 1= on , 0= default , -1 = off */ |
| 503 | int use_immed_bit_defaultcxx . . $ XorrisO#use_immed_bit_default.; /* 1= on , 0= yet undefined , -1 = off */ |
| 504 | |
| 505 | int stdio_synccxx . . $ XorrisO#stdio_sync.; /* stdio fsync interval: -1, 0, >=32 */ |
| 506 | int stdio_sync_is_defaultcxx . . $ XorrisO#stdio_sync_is_default.; /* 1= is still default , 0= has been set */ |
| 507 | |
| 508 | int keep_boot_imagecxx . . $ XorrisO#keep_boot_image.; |
| 509 | char boot_image_cat_pathcxx . . $ XorrisO#boot_image_cat_path.[SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; |
| 510 | int boot_image_cat_hiddencxx . . $ XorrisO#boot_image_cat_hidden.; /* bit0= hidden in ISO/RR , bit1= in Joliet , |
| 511 | bit2= in HFS+ */ |
| 512 | int boot_countcxx . . $ XorrisO#boot_count.; /* number of already attached boot images */ |
| 513 | |
| 514 | char boot_image_bin_pathcxx . . $ XorrisO#boot_image_bin_path.[SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; |
| 515 | char boot_image_bin_formcxx . . $ XorrisO#boot_image_bin_form.[16]; |
| 516 | int boot_platform_idcxx . . $ XorrisO#boot_platform_id.; |
| 517 | int patch_isolinux_imagecxx . . $ XorrisO#patch_isolinux_image.; /* bit0= boot-info-table , bit1= not with EFI |
| 518 | bit2-7= Mentioning in isohybrid GPT |
| 519 | 1=EFI, 2=HFS+ |
| 520 | bit8= Mention in isohybrid Apple Partition Map |
| 521 | bit9= GRUB2 boot provisions (patch at byte 1012) |
| 522 | */ |
| 523 | int boot_image_emulcxx . . $ XorrisO#boot_image_emul.; /* 0=no emulation |
| 524 | 1=emulation as hard disk |
| 525 | 2=emulation as floppy |
| 526 | */ |
| 527 | int boot_emul_defaultcxx . . $ XorrisO#boot_emul_default.; /* 1= boot_image_emul is still default */ |
| 528 | off_tcxx . . $ off_t# boot_image_load_sizecxx . . $ XorrisO#boot_image_load_size.; |
| 529 | int boot_img_size_defaultcxx . . $ XorrisO#boot_img_size_default.; /* 1= boot_image_load_size is still default */ |
| 530 | int boot_img_full_sizecxx . . $ XorrisO#boot_img_full_size.; /* 1= override boot_image_load_size by image size */ |
| 531 | unsigned char boot_id_stringcxx . . $ XorrisO#boot_id_string.[29]; |
| 532 | unsigned char boot_selection_critcxx . . $ XorrisO#boot_selection_crit.[21]; |
| 533 | |
| 534 | int boot_image_isohybridcxx . . $ XorrisO#boot_image_isohybrid.; /* 0=off , deprecated: 1=auto , 2=on , 3=force */ |
| 535 | |
| 536 | int boot_efi_defaultcxx . . $ XorrisO#boot_efi_default.; /* 0= no effect , |
| 537 | 1= apply --efi-boot parameters when attaching to img |
| 538 | */ |
| 539 | |
| 540 | char system_area_disk_pathcxx . . $ XorrisO#system_area_disk_path.[SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; |
| 541 | int system_area_clear_loadedcxx . . $ XorrisO#system_area_clear_loaded.; |
| 542 | int system_area_optionscxx . . $ XorrisO#system_area_options.; /* bit0= "GRUB protective msdos label" |
| 543 | (a simple partition table) |
| 544 | bit1= isohybrid boot image pointer |
| 545 | and partition table |
| 546 | bit2-7= System area type |
| 547 | 0= with bit0 or bit1: MBR |
| 548 | else: unspecified type |
| 549 | 1= MIPS Big Endian Volume Header |
| 550 | 2= MIPS Little Endian Boot Block |
| 551 | 3= SUN Disk Label for SUN SPARC |
| 552 | 4= HP-PA PALO boot sector |
| 553 | header version 4 |
| 554 | 5= HP-PA PALO boot sector |
| 555 | header version 5 |
| 556 | bit8-9= Only with System area type 0 |
| 557 | Cylinder alignment mode |
| 558 | 0 = auto (align if bit1) |
| 559 | 1 = always align |
| 560 | 2 = never align |
| 561 | 3 = align external partitions |
| 562 | bit10-13= System area sub type |
| 563 | With type 0 = MBR: |
| 564 | Gets overridden by bit0 and bit1. |
| 565 | 0 = no particular sub type |
| 566 | 1 = CHRP: A single MBR partition |
| 567 | of type 0x96 covers the ISO |
| 568 | image. Not compatible with |
| 569 | any other feature which |
| 570 | needs to have own MBR |
| 571 | partition entries. |
| 572 | 2 = generic MBR |
| 573 | bit14= Only with System area type 0 |
| 574 | GRUB2 boot provisions: |
| 575 | Patch system area at byte 92 to |
| 576 | 99 with 512-block address + 1 |
| 577 | of the first boot image file. |
| 578 | Little-endian 8-byte. |
| 579 | Should be combined with |
| 580 | options bit0. |
| 581 | bit15= Only with MBR: |
| 582 | Enforce MBR "bootable/active" |
| 583 | flag. In worst case by dummy |
| 584 | partition of type 0x00 which |
| 585 | occupies block 0. |
| 586 | */ |
| 587 | int patch_system_areacxx . . $ XorrisO#patch_system_area.; /* Bits as of system_area_options. |
| 588 | to be applied to the loaded system |
| 589 | area of the image, if no |
| 590 | system_area_disk_path and no |
| 591 | system_area_options are set. |
| 592 | */ |
| 593 | |
| 594 | /* The number of unclaimed 2K blocks before start of partition 1 as of |
| 595 | the MBR in system area. |
| 596 | If not 0 this will cause double volume descriptor sets and double tree. |
| 597 | */ |
| 598 | uint32_tcxx . . $ uint32_t# partition_offsetcxx . . $ XorrisO#partition_offset.; |
| 599 | /* Partition table parameter: 1 to 63, 0= disabled/default */ |
| 600 | int partition_secs_per_headcxx . . $ XorrisO#partition_secs_per_head.; |
| 601 | /* 1 to 255, 0= disabled/default */ |
| 602 | int partition_heads_per_cylcxx . . $ XorrisO#partition_heads_per_cyl.; |
| 603 | |
| 604 | /* Disk file paths of content of PreP partition and EFI system partition */ |
| 605 | char prep_partitioncxx . . $ XorrisO#prep_partition.[SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; |
| 606 | char efi_boot_partitioncxx . . $ XorrisO#efi_boot_partition.[SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; |
| 607 | |
| 608 | /* Path and type of image files to be appended as MBR partitions */ |
| 609 | char *appended_partitionscxx . . $ XorrisO#appended_partitions.[Xorriso_max_appended_partitionScxx . . $ `xorriso/xorriso_private.h:85:9`!]; |
| 610 | uint8_tcxx . . $ uint8_t# appended_part_typescxx . . $ XorrisO#appended_part_types.[Xorriso_max_appended_partitionScxx . . $ `xorriso/xorriso_private.h:85:9`!]; |
| 611 | uint8_tcxx . . $ uint8_t# appended_part_type_guidscxx . . $ XorrisO#appended_part_type_guids.[Xorriso_max_appended_partitionScxx . . $ `xorriso/xorriso_private.h:85:9`!][16]; |
| 612 | /* Flags in case that appended partitions show up in GPT: |
| 613 | bit0= appended_part_type_guids is valid |
| 614 | */ |
| 615 | uint8_tcxx . . $ uint8_t# appended_part_gpt_flagscxx . . $ XorrisO#appended_part_gpt_flags.[Xorriso_max_appended_partitionScxx . . $ `xorriso/xorriso_private.h:85:9`!]; |
| 616 | /* If 1: With appended partitions: create protective MBR and mark by GPT */ |
| 617 | int appended_as_gptcxx . . $ XorrisO#appended_as_gpt.; |
| 618 | /* If 1: With appended partitions: mark by APM */ |
| 619 | int appended_as_apmcxx . . $ XorrisO#appended_as_apm.; |
| 620 | |
| 621 | /* If 1: Apply isohybrid gestures to non-isohybrid situations */ |
| 622 | int part_like_isohybridcxx . . $ XorrisO#part_like_isohybrid.; |
| 623 | |
| 624 | /* MBR partition type of ISO filesystem partition or protective partition |
| 625 | if not real GPT or CHRP. |
| 626 | */ |
| 627 | int iso_mbr_part_typecxx . . $ XorrisO#iso_mbr_part_type.; |
| 628 | uint8_tcxx . . $ uint8_t# iso_gpt_type_guidcxx . . $ XorrisO#iso_gpt_type_guid.[16]; |
| 629 | int iso_mbr_part_flagcxx . . $ XorrisO#iso_mbr_part_flag.; |
| 630 | /* Flags in case that the partition table is GPT: |
| 631 | bit0= iso_gpt_type_guid is valid |
| 632 | bit1= gaps in the image coverage are allowed |
| 633 | bit2= with bit1: do not sort GPT partition array by start block |
| 634 | bit3= with bit1: do not create partition 1 for ISO filesystem |
| 635 | */ |
| 636 | |
| 637 | /* See libisoburn.h isoburn_igopt_set_gpt_guid() */ |
| 638 | uint8_tcxx . . $ uint8_t# gpt_guidcxx . . $ XorrisO#gpt_guid.[16]; |
| 639 | int gpt_guid_modecxx . . $ XorrisO#gpt_guid_mode.; |
| 640 | |
| 641 | /* See libisoburn.h isoburn_igopt_set_max_ce_entries() */ |
| 642 | uint32_tcxx . . $ uint32_t# max_ce_entriescxx . . $ XorrisO#max_ce_entries.; |
| 643 | uint32_tcxx . . $ uint32_t# max_ce_entries_flagcxx . . $ XorrisO#max_ce_entries_flag.; |
| 644 | |
| 645 | /* Eventual name of the non-ISO aspect of the image. E.g. SUN ASCII label. |
| 646 | */ |
| 647 | char ascii_disc_labelcxx . . $ XorrisO#ascii_disc_label.[Xorriso_disc_label_sizEcxx . . $ `xorriso/xorriso_private.h:91:9`!]; |
| 648 | |
| 649 | /* A data file of which the position and size shall be written after |
| 650 | a SUN Disk Label. |
| 651 | */ |
| 652 | char grub2_sparc_corecxx . . $ XorrisO#grub2_sparc_core.[SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; |
| 653 | |
| 654 | /* HFS+ image serial number. |
| 655 | 00...00 means that it shall be generated by libisofs. |
| 656 | */ |
| 657 | uint8_tcxx . . $ uint8_t# hfsp_serial_numbercxx . . $ XorrisO#hfsp_serial_number.[8]; |
| 658 | |
| 659 | /* Allocation block size of HFS+ and APM : 0= auto , 512, or 2048 |
| 660 | */ |
| 661 | int hfsp_block_sizecxx . . $ XorrisO#hfsp_block_size.; |
| 662 | int apm_block_sizecxx . . $ XorrisO#apm_block_size.; |
| 663 | |
| 664 | /* User settable PVD time stamps */ |
| 665 | time_tcxx . . $ time_t# vol_creation_timecxx . . $ XorrisO#vol_creation_time.; |
| 666 | time_tcxx . . $ time_t# vol_modification_timecxx . . $ XorrisO#vol_modification_time.; |
| 667 | time_tcxx . . $ time_t# vol_expiration_timecxx . . $ XorrisO#vol_expiration_time.; |
| 668 | time_tcxx . . $ time_t# vol_effective_timecxx . . $ XorrisO#vol_effective_time.; |
| 669 | /* To eventually override vol_modification_time by unconverted string |
| 670 | and timezone 0 */ |
| 671 | char vol_uuidcxx . . $ XorrisO#vol_uuid.[17]; |
| 672 | /* To flatly set all file timestamps to the same value |
| 673 | Special value: "set_to_mtime", see -find action "set_to_mtime" |
| 674 | */ |
| 675 | char all_file_datescxx . . $ XorrisO#all_file_dates.[80]; |
| 676 | |
| 677 | /* Timestamp for ISO files which have no origin file on disk and thus |
| 678 | normally get time(NULL) as timestamps |
| 679 | */ |
| 680 | int do_override_now_timecxx . . $ XorrisO#do_override_now_time.; |
| 681 | time_tcxx . . $ time_t# now_time_overridecxx . . $ XorrisO#now_time_override.; |
| 682 | |
| 683 | #ifdef Xorriso_with_libjtEcxx . . $ `<built-in>:444:9`! |
| 684 | /* Parameters and state of Jigdo Template Export environment */ |
| 685 | struct libjte_envcxx . . $ libjte_env# *libjte_handlecxx . . $ XorrisO#libjte_handle.; |
| 686 | #endif |
| 687 | |
| 688 | /* List of -jigdo parameters since the most recent -jigdo clear */ |
| 689 | struct Xorriso_lsTcxx . . $ Xorriso_lsT# *jigdo_paramscxx . . $ XorrisO#jigdo_params.; |
| 690 | struct Xorriso_lsTcxx . . $ Xorriso_lsT# *jigdo_valuescxx . . $ XorrisO#jigdo_values.; |
| 691 | int libjte_params_givencxx . . $ XorrisO#libjte_params_given.; /* bits: 0= outfile , 1= verbosity , 2= template_path |
| 692 | 3= jigdo_path , 4= checksum_path |
| 693 | 5= min_size , 6= checksum_iso |
| 694 | 7= checksum_template , 8= compression |
| 695 | 9= exclude , 10= demand_checksum |
| 696 | 11= mapping , 12= checksum_algorithm |
| 697 | */ |
| 698 | |
| 699 | /* LBA of boot image after image loading */ |
| 700 | off_tcxx . . $ off_t# loaded_boot_bin_lbacxx . . $ XorrisO#loaded_boot_bin_lba.; |
| 701 | /* Path of the catalog node after image loading */ |
| 702 | char loaded_boot_cat_pathcxx . . $ XorrisO#loaded_boot_cat_path.[SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; |
| 703 | |
| 704 | /* XORRISO options */ |
| 705 | int allow_graft_pointscxx . . $ XorrisO#allow_graft_points.; /* if not zero: yes |
| 706 | special options: |
| 707 | bit1= unescape '\\' too, |
| 708 | continue unescaping after first real '=' |
| 709 | */ |
| 710 | |
| 711 | int allow_restorecxx . . $ XorrisO#allow_restore.; /* -2=disallowed until special mode "unblock" |
| 712 | -1=permanently disallowed |
| 713 | 0=disallowed, 1=allowed, 2=device files allowed */ |
| 714 | int do_concat_splitcxx . . $ XorrisO#do_concat_split.; /* 1= restore complete split file directories as |
| 715 | regular files |
| 716 | */ |
| 717 | int do_auto_chmodcxx . . $ XorrisO#do_auto_chmod.; /* 1= eventually temporarily open access permissions |
| 718 | of self-owned directories during restore |
| 719 | */ |
| 720 | int do_restore_sort_lbacxx . . $ XorrisO#do_restore_sort_lba.; /* 1= restore via node_array rather than via |
| 721 | tree traversal. Better read performance, |
| 722 | no directory mtime restore, needs do_auto_chmod |
| 723 | */ |
| 724 | int do_strict_aclcxx . . $ XorrisO#do_strict_acl.; /* bit0= do not tolerate inappropriate presence or |
| 725 | absence of directory "default" ACL |
| 726 | */ |
| 727 | |
| 728 | int mount_opts_flagcxx . . $ XorrisO#mount_opts_flag.; /* bit0= "shared" = not "exclusive" |
| 729 | Try to emit non-exclusive mount command. |
| 730 | Do not give up drives. |
| 731 | Linux: use loop device even on block devices |
| 732 | in order to circumvent the ban to mount a |
| 733 | device twice (with different sbsector=) |
| 734 | FreeBSD: ? |
| 735 | */ |
| 736 | |
| 737 | int dialogcxx . . $ XorrisO#dialog.; /* 0=off , 1=single-line , 2=multi-line */ |
| 738 | |
| 739 | struct Xorriso_lsTcxx . . $ Xorriso_lsT# *buffered_dialogcxx . . $ XorrisO#buffered_dialog.; /* If not NULL : read by dialog */ |
| 740 | |
| 741 | int bsl_interpretationcxx . . $ XorrisO#bsl_interpretation.; |
| 742 | /* whether to run input through Sfile_bsl_interpreter(): |
| 743 | bit0-1= dialog and quoted file reading |
| 744 | 0= no interpretation, leave unchanged |
| 745 | 1= only inside double quotes |
| 746 | 2= outside single quotes |
| 747 | 3= everywhere |
| 748 | bit2-3= reserved as future expansion of bit0-1 |
| 749 | bit4= interpretation within program start arguments |
| 750 | bit5= perform backslash encoding with results |
| 751 | bit6= perform backslash encoding with info texts |
| 752 | */ |
| 753 | |
| 754 | int sh_style_resultcxx . . $ XorrisO#sh_style_result.; /* Whether not to wrap into quotation marks the file |
| 755 | addresses reported by: |
| 756 | pwd pwdx ls lsd lsl lsdl lsx lsdx lslx lsdlx |
| 757 | du dus dux dusx findx find |
| 758 | and to make du* numbers left adjusted, |
| 759 | and not to append "/" to pwd* |
| 760 | */ |
| 761 | |
| 762 | /* Pattern matching facility. It still carries legacy from scdbackup/askme.c |
| 763 | but is fully functional for xorriso. |
| 764 | */ |
| 765 | int search_modecxx . . $ XorrisO#search_mode.; |
| 766 | /* 0= start text |
| 767 | 1= fgrep , |
| 768 | 2= regular expression |
| 769 | 3= (eventually structured) shell parser expression |
| 770 | 4= shell parser expression for leaf name |
| 771 | */ |
| 772 | |
| 773 | int structured_searchcxx . . $ XorrisO#structured_search.; |
| 774 | /* 0= flat text search |
| 775 | 1= '/' is a significant separator that cannot be matched by wildcards |
| 776 | ( 2= like 1 : but report only occurrence in tree, no payload, no location ) |
| 777 | ( 3= like 2 : but report first content level of matching directories ) |
| 778 | 4= actually not structured but unique find mode (with search_mode 4) |
| 779 | */ |
| 780 | |
| 781 | int do_iso_rr_patterncxx . . $ XorrisO#do_iso_rr_pattern.; /* 0=off, 1=on, 2=ls */ |
| 782 | int do_disk_patterncxx . . $ XorrisO#do_disk_pattern.; /* 0=off, 1=on, 2=ls */ |
| 783 | |
| 784 | int temp_mem_limitcxx . . $ XorrisO#temp_mem_limit.; |
| 785 | |
| 786 | off_tcxx . . $ off_t# file_size_limitcxx . . $ XorrisO#file_size_limit.; |
| 787 | int file_name_limitcxx . . $ XorrisO#file_name_limit.; |
| 788 | |
| 789 | struct ExclusionScxx . . $ ExclusionS# *disk_exclusionscxx . . $ XorrisO#disk_exclusions.; |
| 790 | int disk_excl_modecxx . . $ XorrisO#disk_excl_mode.; /* bit0= on (else off) |
| 791 | bit1= parameter too (else recursion only) |
| 792 | bit2= whole subtree banned (else only exact path) |
| 793 | bit3= when comparing ignore excluded files rather |
| 794 | than to treat them as truly missing on disk |
| 795 | */ |
| 796 | |
| 797 | struct ExclusionScxx . . $ ExclusionS# *iso_rr_hidingscxx . . $ XorrisO#iso_rr_hidings.; |
| 798 | struct ExclusionScxx . . $ ExclusionS# *joliet_hidingscxx . . $ XorrisO#joliet_hidings.; |
| 799 | struct ExclusionScxx . . $ ExclusionS# *hfsplus_hidingscxx . . $ XorrisO#hfsplus_hidings.; |
| 800 | |
| 801 | int use_stdincxx . . $ XorrisO#use_stdin.; /* use raw stdin even if readline support is compiled */ |
| 802 | int tolerate_stdin_eofcxx . . $ XorrisO#tolerate_stdin_eof.; /* Do not abort on EOF in Xorriso_dialog_input |
| 803 | but rather return -2. */ |
| 804 | int result_page_lengthcxx . . $ XorrisO#result_page_length.; |
| 805 | int result_page_widthcxx . . $ XorrisO#result_page_width.; |
| 806 | char mark_textcxx . . $ XorrisO#mark_text.[SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; /* ( stdout+stderr, M: ) */ |
| 807 | int packet_outputcxx . . $ XorrisO#packet_output.; |
| 808 | char logfilecxx . . $ XorrisO#logfile.[4][SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; |
| 809 | FILEcxx . . $ FILE# *logfile_fpcxx . . $ XorrisO#logfile_fp.[4]; |
| 810 | FILEcxx . . $ FILE# *pktlog_fpcxx . . $ XorrisO#pktlog_fp.; |
| 811 | FILEcxx . . $ FILE# *stderr_fpcxx . . $ XorrisO#stderr_fp.; |
| 812 | struct Xorriso_lsTcxx . . $ Xorriso_lsT# *result_msglistscxx . . $ XorrisO#result_msglists.[Xorriso_max_outlist_stacKcxx . . $ `xorriso/xorriso.h:1008:9`!]; |
| 813 | struct Xorriso_lsTcxx . . $ Xorriso_lsT# *info_msglistscxx . . $ XorrisO#info_msglists.[Xorriso_max_outlist_stacKcxx . . $ `xorriso/xorriso.h:1008:9`!]; |
| 814 | int msglist_flagscxx . . $ XorrisO#msglist_flags.[Xorriso_max_outlist_stacKcxx . . $ `xorriso/xorriso.h:1008:9`!]; /* bit0= result is redirected |
| 815 | bit1= info is redirected |
| 816 | */ |
| 817 | int msglist_stackfillcxx . . $ XorrisO#msglist_stackfill.; |
| 818 | |
| 819 | int lib_msg_queue_lock_inicxx . . $ XorrisO#lib_msg_queue_lock_ini.; |
| 820 | int result_msglists_lock_inicxx . . $ XorrisO#result_msglists_lock_ini.; |
| 821 | pthread_mutex_tcxx . . $ pthread_mutex_t# lib_msg_queue_lockcxx . . $ XorrisO#lib_msg_queue_lock.; |
| 822 | pthread_mutex_tcxx . . $ pthread_mutex_t# result_msglists_lockcxx . . $ XorrisO#result_msglists_lock.; |
| 823 | |
| 824 | int write_to_channel_lock_inicxx . . $ XorrisO#write_to_channel_lock_ini.; |
| 825 | pthread_mutex_tcxx . . $ pthread_mutex_t# write_to_channel_lockcxx . . $ XorrisO#write_to_channel_lock.; |
| 826 | |
| 827 | int msg_watcher_lock_inicxx . . $ XorrisO#msg_watcher_lock_ini.; |
| 828 | pthread_mutex_tcxx . . $ pthread_mutex_t# msg_watcher_lockcxx . . $ XorrisO#msg_watcher_lock.; |
| 829 | int msg_watcher_statecxx . . $ XorrisO#msg_watcher_state.; /* 0= inactive |
| 830 | 1= registered |
| 831 | 2= started |
| 832 | 3= request to end |
| 833 | */ |
| 834 | int (*msgw_result_handlercxx . . $ XorrisO#msgw_result_handler.)(void *handle, char *text); |
| 835 | void *msgw_result_handlecxx . . $ XorrisO#msgw_result_handle.; |
| 836 | int (*msgw_info_handlercxx . . $ XorrisO#msgw_info_handler.)(void *handle, char *text); |
| 837 | void *msgw_info_handlecxx . . $ XorrisO#msgw_info_handle.; |
| 838 | int msgw_stack_handlecxx . . $ XorrisO#msgw_stack_handle.; |
| 839 | int msgw_msg_pendingcxx . . $ XorrisO#msgw_msg_pending.; /* 0=no, 1=fetching(i.e. maybe) , 2=yes */ |
| 840 | int msgw_fetch_lock_inicxx . . $ XorrisO#msgw_fetch_lock_ini.; |
| 841 | pthread_mutex_tcxx . . $ pthread_mutex_t# msgw_fetch_lockcxx . . $ XorrisO#msgw_fetch_lock.; |
| 842 | |
| 843 | struct Xorriso_msg_sievEcxx . . $ Xorriso_msg_sievE# *msg_sievecxx . . $ XorrisO#msg_sieve.; |
| 844 | int msg_sieve_disabledcxx . . $ XorrisO#msg_sieve_disabled.; |
| 845 | |
| 846 | int status_history_maxcxx . . $ XorrisO#status_history_max.; /* for -status long_history */ |
| 847 | |
| 848 | /* 0= no logging of SCSI commands, 1= to stderr */ |
| 849 | int scsi_logcxx . . $ XorrisO#scsi_log.; |
| 850 | |
| 851 | char report_about_textcxx . . $ XorrisO#report_about_text.[20]; |
| 852 | int report_about_severitycxx . . $ XorrisO#report_about_severity.; |
| 853 | int library_msg_direct_printcxx . . $ XorrisO#library_msg_direct_print.; |
| 854 | char abort_on_textcxx . . $ XorrisO#abort_on_text.[20]; |
| 855 | int abort_on_severitycxx . . $ XorrisO#abort_on_severity.; /* A severity rank number as threshold */ |
| 856 | int abort_on_is_defaultcxx . . $ XorrisO#abort_on_is_default.; /* will be set to 0 by first -abort_on */ |
| 857 | int problem_statuscxx . . $ XorrisO#problem_status.; /* Severity rank number. 0= no abort condition present */ |
| 858 | char problem_status_textcxx . . $ XorrisO#problem_status_text.[20]; |
| 859 | int problem_status_lock_inicxx . . $ XorrisO#problem_status_lock_ini.; |
| 860 | pthread_mutex_tcxx . . $ pthread_mutex_t# problem_status_lockcxx . . $ XorrisO#problem_status_lock.; |
| 861 | |
| 862 | char errfile_logcxx . . $ XorrisO#errfile_log.[SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; /* for -errfile_log */ |
| 863 | int errfile_modecxx . . $ XorrisO#errfile_mode.; /* bit0= marked */ |
| 864 | FILEcxx . . $ FILE# *errfile_fpcxx . . $ XorrisO#errfile_fp.; |
| 865 | |
| 866 | int img_read_error_modecxx . . $ XorrisO#img_read_error_mode.; /* 0=best_effort , 1=failure , 2=fatal */ |
| 867 | int extract_error_modecxx . . $ XorrisO#extract_error_mode.; /* 0=best_effort , 1=keep , 2=delete */ |
| 868 | |
| 869 | char return_with_textcxx . . $ XorrisO#return_with_text.[20]; |
| 870 | int return_with_severitycxx . . $ XorrisO#return_with_severity.; |
| 871 | int return_with_valuecxx . . $ XorrisO#return_with_value.; |
| 872 | int eternal_problem_statuscxx . . $ XorrisO#eternal_problem_status.; |
| 873 | char eternal_problem_status_textcxx . . $ XorrisO#eternal_problem_status_text.[20]; |
| 874 | |
| 875 | /* temporary search facilities */ |
| 876 | regex_tcxx . . $ regex_t# *recxx . . $ XorrisO#re.; |
| 877 | regmatch_tcxx . . $ regmatch_t# matchcxx . . $ XorrisO#match.[1]; |
| 878 | char **re_constantscxx . . $ XorrisO#re_constants.; |
| 879 | int re_countcxx . . $ XorrisO#re_count.; |
| 880 | int re_fillcxx . . $ XorrisO#re_fill.; |
| 881 | char reg_exprcxx . . $ XorrisO#reg_expr.[2*SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; |
| 882 | |
| 883 | /* run state */ |
| 884 | int run_statecxx . . $ XorrisO#run_state.; /* 0=preparing , 1=writing image */ |
| 885 | int is_dialogcxx . . $ XorrisO#is_dialog.; |
| 886 | int bar_is_freshcxx . . $ XorrisO#bar_is_fresh.; |
| 887 | char pending_optioncxx . . $ XorrisO#pending_option.[SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; /* eventual option entered at page prompt */ |
| 888 | int request_to_abortcxx . . $ XorrisO#request_to_abort.; /* abort a single operation like -ls, not the program */ |
| 889 | int request_not_to_askcxx . . $ XorrisO#request_not_to_ask.; /* suppress reassure and pager */ |
| 890 | double idle_timecxx . . $ XorrisO#idle_time.; |
| 891 | int re_failed_atcxx . . $ XorrisO#re_failed_at.; /* mismatch position with structured_search */ |
| 892 | int prepended_wdcxx . . $ XorrisO#prepended_wd.; |
| 893 | double insert_countcxx . . $ XorrisO#insert_count.; |
| 894 | double insert_bytescxx . . $ XorrisO#insert_bytes.; |
| 895 | double error_countcxx . . $ XorrisO#error_count.; /* double will not roll over */ |
| 896 | int launch_frontend_bannedcxx . . $ XorrisO#launch_frontend_banned.; |
| 897 | |
| 898 | /* pacifiers */ |
| 899 | int pacifier_stylecxx . . $ XorrisO#pacifier_style.; /* 0= xorriso, 1=mkisofs 2=cdrecord */ |
| 900 | double pacifier_intervalcxx . . $ XorrisO#pacifier_interval.; |
| 901 | double start_timecxx . . $ XorrisO#start_time.; |
| 902 | double last_update_timecxx . . $ XorrisO#last_update_time.; |
| 903 | /* optional global counters for brain reduced callback functions */ |
| 904 | off_tcxx . . $ off_t# pacifier_countcxx . . $ XorrisO#pacifier_count.; |
| 905 | off_tcxx . . $ off_t# pacifier_totalcxx . . $ XorrisO#pacifier_total.; |
| 906 | off_tcxx . . $ off_t# pacifier_byte_countcxx . . $ XorrisO#pacifier_byte_count.; /* auxiliary counter for data bytes */ |
| 907 | off_tcxx . . $ off_t# pacifier_prev_countcxx . . $ XorrisO#pacifier_prev_count.; /* internal counter for speed measurement */ |
| 908 | |
| 909 | void *pacifier_fifocxx . . $ XorrisO#pacifier_fifo.; |
| 910 | |
| 911 | int find_compare_resultcxx . . $ XorrisO#find_compare_result.; /* 1=everything matches , 0=mismatch , -1=error */ |
| 912 | int find_check_md5_resultcxx . . $ XorrisO#find_check_md5_result.; /* bit0= seen mismatch |
| 913 | bit1= seen error |
| 914 | bit2= seen data file without MD5 |
| 915 | bit3= seen match |
| 916 | */ |
| 917 | int find_unique_trunc_resultcxx . . $ XorrisO#find_unique_trunc_result.; /* 0= some names are not uniquely truncatable |
| 918 | 1= all names are uniquely truncatable |
| 919 | 2= no names need truncation |
| 920 | */ |
| 921 | |
| 922 | double last_abort_file_timecxx . . $ XorrisO#last_abort_file_time.; /* most recent check for aborting -check_md5 */ |
| 923 | |
| 924 | /* Tree node collection and LBA sorting facility */ |
| 925 | int node_countercxx . . $ XorrisO#node_counter.; |
| 926 | int node_array_sizecxx . . $ XorrisO#node_array_size.; |
| 927 | void **node_arraycxx . . $ XorrisO#node_array.; |
| 928 | struct Xorriso_lsTcxx . . $ Xorriso_lsT# *node_disk_prefixescxx . . $ XorrisO#node_disk_prefixes.; |
| 929 | struct Xorriso_lsTcxx . . $ Xorriso_lsT# *node_img_prefixescxx . . $ XorrisO#node_img_prefixes.; |
| 930 | |
| 931 | /* Hardlink matching at restore time memorizes hardlink target paths. |
| 932 | Array of nodes sorted by LBA. */ |
| 933 | int hln_countcxx . . $ XorrisO#hln_count.; |
| 934 | void **hln_arraycxx . . $ XorrisO#hln_array.; |
| 935 | void **hln_targetscxx . . $ XorrisO#hln_targets.; |
| 936 | int hln_change_pendingcxx . . $ XorrisO#hln_change_pending.; /* whether a change was made since hln creation */ |
| 937 | |
| 938 | /* >>> this should count all temp_mem and thus change its name */ |
| 939 | off_tcxx . . $ off_t# node_targets_availmemcxx . . $ XorrisO#node_targets_availmem.; |
| 940 | |
| 941 | /* Hardlink matching at update time: |
| 942 | Array of all nodes in the tree, sorted by disk dev,ino. |
| 943 | Bitmap of nodes which possibly got new hardlink siblings. |
| 944 | List of involved disk-iso path pairs. */ |
| 945 | int di_countcxx . . $ XorrisO#di_count.; |
| 946 | void **di_arraycxx . . $ XorrisO#di_array.; |
| 947 | char *di_do_widencxx . . $ XorrisO#di_do_widen.; |
| 948 | struct Xorriso_lsTcxx . . $ Xorriso_lsT# *di_disk_pathscxx . . $ XorrisO#di_disk_paths.; |
| 949 | struct Xorriso_lsTcxx . . $ Xorriso_lsT# *di_iso_pathscxx . . $ XorrisO#di_iso_paths.; |
| 950 | |
| 951 | struct PermiteMcxx . . $ PermiteM# *perm_stackcxx . . $ XorrisO#perm_stack.; /* Temporarily altered dir access permissions */ |
| 952 | |
| 953 | /* bit0= update_merge active: mark all newly added nodes as visited+found |
| 954 | */ |
| 955 | int update_flagscxx . . $ XorrisO#update_flags.; |
| 956 | |
| 957 | /* For find jobs show_hfs_cmd , show_hfs_as_mkisofs |
| 958 | */ |
| 959 | /* bit0= do not record but only count |
| 960 | bit1= as_mkisofs mode |
| 961 | */ |
| 962 | int show_hfs_cmd_flagcxx . . $ XorrisO#show_hfs_cmd_flag.; |
| 963 | int show_hfs_cmd_countcxx . . $ XorrisO#show_hfs_cmd_count.; |
| 964 | char **show_hfs_cmdscxx . . $ XorrisO#show_hfs_cmds.; |
| 965 | |
| 966 | /* Extraction to sparse files */ |
| 967 | off_tcxx . . $ off_t# sparse_min_gapcxx . . $ XorrisO#sparse_min_gap.; |
| 968 | |
| 969 | /* result (stdout, R: ) */ |
| 970 | char result_linecxx . . $ XorrisO#result_line.[10*SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; |
| 971 | int result_line_countercxx . . $ XorrisO#result_line_counter.; |
| 972 | int result_page_countercxx . . $ XorrisO#result_page_counter.; |
| 973 | int result_open_line_lencxx . . $ XorrisO#result_open_line_len.; |
| 974 | |
| 975 | /* info (stderr, I:) */ |
| 976 | char info_textcxx . . $ XorrisO#info_text.[10*SfileadrLcxx . . $ `xorriso/sfile.h:34:9`!]; |
| 977 | |
| 978 | /* info return mode for isoburn_read_iso_head_v2() with -toc: |
| 979 | 1= volume id |
| 980 | 3= creation time |
| 981 | 4= modification type |
| 982 | */ |
| 983 | int toc_info_typecxx . . $ XorrisO#toc_info_type.; |
| 984 | /* How to present toc_info_type 2 and 3: |
| 985 | 0= in ECMA-119 format YYYYMMDDhhmmsscc rectified to GMT |
| 986 | 1= in xorriso format YYY.MM.DD.hhmmss in local time |
| 987 | */ |
| 988 | int toc_time_formcxx . . $ XorrisO#toc_time_form.; |
| 989 | |
| 990 | }; |
| 991 | |
| 992 | |
| 993 | #include "base_obj.h"cxx . . $ `<file>/xorriso/base_obj.h`/ |
| 994 | #include "aux_objects.h"cxx . . $ `<file>/xorriso/aux_objects.h`/ |
| 995 | #include "findjob.h"cxx . . $ `<file>/xorriso/findjob.h`/ |
| 996 | #include "check_media.h"cxx . . $ `<file>/xorriso/check_media.h`/ |
| 997 | #include "misc_funct.h"cxx . . $ `<file>/xorriso/misc_funct.h`/ |
| 998 | #include "text_io.h"cxx . . $ `<file>/xorriso/text_io.h`/ |
| 999 | #include "match.h"cxx . . $ `<file>/xorriso/match.h`/ |
| 1000 | #include "emulators.h"cxx . . $ `<file>/xorriso/emulators.h`/ |
| 1001 | #include "disk_ops.h"cxx . . $ `<file>/xorriso/disk_ops.h`/ |
| 1002 | #include "cmp_update.h"cxx . . $ `<file>/xorriso/cmp_update.h`/ |
| 1003 | #include "parse_exec.h"cxx . . $ `<file>/xorriso/parse_exec.h`/ |
| 1004 | |
| 1005 | |
| 1006 | #endif /* Xorriso_private_includeD */ |
| 1007 |