xorriso  1.5.4.pl02
About: GNU xorriso creates, loads, manipulates and writes ISO 9660 filesystem images with Rock Ridge extensions. It is suitable for incremental data backup and for production of bootable ISO 9660 images. GNU xorriso is a statical compilation of the libraries libburn, libisofs, libisoburn, and libjte.
  Fossies Dox: xorriso-1.5.4.pl02.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

libisofs.h File Reference
#include <sys/stat.h>
#include <stdlib.h>
#include <fcntl.h>
Include dependency graph for libisofs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  iso_file_section
 
struct  iso_data_source
 
struct  iso_filesystem
 
struct  IsoFileSource_Iface
 
struct  iso_file_source
 
struct  IsoStream_Iface
 
struct  iso_stream
 
struct  iso_external_filter_command
 
struct  iso_zisofs_ctrl
 
struct  iso_hfsplus_xinfo_data
 

Macros

#define iso_lib_header_version_major   1
 
#define iso_lib_header_version_minor   5
 
#define iso_lib_header_version_micro   4
 
#define ISO_NODE_IS_DIR(n)   (iso_node_get_type(n) == LIBISO_DIR)
 
#define ISO_NODE_IS_FILE(n)   (iso_node_get_type(n) == LIBISO_FILE)
 
#define ISO_NODE_IS_SYMLINK(n)   (iso_node_get_type(n) == LIBISO_SYMLINK)
 
#define ISO_NODE_IS_SPECIAL(n)   (iso_node_get_type(n) == LIBISO_SPECIAL)
 
#define ISO_NODE_IS_BOOTCAT(n)   (iso_node_get_type(n) == LIBISO_BOOT)
 
#define ISO_DIR(n)   ((IsoDir*)(ISO_NODE_IS_DIR(n) ? n : NULL))
 
#define ISO_FILE(n)   ((IsoFile*)(ISO_NODE_IS_FILE(n) ? n : NULL))
 
#define ISO_SYMLINK(n)   ((IsoSymlink*)(ISO_NODE_IS_SYMLINK(n) ? n : NULL))
 
#define ISO_SPECIAL(n)   ((IsoSpecial*)(ISO_NODE_IS_SPECIAL(n) ? n : NULL))
 
#define ISO_NODE(n)   ((IsoNode*)n)
 
#define iso_libjte_req_major   2
 
#define iso_libjte_req_minor   0
 
#define iso_libjte_req_micro   0
 
#define ISO_MAX_SYSAREA_LINE_LENGTH   4096
 
#define ISO_SYSAREA_REPORT_DOC
 
#define ISO_SYSAREA_REPORT_DOC_MBR
 
#define ISO_SYSAREA_REPORT_DOC_GPT1
 
#define ISO_SYSAREA_REPORT_DOC_GPT2
 
#define ISO_SYSAREA_REPORT_DOC_APM
 
#define ISO_SYSAREA_REPORT_DOC_MIPS
 
#define ISO_SYSAREA_REPORT_DOC_SUN
 
#define ISO_SYSAREA_REPORT_DOC_HPPA
 
#define ISO_SYSAREA_REPORT_DOC_ALPHA
 
#define ISO_ELTORITO_REPORT_DOC
 
#define LIBISO_MAX_LINK_DEPTH   100
 
#define ISO_MSGS_MESSAGE_LEN   4096
 
#define Libisofs_default_path_maX   4096
 
#define ISO_SUCCESS   1
 
#define ISO_NONE   0
 
#define ISO_CANCELED   0xE830FFFF
 
#define ISO_FATAL_ERROR   0xF030FFFE
 
#define ISO_ERROR   0xE830FFFD
 
#define ISO_ASSERT_FAILURE   0xF030FFFC
 
#define ISO_NULL_POINTER   0xE830FFFB
 
#define ISO_OUT_OF_MEM   0xF030FFFA
 
#define ISO_INTERRUPTED   0xF030FFF9
 
#define ISO_WRONG_ARG_VALUE   0xE830FFF8
 
#define ISO_THREAD_ERROR   0xF030FFF7
 
#define ISO_WRITE_ERROR   0xE830FFF6
 
#define ISO_BUF_READ_ERROR   0xE830FFF5
 
#define ISO_NODE_ALREADY_ADDED   0xE830FFC0
 
#define ISO_NODE_NAME_NOT_UNIQUE   0xE830FFBF
 
#define ISO_NODE_NOT_ADDED_TO_DIR   0xE830FFBE
 
#define ISO_NODE_DOESNT_EXIST   0xE830FFBD
 
#define ISO_IMAGE_ALREADY_BOOTABLE   0xE830FFBC
 
#define ISO_BOOT_IMAGE_NOT_VALID   0xE830FFBB
 
#define ISO_BOOT_IMAGE_OVERFLOW   0xE830FFBA
 
#define ISO_BOOT_NO_CATALOG   0xE830FFB9
 
#define ISO_FILE_ERROR   0xE830FF80
 
#define ISO_FILE_ALREADY_OPENED   0xE830FF7F
 
#define ISO_FILE_ALREADY_OPENNED   0xE830FF7F
 
#define ISO_FILE_ACCESS_DENIED   0xE830FF7E
 
#define ISO_FILE_BAD_PATH   0xE830FF7D
 
#define ISO_FILE_DOESNT_EXIST   0xE830FF7C
 
#define ISO_FILE_NOT_OPENED   0xE830FF7B
 
#define ISO_FILE_NOT_OPENNED   ISO_FILE_NOT_OPENED
 
#define ISO_FILE_IS_DIR   0xE830FF7A
 
#define ISO_FILE_READ_ERROR   0xE830FF79
 
#define ISO_FILE_IS_NOT_DIR   0xE830FF78
 
#define ISO_FILE_IS_NOT_SYMLINK   0xE830FF77
 
#define ISO_FILE_SEEK_ERROR   0xE830FF76
 
#define ISO_FILE_IGNORED   0xD020FF75
 
#define ISO_FILE_TOO_BIG   0xE830FF74
 
#define ISO_FILE_CANT_WRITE   0xE430FF73
 
#define ISO_FILENAME_WRONG_CHARSET   0xD020FF72
 
#define ISO_FILENAME_WRONG_CHARSET_OLD   0xC020FF72
 
#define ISO_FILE_CANT_ADD   0xE030FF71
 
#define ISO_FILE_IMGPATH_WRONG   0xD020FF70
 
#define ISO_FILE_OFFSET_TOO_BIG   0xE830FF6A
 
#define ISO_CHARSET_CONV_ERROR   0xE830FF00
 
#define ISO_MANGLE_TOO_MUCH_FILES   0xE830FEFF
 
#define ISO_WRONG_PVD   0xE830FEC0
 
#define ISO_WRONG_RR   0xE030FEBF
 
#define ISO_UNSUPPORTED_RR   0xE030FEBE
 
#define ISO_WRONG_ECMA119   0xE830FEBD
 
#define ISO_UNSUPPORTED_ECMA119   0xE830FEBC
 
#define ISO_WRONG_EL_TORITO   0xD030FEBB
 
#define ISO_UNSUPPORTED_EL_TORITO   0xD030FEBA
 
#define ISO_ISOLINUX_CANT_PATCH   0xE030FEB9
 
#define ISO_UNSUPPORTED_SUSP   0xE030FEB8
 
#define ISO_WRONG_RR_WARN   0xD030FEB7
 
#define ISO_SUSP_UNHANDLED   0xC020FEB6
 
#define ISO_SUSP_MULTIPLE_ER   0xD030FEB5
 
#define ISO_UNSUPPORTED_VD   0xC020FEB4
 
#define ISO_EL_TORITO_WARN   0xD030FEB3
 
#define ISO_IMAGE_WRITE_CANCELED   0xE430FEB2
 
#define ISO_EL_TORITO_HIDDEN   0xD030FEB1
 
#define ISO_AAIP_IGNORED   0xB030FEB0
 
#define ISO_AAIP_BAD_ACL   0xE830FEAF
 
#define ISO_AAIP_BAD_ACL_TEXT   0xE830FEAE
 
#define ISO_AAIP_NOT_ENABLED   0xE830FEAD
 
#define ISO_AAIP_BAD_AASTRING   0xE830FEAC
 
#define ISO_AAIP_NO_GET_LOCAL   0xE830FEAB
 
#define ISO_AAIP_NO_SET_LOCAL   0xE830FEAA
 
#define ISO_AAIP_NON_USER_NAME   0xE830FEA9
 
#define ISO_EXTF_TOO_OFTEN   0xE830FEA8
 
#define ISO_ZLIB_NOT_ENABLED   0xE830FEA7
 
#define ISO_ZISOFS_TOO_LARGE   0xE830FEA6
 
#define ISO_FILTER_WRONG_INPUT   0xE830FEA5
 
#define ISO_ZLIB_COMPR_ERR   0xE830FEA4
 
#define ISO_ZISOFS_WRONG_INPUT   0xE830FEA3
 
#define ISO_ZISOFS_PARAM_LOCK   0xE830FEA2
 
#define ISO_ZLIB_EARLY_EOF   0xE830FEA1
 
#define ISO_MD5_AREA_CORRUPTED   0xD030FEA0
 
#define ISO_MD5_TAG_MISMATCH   0xE830FE9F
 
#define ISO_SB_TREE_CORRUPTED   0xE830FE9E
 
#define ISO_MD5_TAG_UNEXPECTED   0xD030FE9D
 
#define ISO_MD5_TAG_MISPLACED   0xD030FE9C
 
#define ISO_MD5_TAG_OTHER_RANGE   0xD030FE9B
 
#define ISO_MD5_STREAM_CHANGE   0xE430FE9A
 
#define ISO_SCDBACKUP_TAG_NOT_0   0xD030FE99
 
#define ISO_OVWRT_MS_TOO_SMALL   0xE830FE98
 
#define ISO_PART_OFFST_TOO_SMALL   0xE830FE97
 
#define ISO_OVWRT_FIFO_TOO_SMALL   0xE830FE96
 
#define ISO_LIBJTE_NOT_ENABLED   0xE830FE95
 
#define ISO_LIBJTE_START_FAILED   0xE830FE94
 
#define ISO_LIBJTE_END_FAILED   0xE830FE93
 
#define ISO_LIBJTE_FILE_FAILED   0xE430FE92
 
#define ISO_BOOT_TOO_MANY_MIPS   0xE830FE91
 
#define ISO_BOOT_FILE_MISSING   0xE430FE90
 
#define ISO_BAD_PARTITION_NO   0xE830FE8F
 
#define ISO_BAD_PARTITION_FILE   0xE830FE8E
 
#define ISO_NON_MBR_SYS_AREA   0xE830FE8D
 
#define ISO_DISPLACE_ROLLOVER   0xE830FE8C
 
#define ISO_NAME_NEEDS_TRANSL   0xE830FE8B
 
#define ISO_STREAM_NO_CLONE   0xE830FE8A
 
#define ISO_XINFO_NO_CLONE   0xE830FE89
 
#define ISO_MD5_TAG_COPIED   0xD030FE88
 
#define ISO_RR_NAME_TOO_LONG   0xE830FE87
 
#define ISO_RR_NAME_RESERVED   0xE830FE86
 
#define ISO_RR_PATH_TOO_LONG   0xE830FE85
 
#define ISO_AAIP_BAD_ATTR_NAME   0xE830FE84
 
#define ISO_AAIP_ACL_MULT_OBJ   0xE830FE83
 
#define ISO_SECT_SCATTERED   0xE830FE82
 
#define ISO_BOOT_TOO_MANY_APM   0xE830FE81
 
#define ISO_BOOT_APM_OVERLAP   0xE830FE80
 
#define ISO_BOOT_TOO_MANY_GPT   0xE830FE7F
 
#define ISO_BOOT_GPT_OVERLAP   0xE830FE7E
 
#define ISO_BOOT_TOO_MANY_MBR   0xE830FE7D
 
#define ISO_BOOT_MBR_OVERLAP   0xE830FE7C
 
#define ISO_BOOT_MBR_COLLISION   0xE830FE7B
 
#define ISO_BOOT_NO_EFI_ELTO   0xE830FE7A
 
#define ISO_BOOT_HFSP_BAD_BSIZE   0xE830FE79
 
#define ISO_BOOT_APM_GPT_BSIZE   0xE830FE78
 
#define ISO_HFSP_NO_MANGLE   0xE830FE77
 
#define ISO_DEAD_SYMLINK   0xE830FE76
 
#define ISO_DEEP_SYMLINK   0xE830FE75
 
#define ISO_BAD_ISO_FILETYPE   0xE830FE74
 
#define ISO_NAME_NOT_UCS2   0xD030FE73
 
#define ISO_IMPORT_COLLISION   0xD030FE72
 
#define ISO_HPPA_PALO_INCOMPL   0xE830FE71
 
#define ISO_HPPA_PALO_OFLOW   0xE830FE70
 
#define ISO_HPPA_PALO_NOTREG   0xE830FE6F
 
#define ISO_HPPA_PALO_CMDLEN   0xE830FE6E
 
#define ISO_SYSAREA_PROBLEMS   0xD030FE6D
 
#define ISO_INQ_SYSAREA_PROP   0xE830FE6C
 
#define ISO_ALPHA_BOOT_NOTREG   0xE830FE6B
 
#define ISO_NO_KEPT_DATA_SRC   0xD030FE6A
 
#define ISO_MALFORMED_READ_INTVL   0xE830FE69
 
#define ISO_INTVL_READ_PROBLEM   0xD030FE68
 
#define ISO_NOT_REPRODUCIBLE   0xB030FE67
 
#define ISO_PATCH_FILTERED_BOOT   0xE830FE66
 
#define ISO_PATCH_OVERSIZED_BOOT   0xE830FE65
 
#define ISO_RR_NAME_TRUNCATED   0xD030FE64
 
#define ISO_TRUNCATE_ISOFSNT   0xB030FE63
 
#define ISO_GENERAL_NOTE   0xB030FE62
 
#define ISO_BAD_FSRC_FILETYPE   0xE030FE61
 
#define ISO_GPT_NO_VOL_UUID   0xE830FE60
 
#define ISO_BAD_GPT_GUID_MODE   0xE830FE5F
 
#define ISO_NO_ROOT_DIR   0xF030FE5E
 
#define ISO_SUSP_WRONG_CE_SIZE   0xE830FE5D
 
#define ISO_MULTI_OVER_IMPORTED   0xE830FE5C
 
#define ISO_ELTO_EFI_HIDDEN   0xB030FE5B
 
#define ISO_HFSPLUS_TOO_MANY_FILES   0xE830FE5A
 
#define ISO_ZISOFS_TOO_MANY_PTR   0xE830FE59
 
#define ISO_ZISOFS_BPT_UNDERRUN   0xD020FE58
 
#define ISO_ZISOFS_UNKNOWN_SIZE   0xE830FE57
 
#define ISO_DATA_SOURCE_SORRY   0xE030FCFF
 
#define ISO_DATA_SOURCE_MISHAP   0xE430FCFF
 
#define ISO_DATA_SOURCE_FAILURE   0xE830FCFF
 
#define ISO_DATA_SOURCE_FATAL   0xF030FCFF
 

Typedefs

typedef struct Iso_Image IsoImage
 
typedef struct Iso_Node IsoNode
 
typedef struct Iso_Dir IsoDir
 
typedef struct Iso_Symlink IsoSymlink
 
typedef struct Iso_File IsoFile
 
typedef struct Iso_Special IsoSpecial
 
typedef struct Iso_Dir_Iter IsoDirIter
 
typedef struct el_torito_boot_image ElToritoBootImage
 
typedef struct Iso_Boot IsoBoot
 
typedef struct iso_write_opts IsoWriteOpts
 
typedef struct iso_read_opts IsoReadOpts
 
typedef struct iso_data_source IsoDataSource
 
typedef struct iso_read_image_features IsoReadImageFeatures
 
typedef struct iso_file_source IsoFileSource
 
typedef struct iso_filesystem IsoFilesystem
 
typedef struct IsoFileSource_Iface IsoFileSourceIface
 
typedef IsoFilesystem IsoImageFilesystem
 
typedef struct iso_stream IsoStream
 
typedef struct IsoStream_Iface IsoStreamIface
 
typedef int(* iso_node_xinfo_func) (void *data, int flag)
 
typedef int(* iso_node_xinfo_cloner) (void *old_data, void **new_data, int flag)
 
typedef struct iso_find_condition IsoFindCondition
 
typedef struct iso_external_filter_command IsoExternalFilterCommand
 

Enumerations

enum  IsoNodeType {
  LIBISO_DIR , LIBISO_FILE , LIBISO_SYMLINK , LIBISO_SPECIAL ,
  LIBISO_BOOT
}
 
enum  IsoHideNodeFlag {
  LIBISO_HIDE_ON_RR = 1 << 0 , LIBISO_HIDE_ON_JOLIET = 1 << 1 , LIBISO_HIDE_ON_1999 = 1 << 2 , LIBISO_HIDE_ON_HFSPLUS = 1 << 4 ,
  LIBISO_HIDE_ON_FAT = 1 << 5 , LIBISO_HIDE_BUT_WRITE = 1 << 3
}
 
enum  eltorito_boot_media_type { ELTORITO_FLOPPY_EMUL , ELTORITO_HARD_DISC_EMUL , ELTORITO_NO_EMUL }
 
enum  iso_replace_mode {
  ISO_REPLACE_NEVER , ISO_REPLACE_ALWAYS , ISO_REPLACE_IF_SAME_TYPE , ISO_REPLACE_IF_SAME_TYPE_AND_NEWER ,
  ISO_REPLACE_IF_NEWER
}
 
enum  iso_find_comparisons {
  ISO_FIND_COND_GREATER , ISO_FIND_COND_GREATER_OR_EQUAL , ISO_FIND_COND_EQUAL , ISO_FIND_COND_LESS ,
  ISO_FIND_COND_LESS_OR_EQUAL
}
 
enum  IsoHfsplusBlessings {
  ISO_HFSPLUS_BLESS_PPC_BOOTDIR , ISO_HFSPLUS_BLESS_INTEL_BOOTFILE , ISO_HFSPLUS_BLESS_SHOWFOLDER , ISO_HFSPLUS_BLESS_OS9_FOLDER ,
  ISO_HFSPLUS_BLESS_OSX_FOLDER , ISO_HFSPLUS_BLESS_MAX
}
 

Functions

void iso_lib_version (int *major, int *minor, int *micro)
 
int iso_lib_is_compatible (int major, int minor, int micro)
 
int iso_init ()
 
int iso_init_with_flag (int flag)
 
void iso_finish ()
 
int iso_set_local_charset (char *name, int flag)
 
char * iso_get_local_charset (int flag)
 
int iso_nowtime (time_t *now, int flag)
 
int iso_image_new (const char *name, IsoImage **image)
 
void iso_image_set_ignore_aclea (IsoImage *image, int what)
 
int iso_image_get_ignore_aclea (IsoImage *image)
 
int iso_write_opts_new (IsoWriteOpts **opts, int profile)
 
void iso_write_opts_free (IsoWriteOpts *opts)
 
int iso_write_opts_set_will_cancel (IsoWriteOpts *opts, int will_cancel)
 
int iso_write_opts_set_iso_level (IsoWriteOpts *opts, int level)
 
int iso_write_opts_set_rockridge (IsoWriteOpts *opts, int enable)
 
int iso_write_opts_set_joliet (IsoWriteOpts *opts, int enable)
 
int iso_write_opts_set_hfsplus (IsoWriteOpts *opts, int enable)
 
int iso_write_opts_set_fat (IsoWriteOpts *opts, int enable)
 
int iso_write_opts_set_hfsp_serial_number (IsoWriteOpts *opts, uint8_t serial_number[8])
 
int iso_write_opts_set_hfsp_block_size (IsoWriteOpts *opts, int hfsp_block_size, int apm_block_size)
 
int iso_write_opts_set_iso1999 (IsoWriteOpts *opts, int enable)
 
int iso_write_opts_set_hardlinks (IsoWriteOpts *opts, int enable)
 
int iso_write_opts_set_aaip (IsoWriteOpts *opts, int enable)
 
int iso_write_opts_set_old_empty (IsoWriteOpts *opts, int enable)
 
int iso_write_opts_set_untranslated_name_len (IsoWriteOpts *opts, int len)
 
int iso_write_opts_set_allow_dir_id_ext (IsoWriteOpts *opts, int allow)
 
int iso_write_opts_set_omit_version_numbers (IsoWriteOpts *opts, int omit)
 
int iso_write_opts_set_allow_deep_paths (IsoWriteOpts *opts, int allow)
 
int iso_write_opts_set_rr_reloc (IsoWriteOpts *opts, char *name, int flags)
 
int iso_write_opts_set_allow_longer_paths (IsoWriteOpts *opts, int allow)
 
int iso_write_opts_set_max_37_char_filenames (IsoWriteOpts *opts, int allow)
 
int iso_write_opts_set_no_force_dots (IsoWriteOpts *opts, int no)
 
int iso_write_opts_set_allow_lowercase (IsoWriteOpts *opts, int allow)
 
int iso_write_opts_set_allow_full_ascii (IsoWriteOpts *opts, int allow)
 
int iso_write_opts_set_allow_7bit_ascii (IsoWriteOpts *opts, int allow)
 
int iso_write_opts_set_relaxed_vol_atts (IsoWriteOpts *opts, int allow)
 
int iso_write_opts_set_joliet_longer_paths (IsoWriteOpts *opts, int allow)
 
int iso_write_opts_set_joliet_long_names (IsoWriteOpts *opts, int allow)
 
int iso_write_opts_set_joliet_utf16 (IsoWriteOpts *opts, int allow)
 
int iso_write_opts_set_rrip_version_1_10 (IsoWriteOpts *opts, int oldvers)
 
int iso_write_opts_set_rrip_1_10_px_ino (IsoWriteOpts *opts, int enable)
 
int iso_write_opts_set_aaip_susp_1_10 (IsoWriteOpts *opts, int oldvers)
 
int iso_write_opts_set_dir_rec_mtime (IsoWriteOpts *opts, int allow)
 
int iso_write_opts_set_sort_files (IsoWriteOpts *opts, int sort)
 
int iso_write_opts_set_record_md5 (IsoWriteOpts *opts, int session, int files)
 
int iso_write_opts_set_scdbackup_tag (IsoWriteOpts *opts, char *name, char *timestamp, char *tag_written)
 
int iso_write_opts_set_replace_mode (IsoWriteOpts *opts, int dir_mode, int file_mode, int uid, int gid)
 
int iso_write_opts_set_default_dir_mode (IsoWriteOpts *opts, mode_t dir_mode)
 
int iso_write_opts_set_default_file_mode (IsoWriteOpts *opts, mode_t file_mode)
 
int iso_write_opts_set_default_uid (IsoWriteOpts *opts, uid_t uid)
 
int iso_write_opts_set_default_gid (IsoWriteOpts *opts, gid_t gid)
 
int iso_write_opts_set_replace_timestamps (IsoWriteOpts *opts, int replace)
 
int iso_write_opts_set_default_timestamp (IsoWriteOpts *opts, time_t timestamp)
 
int iso_write_opts_set_always_gmt (IsoWriteOpts *opts, int gmt)
 
int iso_write_opts_set_output_charset (IsoWriteOpts *opts, const char *charset)
 
int iso_write_opts_set_appendable (IsoWriteOpts *opts, int append)
 
int iso_write_opts_set_ms_block (IsoWriteOpts *opts, uint32_t ms_block)
 
int iso_write_opts_set_overwrite_buf (IsoWriteOpts *opts, uint8_t *overwrite)
 
int iso_write_opts_set_fifo_size (IsoWriteOpts *opts, size_t fifo_size)
 
int iso_write_opts_set_system_area (IsoWriteOpts *opts, char data[32768], int options, int flag)
 
int iso_write_opts_set_disc_label (IsoWriteOpts *opts, char *label)
 
int iso_write_opts_set_pvd_times (IsoWriteOpts *opts, time_t vol_creation_time, time_t vol_modification_time, time_t vol_expiration_time, time_t vol_effective_time, char *vol_uuid)
 
int iso_write_opts_set_part_offset (IsoWriteOpts *opts, uint32_t block_offset_2k, int secs_512_per_head, int heads_per_cyl)
 
int iso_write_opts_attach_jte (IsoWriteOpts *opts, void *libjte_handle)
 
int iso_write_opts_detach_jte (IsoWriteOpts *opts, void **libjte_handle)
 
int iso_write_opts_set_tail_blocks (IsoWriteOpts *opts, uint32_t num_blocks)
 
int iso_interval_reader_new (IsoImage *img, char *path, struct iso_interval_reader **ivr, off_t *byte_count, int flag)
 
int iso_interval_reader_destroy (struct iso_interval_reader **ivr, int flag)
 
int iso_interval_reader_read (struct iso_interval_reader *ivr, uint8_t *buf, int *buf_fill, int flag)
 
int iso_write_opts_set_prep_img (IsoWriteOpts *opts, char *image_path, int flag)
 
int iso_write_opts_set_efi_bootp (IsoWriteOpts *opts, char *image_path, int flag)
 
int iso_write_opts_set_gpt_guid (IsoWriteOpts *opts, uint8_t guid[16], int mode)
 
void iso_generate_gpt_guid (uint8_t guid[16])
 
int iso_write_opts_set_partition_img (IsoWriteOpts *opts, int partition_number, uint8_t partition_type, char *image_path, int flag)
 
int iso_write_opts_set_appended_as_gpt (IsoWriteOpts *opts, int gpt)
 
int iso_write_opts_set_part_type_guid (IsoWriteOpts *opts, int partition_number, uint8_t guid[16], int valid)
 
int iso_write_opts_set_appended_as_apm (IsoWriteOpts *opts, int apm)
 
int iso_write_opts_set_part_like_isohybrid (IsoWriteOpts *opts, int alike)
 
int iso_write_opts_set_iso_mbr_part_type (IsoWriteOpts *opts, int part_type)
 
int iso_write_opts_set_iso_type_guid (IsoWriteOpts *opts, uint8_t guid[16], int valid)
 
int iso_write_opts_get_data_start (IsoWriteOpts *opts, uint32_t *data_start, int flag)
 
int iso_image_update_sizes (IsoImage *image)
 
int iso_image_create_burn_source (IsoImage *image, IsoWriteOpts *opts, struct burn_source **burn_src)
 
int iso_image_generator_is_running (IsoImage *image)
 
int iso_read_opts_new (IsoReadOpts **opts, int profile)
 
void iso_read_opts_free (IsoReadOpts *opts)
 
int iso_read_opts_set_start_block (IsoReadOpts *opts, uint32_t block)
 
int iso_read_opts_set_no_rockridge (IsoReadOpts *opts, int norr)
 
int iso_read_opts_set_no_joliet (IsoReadOpts *opts, int nojoliet)
 
int iso_read_opts_set_no_iso1999 (IsoReadOpts *opts, int noiso1999)
 
int iso_read_opts_set_no_aaip (IsoReadOpts *opts, int noaaip)
 
int iso_read_opts_set_no_md5 (IsoReadOpts *opts, int no_md5)
 
int iso_read_opts_set_new_inos (IsoReadOpts *opts, int new_inos)
 
int iso_read_opts_set_preferjoliet (IsoReadOpts *opts, int preferjoliet)
 
int iso_read_opts_set_ecma119_map (IsoReadOpts *opts, int ecma119_map)
 
int iso_read_opts_set_joliet_map (IsoReadOpts *opts, int joliet_map)
 
int iso_read_opts_set_default_uid (IsoReadOpts *opts, uid_t uid)
 
int iso_read_opts_set_default_gid (IsoReadOpts *opts, gid_t gid)
 
int iso_read_opts_set_default_permissions (IsoReadOpts *opts, mode_t file_perm, mode_t dir_perm)
 
int iso_read_opts_set_input_charset (IsoReadOpts *opts, const char *charset)
 
int iso_read_opts_auto_input_charset (IsoReadOpts *opts, int mode)
 
int iso_read_opts_load_system_area (IsoReadOpts *opts, int mode)
 
int iso_read_opts_keep_import_src (IsoReadOpts *opts, int mode)
 
int iso_image_import (IsoImage *image, IsoDataSource *src, IsoReadOpts *opts, IsoReadImageFeatures **features)
 
void iso_read_image_features_destroy (IsoReadImageFeatures *f)
 
uint32_t iso_read_image_features_get_size (IsoReadImageFeatures *f)
 
int iso_read_image_features_has_rockridge (IsoReadImageFeatures *f)
 
int iso_read_image_features_has_joliet (IsoReadImageFeatures *f)
 
int iso_read_image_features_has_iso1999 (IsoReadImageFeatures *f)
 
int iso_read_image_features_has_eltorito (IsoReadImageFeatures *f)
 
int iso_read_image_features_tree_loaded (IsoReadImageFeatures *f)
 
int iso_read_image_features_rr_loaded (IsoReadImageFeatures *f)
 
void iso_image_ref (IsoImage *image)
 
void iso_image_unref (IsoImage *image)
 
int iso_image_attach_data (IsoImage *image, void *data, void(*give_up)(void *))
 
void * iso_image_get_attached_data (IsoImage *image)
 
int iso_image_set_truncate_mode (IsoImage *img, int mode, int length)
 
int iso_image_get_truncate_mode (IsoImage *img, int *mode, int *length)
 
int iso_truncate_leaf_name (int mode, int length, char *name, int flag)
 
IsoDiriso_image_get_root (const IsoImage *image)
 
void iso_image_set_volset_id (IsoImage *image, const char *volset_id)
 
const char * iso_image_get_volset_id (const IsoImage *image)
 
void iso_image_set_volume_id (IsoImage *image, const char *volume_id)
 
const char * iso_image_get_volume_id (const IsoImage *image)
 
void iso_image_set_publisher_id (IsoImage *image, const char *publisher_id)
 
const char * iso_image_get_publisher_id (const IsoImage *image)
 
void iso_image_set_data_preparer_id (IsoImage *image, const char *data_preparer_id)
 
const char * iso_image_get_data_preparer_id (const IsoImage *image)
 
void iso_image_set_system_id (IsoImage *image, const char *system_id)
 
const char * iso_image_get_system_id (const IsoImage *image)
 
void iso_image_set_application_id (IsoImage *image, const char *application_id)
 
const char * iso_image_get_application_id (const IsoImage *image)
 
void iso_image_set_copyright_file_id (IsoImage *image, const char *copyright_file_id)
 
const char * iso_image_get_copyright_file_id (const IsoImage *image)
 
void iso_image_set_abstract_file_id (IsoImage *image, const char *abstract_file_id)
 
const char * iso_image_get_abstract_file_id (const IsoImage *image)
 
void iso_image_set_biblio_file_id (IsoImage *image, const char *biblio_file_id)
 
const char * iso_image_get_biblio_file_id (const IsoImage *image)
 
void iso_image_set_app_use (IsoImage *image, const char *app_use_data, int count)
 
const char * iso_image_get_app_use (IsoImage *image)
 
int iso_image_get_pvd_times (IsoImage *image, char **creation_time, char **modification_time, char **expiration_time, char **effective_time)
 
int iso_image_set_boot_image (IsoImage *image, const char *image_path, enum eltorito_boot_media_type type, const char *catalog_path, ElToritoBootImage **boot)
 
int iso_image_add_boot_image (IsoImage *image, const char *image_path, enum eltorito_boot_media_type type, int flag, ElToritoBootImage **boot)
 
int iso_image_get_boot_image (IsoImage *image, ElToritoBootImage **boot, IsoFile **imgnode, IsoBoot **catnode)
 
int iso_image_get_bootcat (IsoImage *image, IsoBoot **catnode, uint32_t *lba, char **content, off_t *size)
 
int iso_image_get_all_boot_imgs (IsoImage *image, int *num_boots, ElToritoBootImage ***boots, IsoFile ***bootnodes, int flag)
 
void iso_image_remove_boot_image (IsoImage *image)
 
int iso_image_set_boot_catalog_weight (IsoImage *image, int sort_weight)
 
int iso_image_set_boot_catalog_hidden (IsoImage *image, int hide_attrs)
 
int el_torito_get_boot_media_type (ElToritoBootImage *bootimg, enum eltorito_boot_media_type *media_type)
 
int el_torito_set_boot_platform_id (ElToritoBootImage *bootimg, uint8_t id)
 
int el_torito_get_boot_platform_id (ElToritoBootImage *bootimg)
 
void el_torito_set_load_seg (ElToritoBootImage *bootimg, short segment)
 
int el_torito_get_load_seg (ElToritoBootImage *bootimg)
 
void el_torito_set_load_size (ElToritoBootImage *bootimg, short sectors)
 
int el_torito_get_load_size (ElToritoBootImage *bootimg)
 
void el_torito_set_full_load (ElToritoBootImage *bootimg, int mode)
 
int el_torito_get_full_load (ElToritoBootImage *bootimg)
 
void el_torito_set_no_bootable (ElToritoBootImage *bootimg)
 
int el_torito_get_bootable (ElToritoBootImage *bootimg)
 
int el_torito_set_id_string (ElToritoBootImage *bootimg, uint8_t id_string[28])
 
int el_torito_get_id_string (ElToritoBootImage *bootimg, uint8_t id_string[28])
 
int el_torito_set_selection_crit (ElToritoBootImage *bootimg, uint8_t crit[20])
 
int el_torito_get_selection_crit (ElToritoBootImage *bootimg, uint8_t crit[20])
 
int el_torito_seems_boot_info_table (ElToritoBootImage *bootimg, int flag)
 
int el_torito_set_isolinux_options (ElToritoBootImage *bootimg, int options, int flag)
 
int el_torito_get_isolinux_options (ElToritoBootImage *bootimg, int flag)
 
void el_torito_patch_isolinux_image (ElToritoBootImage *bootimg)
 
int iso_image_get_system_area (IsoImage *img, char data[32768], int *options, int flag)
 
int iso_image_report_system_area (IsoImage *image, char ***reply, int *line_count, int flag)
 
int iso_image_report_el_torito (IsoImage *image, char ***reply, int *line_count, int flag)
 
uint32_t iso_crc32_gpt (unsigned char *data, int count, int flag)
 
int iso_image_add_mips_boot_file (IsoImage *image, char *path, int flag)
 
int iso_image_get_mips_boot_files (IsoImage *image, char *paths[15], int flag)
 
int iso_image_give_up_mips_boot (IsoImage *image, int flag)
 
int iso_image_set_sparc_core (IsoImage *img, IsoFile *sparc_core, int flag)
 
int iso_image_get_sparc_core (IsoImage *img, IsoFile **sparc_core, int flag)
 
int iso_image_set_hppa_palo (IsoImage *img, char *cmdline, char *bootloader, char *kernel_32, char *kernel_64, char *ramdisk, int flag)
 
int iso_image_get_hppa_palo (IsoImage *img, char **cmdline, char **bootloader, char **kernel_32, char **kernel_64, char **ramdisk)
 
int iso_image_set_alpha_boot (IsoImage *img, char *boot_loader_path, int flag)
 
int iso_image_get_alpha_boot (IsoImage *img, char **boot_loader_path)
 
void iso_node_ref (IsoNode *node)
 
void iso_node_unref (IsoNode *node)
 
enum IsoNodeType iso_node_get_type (IsoNode *node)
 
int iso_node_add_xinfo (IsoNode *node, iso_node_xinfo_func proc, void *data)
 
int iso_node_remove_xinfo (IsoNode *node, iso_node_xinfo_func proc)
 
int iso_node_remove_all_xinfo (IsoNode *node, int flag)
 
int iso_node_get_xinfo (IsoNode *node, iso_node_xinfo_func proc, void **data)
 
int iso_node_get_next_xinfo (IsoNode *node, void **handle, iso_node_xinfo_func *proc, void **data)
 
int iso_node_xinfo_make_clonable (iso_node_xinfo_func proc, iso_node_xinfo_cloner cloner, int flag)
 
int iso_node_xinfo_get_cloner (iso_node_xinfo_func proc, iso_node_xinfo_cloner *cloner, int flag)
 
int iso_image_set_node_name (IsoImage *image, IsoNode *node, const char *name, int flag)
 
int iso_node_set_name (IsoNode *node, const char *name)
 
const char * iso_node_get_name (const IsoNode *node)
 
void iso_node_set_permissions (IsoNode *node, mode_t mode)
 
mode_t iso_node_get_permissions (const IsoNode *node)
 
mode_t iso_node_get_mode (const IsoNode *node)
 
void iso_node_set_uid (IsoNode *node, uid_t uid)
 
uid_t iso_node_get_uid (const IsoNode *node)
 
void iso_node_set_gid (IsoNode *node, gid_t gid)
 
gid_t iso_node_get_gid (const IsoNode *node)
 
void iso_node_set_mtime (IsoNode *node, time_t time)
 
time_t iso_node_get_mtime (const IsoNode *node)
 
void iso_node_set_atime (IsoNode *node, time_t time)
 
time_t iso_node_get_atime (const IsoNode *node)
 
void iso_node_set_ctime (IsoNode *node, time_t time)
 
time_t iso_node_get_ctime (const IsoNode *node)
 
void iso_node_set_hidden (IsoNode *node, int hide_attrs)
 
int iso_node_get_hidden (IsoNode *node)
 
int iso_node_cmp_ino (IsoNode *n1, IsoNode *n2, int flag)
 
int iso_dir_add_node (IsoDir *dir, IsoNode *child, enum iso_replace_mode replace)
 
int iso_image_dir_get_node (IsoImage *image, IsoDir *dir, const char *name, IsoNode **node, int flag)
 
int iso_dir_get_node (IsoDir *dir, const char *name, IsoNode **node)
 
int iso_dir_get_children_count (IsoDir *dir)
 
int iso_node_take (IsoNode *node)
 
int iso_node_remove (IsoNode *node)
 
IsoDiriso_node_get_parent (IsoNode *node)
 
int iso_dir_get_children (const IsoDir *dir, IsoDirIter **iter)
 
int iso_dir_iter_next (IsoDirIter *iter, IsoNode **node)
 
int iso_dir_iter_has_next (IsoDirIter *iter)
 
void iso_dir_iter_free (IsoDirIter *iter)
 
int iso_dir_iter_take (IsoDirIter *iter)
 
int iso_dir_iter_remove (IsoDirIter *iter)
 
int iso_node_remove_tree (IsoNode *node, IsoDirIter *boss_iter)
 
IsoFindConditioniso_new_find_conditions_name (const char *wildcard)
 
IsoFindConditioniso_new_find_conditions_mode (mode_t mask)
 
IsoFindConditioniso_new_find_conditions_gid (gid_t gid)
 
IsoFindConditioniso_new_find_conditions_uid (uid_t uid)
 
IsoFindConditioniso_new_find_conditions_atime (time_t time, enum iso_find_comparisons comparison)
 
IsoFindConditioniso_new_find_conditions_mtime (time_t time, enum iso_find_comparisons comparison)
 
IsoFindConditioniso_new_find_conditions_ctime (time_t time, enum iso_find_comparisons comparison)
 
IsoFindConditioniso_new_find_conditions_and (IsoFindCondition *a, IsoFindCondition *b)
 
IsoFindConditioniso_new_find_conditions_or (IsoFindCondition *a, IsoFindCondition *b)
 
IsoFindConditioniso_new_find_conditions_not (IsoFindCondition *negate)
 
int iso_dir_find_children (IsoDir *dir, IsoFindCondition *cond, IsoDirIter **iter)
 
const char * iso_symlink_get_dest (const IsoSymlink *link)
 
int iso_symlink_set_dest (IsoSymlink *link, const char *dest)
 
void iso_node_set_sort_weight (IsoNode *node, int w)
 
int iso_file_get_sort_weight (IsoFile *file)
 
off_t iso_file_get_size (IsoFile *file)
 
dev_t iso_special_get_dev (IsoSpecial *special)
 
IsoStreamiso_file_get_stream (IsoFile *file)
 
int iso_file_get_old_image_lba (IsoFile *file, uint32_t *lba, int flag)
 
int iso_file_get_old_image_sections (IsoFile *file, int *section_count, struct iso_file_section **sections, int flag)
 
int iso_node_get_old_image_lba (IsoNode *node, uint32_t *lba, int flag)
 
int iso_image_add_new_dir (IsoImage *image, IsoDir *parent, const char *name, IsoDir **dir)
 
int iso_tree_add_new_dir (IsoDir *parent, const char *name, IsoDir **dir)
 
int iso_image_add_new_file (IsoImage *image, IsoDir *parent, const char *name, IsoStream *stream, IsoFile **file)
 
int iso_tree_add_new_file (IsoDir *parent, const char *name, IsoStream *stream, IsoFile **file)
 
int iso_memory_stream_new (unsigned char *buf, size_t size, IsoStream **stream)
 
int iso_image_add_new_symlink (IsoImage *image, IsoDir *parent, const char *name, const char *dest, IsoSymlink **link)
 
int iso_tree_add_new_symlink (IsoDir *parent, const char *name, const char *dest, IsoSymlink **link)
 
int iso_image_add_new_special (IsoImage *image, IsoDir *parent, const char *name, mode_t mode, dev_t dev, IsoSpecial **special)
 
int iso_tree_add_new_special (IsoDir *parent, const char *name, mode_t mode, dev_t dev, IsoSpecial **special)
 
void iso_tree_set_follow_symlinks (IsoImage *image, int follow)
 
int iso_tree_get_follow_symlinks (IsoImage *image)
 
void iso_tree_set_ignore_hidden (IsoImage *image, int skip)
 
int iso_tree_get_ignore_hidden (IsoImage *image)
 
void iso_tree_set_replace_mode (IsoImage *image, enum iso_replace_mode mode)
 
enum iso_replace_mode iso_tree_get_replace_mode (IsoImage *image)
 
void iso_tree_set_ignore_special (IsoImage *image, int skip)
 
int iso_tree_get_ignore_special (IsoImage *image)
 
int iso_tree_add_exclude (IsoImage *image, const char *path)
 
int iso_tree_remove_exclude (IsoImage *image, const char *path)
 
void iso_tree_set_report_callback (IsoImage *image, int(*report)(IsoImage *, IsoFileSource *))
 
int iso_tree_add_node (IsoImage *image, IsoDir *parent, const char *path, IsoNode **node)
 
int iso_tree_add_new_node (IsoImage *image, IsoDir *parent, const char *name, const char *path, IsoNode **node)
 
int iso_tree_add_new_cut_out_node (IsoImage *image, IsoDir *parent, const char *name, const char *path, off_t offset, off_t size, IsoNode **node)
 
int iso_image_tree_clone (IsoImage *image, IsoNode *node, IsoDir *new_parent, char *new_name, IsoNode **new_node, int flag)
 
int iso_tree_clone (IsoNode *node, IsoDir *new_parent, char *new_name, IsoNode **new_node, int flag)
 
int iso_tree_add_dir_rec (IsoImage *image, IsoDir *parent, const char *dir)
 
int iso_image_was_blind_attrs (IsoImage *image, int flag)
 
int iso_image_path_to_node (IsoImage *image, const char *path, IsoNode **node)
 
int iso_tree_path_to_node (IsoImage *image, const char *path, IsoNode **node)
 
char * iso_tree_get_node_path (IsoNode *node)
 
int iso_tree_resolve_symlink (IsoImage *img, IsoSymlink *sym, IsoNode **res, int *depth, int flag)
 
void iso_data_source_ref (IsoDataSource *src)
 
void iso_data_source_unref (IsoDataSource *src)
 
int iso_data_source_new_from_file (const char *path, IsoDataSource **src)
 
int iso_ring_buffer_get_status (struct burn_source *b, size_t *size, size_t *free_bytes)
 
int iso_set_msgs_severities (char *queue_severity, char *print_severity, char *print_id)
 
int iso_obtain_msgs (char *minimum_severity, int *error_code, int *imgid, char msg_text[], char severity[])
 
int iso_msgs_submit (int error_code, char msg_text[], int os_errno, char severity[], int origin)
 
int iso_text_to_sev (char *severity_name, int *severity_number)
 
int iso_sev_to_text (int severity_number, char **severity_name)
 
int iso_image_get_msg_id (IsoImage *image)
 
const char * iso_error_to_msg (int errcode)
 
int iso_error_get_severity (int e)
 
int iso_error_get_priority (int e)
 
int iso_error_get_code (int e)
 
int iso_set_abort_severity (char *severity)
 
void * iso_get_messenger ()
 
void iso_file_source_ref (IsoFileSource *src)
 
void iso_file_source_unref (IsoFileSource *src)
 
char * iso_file_source_get_path (IsoFileSource *src)
 
char * iso_file_source_get_name (IsoFileSource *src)
 
int iso_file_source_lstat (IsoFileSource *src, struct stat *info)
 
int iso_file_source_access (IsoFileSource *src)
 
int iso_file_source_stat (IsoFileSource *src, struct stat *info)
 
int iso_file_source_open (IsoFileSource *src)
 
int iso_file_source_close (IsoFileSource *src)
 
int iso_file_source_read (IsoFileSource *src, void *buf, size_t count)
 
off_t iso_file_source_lseek (IsoFileSource *src, off_t offset, int flag)
 
int iso_file_source_readdir (IsoFileSource *src, IsoFileSource **child)
 
int iso_file_source_readlink (IsoFileSource *src, char *buf, size_t bufsiz)
 
int iso_file_source_get_aa_string (IsoFileSource *src, unsigned char **aa_string, int flag)
 
IsoFilesystemiso_file_source_get_filesystem (IsoFileSource *src)
 
void iso_filesystem_ref (IsoFilesystem *fs)
 
void iso_filesystem_unref (IsoFilesystem *fs)
 
int iso_image_filesystem_new (IsoDataSource *src, IsoReadOpts *opts, int msgid, IsoImageFilesystem **fs)
 
const char * iso_image_fs_get_volset_id (IsoImageFilesystem *fs)
 
const char * iso_image_fs_get_volume_id (IsoImageFilesystem *fs)
 
const char * iso_image_fs_get_publisher_id (IsoImageFilesystem *fs)
 
const char * iso_image_fs_get_data_preparer_id (IsoImageFilesystem *fs)
 
const char * iso_image_fs_get_system_id (IsoImageFilesystem *fs)
 
const char * iso_image_fs_get_application_id (IsoImageFilesystem *fs)
 
const char * iso_image_fs_get_copyright_file_id (IsoImageFilesystem *fs)
 
const char * iso_image_fs_get_abstract_file_id (IsoImageFilesystem *fs)
 
const char * iso_image_fs_get_biblio_file_id (IsoImageFilesystem *fs)
 
void iso_stream_ref (IsoStream *stream)
 
void iso_stream_unref (IsoStream *stream)
 
int iso_stream_open (IsoStream *stream)
 
int iso_stream_close (IsoStream *stream)
 
off_t iso_stream_get_size (IsoStream *stream)
 
int iso_stream_read (IsoStream *stream, void *buf, size_t count)
 
int iso_stream_is_repeatable (IsoStream *stream)
 
int iso_stream_update_size (IsoStream *stream)
 
void iso_stream_get_id (IsoStream *stream, unsigned int *fs_id, dev_t *dev_id, ino_t *ino_id)
 
char * iso_stream_get_source_path (IsoStream *stream, int flag)
 
int iso_stream_cmp_ino (IsoStream *s1, IsoStream *s2, int flag)
 
int iso_stream_clone (IsoStream *old_stream, IsoStream **new_stream, int flag)
 
int aaip_xinfo_func (void *data, int flag)
 
int aaip_xinfo_cloner (void *old_data, void **new_data, int flag)
 
int iso_node_get_acl_text (IsoNode *node, char **access_text, char **default_text, int flag)
 
int iso_node_set_acl_text (IsoNode *node, char *access_text, char *default_text, int flag)
 
mode_t iso_node_get_perms_wo_acl (const IsoNode *node)
 
int iso_node_get_attrs (IsoNode *node, size_t *num_attrs, char ***names, size_t **value_lengths, char ***values, int flag)
 
int iso_node_lookup_attr (IsoNode *node, char *name, size_t *value_length, char **value, int flag)
 
int iso_node_set_attrs (IsoNode *node, size_t num_attrs, char **names, size_t *value_lengths, char **values, int flag)
 
int iso_local_attr_support (int flag)
 
int iso_local_get_acl_text (char *disk_path, char **text, int flag)
 
int iso_local_set_acl_text (char *disk_path, char *text, int flag)
 
int iso_local_get_perms_wo_acl (char *disk_path, mode_t *st_mode, int flag)
 
int iso_local_get_attrs (char *disk_path, size_t *num_attrs, char ***names, size_t **value_lengths, char ***values, int flag)
 
int iso_local_set_attrs_errno (char *disk_path, size_t num_attrs, char **names, size_t *value_lengths, char **values, int *errnos, int flag)
 
int iso_local_set_attrs (char *disk_path, size_t num_attrs, char **names, size_t *value_lengths, char **values, int flag)
 
int iso_file_remove_filter (IsoFile *file, int flag)
 
IsoStreamiso_stream_get_input_stream (IsoStream *stream, int flag)
 
int iso_file_add_external_filter (IsoFile *file, IsoExternalFilterCommand *cmd, int flag)
 
int iso_stream_get_external_filter (IsoStream *stream, IsoExternalFilterCommand **cmd, int flag)
 
int iso_file_add_zisofs_filter (IsoFile *file, int flag)
 
int iso_stream_get_zisofs_par (IsoStream *stream, int *stream_type, uint8_t zisofs_algo[2], uint8_t *algo_num, int *block_size_log2, int flag)
 
int iso_stream_zisofs_discard_bpt (IsoStream *stream, int flag)
 
int iso_image_zisofs_discard_bpt (IsoImage *image, int flag)
 
int iso_zisofs_get_refcounts (off_t *ziso_count, off_t *osiz_count, int flag)
 
int iso_zisofs_set_params (struct iso_zisofs_ctrl *params, int flag)
 
int iso_zisofs_get_params (struct iso_zisofs_ctrl *params, int flag)
 
int iso_zisofs_ctrl_susp_z2 (int enable)
 
int iso_node_zf_by_magic (IsoNode *node, int flag)
 
int iso_file_add_gzip_filter (IsoFile *file, int flag)
 
int iso_gzip_get_refcounts (off_t *gzip_count, off_t *gunzip_count, int flag)
 
int iso_image_get_session_md5 (IsoImage *image, uint32_t *start_lba, uint32_t *end_lba, char md5[16], int flag)
 
int iso_file_get_md5 (IsoImage *image, IsoFile *file, char md5[16], int flag)
 
int iso_file_make_md5 (IsoFile *file, int flag)
 
int iso_util_decode_md5_tag (char data[2048], int *tag_type, uint32_t *pos, uint32_t *range_start, uint32_t *range_size, uint32_t *next_tag, char md5[16], int flag)
 
int iso_md5_start (void **md5_context)
 
int iso_md5_compute (void *md5_context, char *data, int datalen)
 
int iso_md5_clone (void *old_md5_context, void **new_md5_context)
 
int iso_md5_end (void **md5_context, char result[16])
 
int iso_md5_match (char first_md5[16], char second_md5[16])
 
int iso_hfsplus_xinfo_func (void *data, int flag)
 
struct iso_hfsplus_xinfo_dataiso_hfsplus_xinfo_new (int flag)
 
int iso_image_hfsplus_bless (IsoImage *img, enum IsoHfsplusBlessings blessing, IsoNode *node, int flag)
 
int iso_image_hfsplus_get_blessed (IsoImage *img, IsoNode ***blessed_nodes, int *bless_max, int flag)
 
int iso_conv_name_chars (IsoWriteOpts *opts, char *name, size_t name_len, char **result, size_t *result_len, int flag)
 

Variables

unsigned int iso_fs_global_id
 
ino_t serial_id
 

Macro Definition Documentation

◆ ISO_AAIP_ACL_MULT_OBJ

#define ISO_AAIP_ACL_MULT_OBJ   0xE830FE83

ACL text contains multiple entries of user::, group::, other:: (FAILURE, HIGH, -381)

Definition at line 9112 of file libisofs.h.

◆ ISO_AAIP_BAD_AASTRING

#define ISO_AAIP_BAD_AASTRING   0xE830FEAC

Error with decoding AAIP info for ACL or xattr (FAILURE, HIGH, -340)

Definition at line 8939 of file libisofs.h.

◆ ISO_AAIP_BAD_ACL

#define ISO_AAIP_BAD_ACL   0xE830FEAF

Error with decoding ACL from AAIP info (FAILURE, HIGH, -337)

Definition at line 8929 of file libisofs.h.

◆ ISO_AAIP_BAD_ACL_TEXT

#define ISO_AAIP_BAD_ACL_TEXT   0xE830FEAE

Error with encoding ACL for AAIP (FAILURE, HIGH, -338)

Definition at line 8932 of file libisofs.h.

◆ ISO_AAIP_BAD_ATTR_NAME

#define ISO_AAIP_BAD_ATTR_NAME   0xE830FE84

Attribute name cannot be represented (FAILURE, HIGH, -380)

Definition at line 9108 of file libisofs.h.

◆ ISO_AAIP_IGNORED

#define ISO_AAIP_IGNORED   0xB030FEB0

AAIP info with ACL or xattr in ISO image will be ignored (NOTE, HIGH, -336)

Definition at line 8926 of file libisofs.h.

◆ ISO_AAIP_NO_GET_LOCAL

#define ISO_AAIP_NO_GET_LOCAL   0xE830FEAB

Error with reading ACL or xattr from local file (FAILURE, HIGH, -341)

Definition at line 8942 of file libisofs.h.

◆ ISO_AAIP_NO_SET_LOCAL

#define ISO_AAIP_NO_SET_LOCAL   0xE830FEAA

Error with attaching ACL or xattr to local file (FAILURE, HIGH, -342)

Definition at line 8945 of file libisofs.h.

◆ ISO_AAIP_NON_USER_NAME

#define ISO_AAIP_NON_USER_NAME   0xE830FEA9

Unallowed attempt to set an xattr with non-userspace name (FAILURE, HIGH, -343)

Definition at line 8949 of file libisofs.h.

◆ ISO_AAIP_NOT_ENABLED

#define ISO_AAIP_NOT_ENABLED   0xE830FEAD

AAIP processing for ACL or xattr not enabled at compile time (FAILURE, HIGH, -339)

Definition at line 8936 of file libisofs.h.

◆ ISO_ALPHA_BOOT_NOTREG

#define ISO_ALPHA_BOOT_NOTREG   0xE830FE6B

DEC Alpha Boot Loader file is not a data file (FAILURE, HIGH, -405)

Definition at line 9186 of file libisofs.h.

◆ ISO_ASSERT_FAILURE

#define ISO_ASSERT_FAILURE   0xF030FFFC

Internal programming error. Please report this bug (FATAL,HIGH, -4)

Definition at line 8737 of file libisofs.h.

◆ ISO_BAD_FSRC_FILETYPE

#define ISO_BAD_FSRC_FILETYPE   0xE030FE61

Unrecognized file type of IsoFileSrc object (SORRY, HIGH, -415)

Definition at line 9221 of file libisofs.h.

◆ ISO_BAD_GPT_GUID_MODE

#define ISO_BAD_GPT_GUID_MODE   0xE830FE5F

Unrecognized GPT disk GUID setup mode (FAILURE, HIGH, -417)

Definition at line 9229 of file libisofs.h.

◆ ISO_BAD_ISO_FILETYPE

#define ISO_BAD_ISO_FILETYPE   0xE830FE74

Unrecognized file type in ISO image (FAILURE, HIGH, -396)

Definition at line 9159 of file libisofs.h.

◆ ISO_BAD_PARTITION_FILE

#define ISO_BAD_PARTITION_FILE   0xE830FE8E

Cannot open data file for appended partition (FAILURE, HIGH, -370)

Definition at line 9074 of file libisofs.h.

◆ ISO_BAD_PARTITION_NO

#define ISO_BAD_PARTITION_NO   0xE830FE8F

Partition number out of range (FAILURE, HIGH, -369)

Definition at line 9071 of file libisofs.h.

◆ ISO_BOOT_APM_GPT_BSIZE

#define ISO_BOOT_APM_GPT_BSIZE   0xE830FE78

APM block size prevents coexistence with GPT (FAILURE, HIGH, -392)

Definition at line 9147 of file libisofs.h.

◆ ISO_BOOT_APM_OVERLAP

#define ISO_BOOT_APM_OVERLAP   0xE830FE80

Overlapping Apple Partition Map entries requested (FAILURE, HIGH, -384)

Definition at line 9122 of file libisofs.h.

◆ ISO_BOOT_FILE_MISSING

#define ISO_BOOT_FILE_MISSING   0xE430FE90

Boot file missing in image (MISHAP, HIGH, -368)

Definition at line 9068 of file libisofs.h.

◆ ISO_BOOT_GPT_OVERLAP

#define ISO_BOOT_GPT_OVERLAP   0xE830FE7E

Overlapping GPT entries requested (FAILURE, HIGH, -386)

Definition at line 9128 of file libisofs.h.

◆ ISO_BOOT_HFSP_BAD_BSIZE

#define ISO_BOOT_HFSP_BAD_BSIZE   0xE830FE79

Not a supported HFS+ or APM block size (FAILURE, HIGH, -391)

Definition at line 9144 of file libisofs.h.

◆ ISO_BOOT_IMAGE_NOT_VALID

#define ISO_BOOT_IMAGE_NOT_VALID   0xE830FFBB

Trying to use an invalid file as boot image (FAILURE,HIGH, -68)

Definition at line 8780 of file libisofs.h.

◆ ISO_BOOT_IMAGE_OVERFLOW

#define ISO_BOOT_IMAGE_OVERFLOW   0xE830FFBA

Too many boot images (FAILURE,HIGH, -69)

Definition at line 8783 of file libisofs.h.

◆ ISO_BOOT_MBR_COLLISION

#define ISO_BOOT_MBR_COLLISION   0xE830FE7B

Attempt to use an MBR partition entry twice (FAILURE, HIGH, -389)

Definition at line 9137 of file libisofs.h.

◆ ISO_BOOT_MBR_OVERLAP

#define ISO_BOOT_MBR_OVERLAP   0xE830FE7C

Overlapping MBR partition entries requested (FAILURE, HIGH, -388)

Definition at line 9134 of file libisofs.h.

◆ ISO_BOOT_NO_CATALOG

#define ISO_BOOT_NO_CATALOG   0xE830FFB9

No boot catalog created yet ((FAILURE,HIGH, -70)

Definition at line 8786 of file libisofs.h.

◆ ISO_BOOT_NO_EFI_ELTO

#define ISO_BOOT_NO_EFI_ELTO   0xE830FE7A

No suitable El Torito EFI boot image for exposure as GPT partition (FAILURE, HIGH, -390)

Definition at line 9141 of file libisofs.h.

◆ ISO_BOOT_TOO_MANY_APM

#define ISO_BOOT_TOO_MANY_APM   0xE830FE81

Too many Apple Partition Map entries requested (FAILURE, HIGH, -383)

Definition at line 9119 of file libisofs.h.

◆ ISO_BOOT_TOO_MANY_GPT

#define ISO_BOOT_TOO_MANY_GPT   0xE830FE7F

Too many GPT entries requested (FAILURE, HIGH, -385)

Definition at line 9125 of file libisofs.h.

◆ ISO_BOOT_TOO_MANY_MBR

#define ISO_BOOT_TOO_MANY_MBR   0xE830FE7D

Too many MBR partition entries requested (FAILURE, HIGH, -387)

Definition at line 9131 of file libisofs.h.

◆ ISO_BOOT_TOO_MANY_MIPS

#define ISO_BOOT_TOO_MANY_MIPS   0xE830FE91

Too many MIPS Big Endian boot files given (max. 15) (FAILURE, HIGH, -367)

Definition at line 9065 of file libisofs.h.

◆ ISO_BUF_READ_ERROR

#define ISO_BUF_READ_ERROR   0xE830FFF5

Buffer read error (FAILURE,HIGH, -11)

Definition at line 8760 of file libisofs.h.

◆ ISO_CANCELED

#define ISO_CANCELED   0xE830FFFF

Operation canceled (FAILURE,HIGH, -1)

Definition at line 8728 of file libisofs.h.

◆ ISO_CHARSET_CONV_ERROR

#define ISO_CHARSET_CONV_ERROR   0xE830FF00

Charset conversion error (FAILURE,HIGH, -256)

Definition at line 8862 of file libisofs.h.

◆ ISO_DATA_SOURCE_FAILURE

#define ISO_DATA_SOURCE_FAILURE   0xE830FCFF

Read error occurred with IsoDataSource (FAILURE,HIGH, -513)

Definition at line 9274 of file libisofs.h.

◆ ISO_DATA_SOURCE_FATAL

#define ISO_DATA_SOURCE_FATAL   0xF030FCFF

Read error occurred with IsoDataSource (FATAL,HIGH, -513)

Definition at line 9277 of file libisofs.h.

◆ ISO_DATA_SOURCE_MISHAP

#define ISO_DATA_SOURCE_MISHAP   0xE430FCFF

Read error occurred with IsoDataSource (MISHAP,HIGH, -513)

Definition at line 9271 of file libisofs.h.

◆ ISO_DATA_SOURCE_SORRY

#define ISO_DATA_SOURCE_SORRY   0xE030FCFF

Read error occurred with IsoDataSource (SORRY,HIGH, -513)

Definition at line 9268 of file libisofs.h.

◆ ISO_DEAD_SYMLINK

#define ISO_DEAD_SYMLINK   0xE830FE76

Symbolic link cannot be resolved (FAILURE, HIGH, -394)

Definition at line 9153 of file libisofs.h.

◆ ISO_DEEP_SYMLINK

#define ISO_DEEP_SYMLINK   0xE830FE75

Too many chained symbolic links (FAILURE, HIGH, -395)

Definition at line 9156 of file libisofs.h.

◆ ISO_DIR

#define ISO_DIR (   n)    ((IsoDir*)(ISO_NODE_IS_DIR(n) ? n : NULL))

Definition at line 244 of file libisofs.h.

◆ ISO_DISPLACE_ROLLOVER

#define ISO_DISPLACE_ROLLOVER   0xE830FE8C

Displacement offset leads outside 32 bit range (FAILURE, HIGH, -372)

Definition at line 9081 of file libisofs.h.

◆ ISO_EL_TORITO_HIDDEN

#define ISO_EL_TORITO_HIDDEN   0xD030FEB1

El-Torito image is hidden (WARNING,HIGH, -335)

Definition at line 8921 of file libisofs.h.

◆ ISO_EL_TORITO_WARN

#define ISO_EL_TORITO_WARN   0xD030FEB3

El-Torito related warning (WARNING,HIGH, -333)

Definition at line 8915 of file libisofs.h.

◆ ISO_ELTO_EFI_HIDDEN

#define ISO_ELTO_EFI_HIDDEN   0xB030FE5B

El-Torito EFI image is hidden (NOTE,HIGH, -421)

Definition at line 9243 of file libisofs.h.

◆ ISO_ELTORITO_REPORT_DOC

#define ISO_ELTORITO_REPORT_DOC

Text which describes the output format of iso_image_report_el_torito(). It is publicly defined here only as part of the API description. Do not use it as macro in your application but rather call iso_image_report_el_torito() with flag bit0.

Definition at line 4504 of file libisofs.h.

◆ ISO_ERROR

#define ISO_ERROR   0xE830FFFD

Unknown or unexpected error (FAILURE,HIGH, -3)

Definition at line 8734 of file libisofs.h.

◆ ISO_EXTF_TOO_OFTEN

#define ISO_EXTF_TOO_OFTEN   0xE830FEA8

Too many references on a single IsoExternalFilterCommand (FAILURE, HIGH, -344)

Definition at line 8953 of file libisofs.h.

◆ ISO_FATAL_ERROR

#define ISO_FATAL_ERROR   0xF030FFFE

Unknown or unexpected fatal error (FATAL,HIGH, -2)

Definition at line 8731 of file libisofs.h.

◆ ISO_FILE

#define ISO_FILE (   n)    ((IsoFile*)(ISO_NODE_IS_FILE(n) ? n : NULL))

Definition at line 245 of file libisofs.h.

◆ ISO_FILE_ACCESS_DENIED

#define ISO_FILE_ACCESS_DENIED   0xE830FF7E

Access to file is not allowed (FAILURE,HIGH, -130)

Definition at line 8802 of file libisofs.h.

◆ ISO_FILE_ALREADY_OPENED

#define ISO_FILE_ALREADY_OPENED   0xE830FF7F

Trying to open an already opened file (FAILURE,HIGH, -129)

Definition at line 8796 of file libisofs.h.

◆ ISO_FILE_ALREADY_OPENNED

#define ISO_FILE_ALREADY_OPENNED   0xE830FF7F

Definition at line 8799 of file libisofs.h.

◆ ISO_FILE_BAD_PATH

#define ISO_FILE_BAD_PATH   0xE830FF7D

Incorrect path to file (FAILURE,HIGH, -131)

Definition at line 8805 of file libisofs.h.

◆ ISO_FILE_CANT_ADD

#define ISO_FILE_CANT_ADD   0xE030FF71

Definition at line 8846 of file libisofs.h.

◆ ISO_FILE_CANT_WRITE

#define ISO_FILE_CANT_WRITE   0xE430FF73

Definition at line 8838 of file libisofs.h.

◆ ISO_FILE_DOESNT_EXIST

#define ISO_FILE_DOESNT_EXIST   0xE830FF7C

The file does not exist in the filesystem (FAILURE,HIGH, -132)

Definition at line 8808 of file libisofs.h.

◆ ISO_FILE_ERROR

#define ISO_FILE_ERROR   0xE830FF80

Error on file operation (FAILURE,HIGH, -128) (take a look at more specified error codes below)

Definition at line 8793 of file libisofs.h.

◆ ISO_FILE_IGNORED

#define ISO_FILE_IGNORED   0xD020FF75

File not supported in ECMA-119 tree and thus ignored (WARNING,MEDIUM, -139)

Definition at line 8832 of file libisofs.h.

◆ ISO_FILE_IMGPATH_WRONG

#define ISO_FILE_IMGPATH_WRONG   0xD020FF70

File path break specification constraints and will be ignored (WARNING,MEDIUM, -144)

Definition at line 8852 of file libisofs.h.

◆ ISO_FILE_IS_DIR

#define ISO_FILE_IS_DIR   0xE830FF7A

Directory used where no dir is expected (FAILURE,HIGH, -134)

Definition at line 8817 of file libisofs.h.

◆ ISO_FILE_IS_NOT_DIR

#define ISO_FILE_IS_NOT_DIR   0xE830FF78

Not dir used where a dir is expected (FAILURE,HIGH, -136)

Definition at line 8823 of file libisofs.h.

◆ ISO_FILE_IS_NOT_SYMLINK

#define ISO_FILE_IS_NOT_SYMLINK   0xE830FF77

Not symlink used where a symlink is expected (FAILURE,HIGH, -137)

Definition at line 8826 of file libisofs.h.

◆ ISO_FILE_NOT_OPENED

#define ISO_FILE_NOT_OPENED   0xE830FF7B

Trying to read or close a file not opened (FAILURE,HIGH, -133)

Definition at line 8811 of file libisofs.h.

◆ ISO_FILE_NOT_OPENNED

#define ISO_FILE_NOT_OPENNED   ISO_FILE_NOT_OPENED

Definition at line 8814 of file libisofs.h.

◆ ISO_FILE_OFFSET_TOO_BIG

#define ISO_FILE_OFFSET_TOO_BIG   0xE830FF6A

Offset greater than file size (FAILURE,HIGH, -150)

Since
0.6.4

Definition at line 8858 of file libisofs.h.

◆ ISO_FILE_READ_ERROR

#define ISO_FILE_READ_ERROR   0xE830FF79

Read error (FAILURE,HIGH, -135)

Definition at line 8820 of file libisofs.h.

◆ ISO_FILE_SEEK_ERROR

#define ISO_FILE_SEEK_ERROR   0xE830FF76

Can't seek to specified location (FAILURE,HIGH, -138)

Definition at line 8829 of file libisofs.h.

◆ ISO_FILE_TOO_BIG

#define ISO_FILE_TOO_BIG   0xE830FF74

Definition at line 8835 of file libisofs.h.

◆ ISO_FILENAME_WRONG_CHARSET

#define ISO_FILENAME_WRONG_CHARSET   0xD020FF72

Definition at line 8841 of file libisofs.h.

◆ ISO_FILENAME_WRONG_CHARSET_OLD

#define ISO_FILENAME_WRONG_CHARSET_OLD   0xC020FF72

Definition at line 8843 of file libisofs.h.

◆ ISO_FILTER_WRONG_INPUT

#define ISO_FILTER_WRONG_INPUT   0xE830FEA5

Filter input differs from previous run (FAILURE, HIGH, -347)

Definition at line 8962 of file libisofs.h.

◆ ISO_GENERAL_NOTE

#define ISO_GENERAL_NOTE   0xB030FE62

General note (NOTE, HIGH, -414)

Definition at line 9218 of file libisofs.h.

◆ ISO_GPT_NO_VOL_UUID

#define ISO_GPT_NO_VOL_UUID   0xE830FE60

Cannot derive GPT GUID from undefined pseudo-UUID volume timestamp (FAILURE, HIGH, -416)

Definition at line 9225 of file libisofs.h.

◆ ISO_HFSP_NO_MANGLE

#define ISO_HFSP_NO_MANGLE   0xE830FE77

Name collision in HFS+, mangling not possible (FAILURE, HIGH, -393)

Definition at line 9150 of file libisofs.h.

◆ ISO_HFSPLUS_TOO_MANY_FILES

#define ISO_HFSPLUS_TOO_MANY_FILES   0xE830FE5A

Too many files in HFS+ directory tree (FAILURE, HIGH, -422)

Definition at line 9246 of file libisofs.h.

◆ ISO_HPPA_PALO_CMDLEN

#define ISO_HPPA_PALO_CMDLEN   0xE830FE6E

HP-PA PALO command line too long (FAILURE, HIGH, -402)

Definition at line 9177 of file libisofs.h.

◆ ISO_HPPA_PALO_INCOMPL

#define ISO_HPPA_PALO_INCOMPL   0xE830FE71

Incomplete HP-PA PALO boot parameters (FAILURE, HIGH, -399)

Definition at line 9168 of file libisofs.h.

◆ ISO_HPPA_PALO_NOTREG

#define ISO_HPPA_PALO_NOTREG   0xE830FE6F

HP-PA PALO file is not a data file (FAILURE, HIGH, -401)

Definition at line 9174 of file libisofs.h.

◆ ISO_HPPA_PALO_OFLOW

#define ISO_HPPA_PALO_OFLOW   0xE830FE70

HP-PA PALO boot address exceeds 2 GB (FAILURE, HIGH, -400)

Definition at line 9171 of file libisofs.h.

◆ ISO_IMAGE_ALREADY_BOOTABLE

#define ISO_IMAGE_ALREADY_BOOTABLE   0xE830FFBC

Try to set the boot image of an already bootable image (FAILURE,HIGH, -67)

Definition at line 8777 of file libisofs.h.

◆ ISO_IMAGE_WRITE_CANCELED

#define ISO_IMAGE_WRITE_CANCELED   0xE430FEB2

Image write cancelled (MISHAP,HIGH, -334)

Definition at line 8918 of file libisofs.h.

◆ ISO_IMPORT_COLLISION

#define ISO_IMPORT_COLLISION   0xD030FE72

File name collision during ISO image import (WARNING, HIGH, -398)

Definition at line 9165 of file libisofs.h.

◆ ISO_INQ_SYSAREA_PROP

#define ISO_INQ_SYSAREA_PROP   0xE830FE6C

Unrecognized inquiry for system area property (FAILURE, HIGH, -404)

Definition at line 9183 of file libisofs.h.

◆ ISO_INTERRUPTED

#define ISO_INTERRUPTED   0xF030FFF9

Interrupted by a signal (FATAL,HIGH, -7)

Definition at line 8748 of file libisofs.h.

◆ ISO_INTVL_READ_PROBLEM

#define ISO_INTVL_READ_PROBLEM   0xD030FE68

Unreadable file, premature EOF, or failure to seek for interval reader (WARNING, HIGH, -408)

Definition at line 9196 of file libisofs.h.

◆ ISO_ISOLINUX_CANT_PATCH

#define ISO_ISOLINUX_CANT_PATCH   0xE030FEB9

Can't patch an isolinux boot image (SORRY,HIGH, -327)

Definition at line 8897 of file libisofs.h.

◆ iso_lib_header_version_major

#define iso_lib_header_version_major   1

The following two functions and three macros are utilities to help ensuring version match of application, compile time header, and runtime library. These three release version numbers tell the revision of this header file and of the API it describes. They are memorized by applications at compile time. They must show the same values as these symbols in ./configure.ac LIBISOFS_MAJOR_VERSION=... LIBISOFS_MINOR_VERSION=... LIBISOFS_MICRO_VERSION=... Note to anybody who does own work inside libisofs: Any change of configure.ac or libisofs.h has to keep up this equality !

Before usage of these macros on your code, please read the usage discussion below.

Since
0.6.2

Definition at line 95 of file libisofs.h.

◆ iso_lib_header_version_micro

#define iso_lib_header_version_micro   4

Definition at line 97 of file libisofs.h.

◆ iso_lib_header_version_minor

#define iso_lib_header_version_minor   5

Definition at line 96 of file libisofs.h.

◆ ISO_LIBJTE_END_FAILED

#define ISO_LIBJTE_END_FAILED   0xE830FE93

Failed to finish Jigdo Template Extraction (FAILURE, HIGH, -365)

Definition at line 9058 of file libisofs.h.

◆ ISO_LIBJTE_FILE_FAILED

#define ISO_LIBJTE_FILE_FAILED   0xE430FE92

Failed to process file for Jigdo Template Extraction (MISHAP, HIGH, -366)

Definition at line 9062 of file libisofs.h.

◆ ISO_LIBJTE_NOT_ENABLED

#define ISO_LIBJTE_NOT_ENABLED   0xE830FE95

Use of libjte was not enabled at compile time (FAILURE, HIGH, -363)

Definition at line 9052 of file libisofs.h.

◆ iso_libjte_req_major

#define iso_libjte_req_major   2

The minimum version of libjte to be used with this version of libisofs at compile time. The use of libjte is optional and depends on configure tests. It can be prevented by ./configure option –disable-libjte .

Since
0.6.38

Definition at line 2396 of file libisofs.h.

◆ iso_libjte_req_micro

#define iso_libjte_req_micro   0

Definition at line 2398 of file libisofs.h.

◆ iso_libjte_req_minor

#define iso_libjte_req_minor   0

Definition at line 2397 of file libisofs.h.

◆ ISO_LIBJTE_START_FAILED

#define ISO_LIBJTE_START_FAILED   0xE830FE94

Failed to start up Jigdo Template Extraction (FAILURE, HIGH, -364)

Definition at line 9055 of file libisofs.h.

◆ ISO_MALFORMED_READ_INTVL

#define ISO_MALFORMED_READ_INTVL   0xE830FE69

Malformed description string for interval reader (FAILURE, HIGH, -407)

Definition at line 9192 of file libisofs.h.

◆ ISO_MANGLE_TOO_MUCH_FILES

#define ISO_MANGLE_TOO_MUCH_FILES   0xE830FEFF

Too many files to mangle, i.e. we cannot guarantee unique file names (FAILURE,HIGH, -257)

Definition at line 8868 of file libisofs.h.

◆ ISO_MAX_SYSAREA_LINE_LENGTH

#define ISO_MAX_SYSAREA_LINE_LENGTH   4096

The maximum length of a single line in the output of function iso_image_report_system_area() and iso_image_report_el_torito(). This number includes the trailing 0.

Since
1.3.8

Definition at line 4241 of file libisofs.h.

◆ ISO_MD5_AREA_CORRUPTED

#define ISO_MD5_AREA_CORRUPTED   0xD030FEA0

Checksum area or checksum tag appear corrupted (WARNING,HIGH, -352)

Since
0.6.22

Definition at line 8981 of file libisofs.h.

◆ ISO_MD5_STREAM_CHANGE

#define ISO_MD5_STREAM_CHANGE   0xE430FE9A

Detected file content changes while it was written into the image. (MISHAP, HIGH, -358)

Since
0.6.22

Definition at line 9021 of file libisofs.h.

◆ ISO_MD5_TAG_COPIED

#define ISO_MD5_TAG_COPIED   0xD030FE88

Found copied superblock checksum tag (WARNING, HIGH, -376)

Definition at line 9096 of file libisofs.h.

◆ ISO_MD5_TAG_MISMATCH

#define ISO_MD5_TAG_MISMATCH   0xE830FE9F

Checksum mismatch between checksum tag and data blocks (FAILURE, HIGH, -353)

Since
0.6.22

Definition at line 8988 of file libisofs.h.

◆ ISO_MD5_TAG_MISPLACED

#define ISO_MD5_TAG_MISPLACED   0xD030FE9C

Misplaced checksum tag encountered. (WARNING, HIGH, -356)

Since
0.6.22

Definition at line 9007 of file libisofs.h.

◆ ISO_MD5_TAG_OTHER_RANGE

#define ISO_MD5_TAG_OTHER_RANGE   0xD030FE9B

Checksum tag with unexpected address range encountered. (WARNING, HIGH, -357)

Since
0.6.22

Definition at line 9014 of file libisofs.h.

◆ ISO_MD5_TAG_UNEXPECTED

#define ISO_MD5_TAG_UNEXPECTED   0xD030FE9D

Unexpected checksum tag type encountered. (WARNING, HIGH, -355)

Since
0.6.22

Definition at line 9001 of file libisofs.h.

◆ ISO_MSGS_MESSAGE_LEN

#define ISO_MSGS_MESSAGE_LEN   4096

Definition at line 6645 of file libisofs.h.

◆ ISO_MULTI_OVER_IMPORTED

#define ISO_MULTI_OVER_IMPORTED   0xE830FE5C

Multi-session would overwrite imported_iso interval (FAILURE, HIGH, -420)

Definition at line 9240 of file libisofs.h.

◆ ISO_NAME_NEEDS_TRANSL

#define ISO_NAME_NEEDS_TRANSL   0xE830FE8B

File name cannot be written into ECMA-119 untranslated (FAILURE, HIGH, -373)

Definition at line 9085 of file libisofs.h.

◆ ISO_NAME_NOT_UCS2

#define ISO_NAME_NOT_UCS2   0xD030FE73

Filename not suitable for character set UCS-2 (WARNING, HIGH, -397)

Definition at line 9162 of file libisofs.h.

◆ ISO_NO_KEPT_DATA_SRC

#define ISO_NO_KEPT_DATA_SRC   0xD030FE6A

No data source of imported ISO image available (WARNING, HIGH, -406)

Definition at line 9189 of file libisofs.h.

◆ ISO_NO_ROOT_DIR

#define ISO_NO_ROOT_DIR   0xF030FE5E

Unable to obtain root directory (FATAL,HIGH, -418)

Definition at line 9232 of file libisofs.h.

◆ ISO_NODE

#define ISO_NODE (   n)    ((IsoNode*)n)

Definition at line 249 of file libisofs.h.

◆ ISO_NODE_ALREADY_ADDED

#define ISO_NODE_ALREADY_ADDED   0xE830FFC0

Trying to add to a dir a node already added to a dir (FAILURE,HIGH, -64)

Definition at line 8763 of file libisofs.h.

◆ ISO_NODE_DOESNT_EXIST

#define ISO_NODE_DOESNT_EXIST   0xE830FFBD

A requested node does not exist (FAILURE,HIGH, -66)

Definition at line 8772 of file libisofs.h.

◆ ISO_NODE_IS_BOOTCAT

#define ISO_NODE_IS_BOOTCAT (   n)    (iso_node_get_type(n) == LIBISO_BOOT)

Definition at line 241 of file libisofs.h.

◆ ISO_NODE_IS_DIR

#define ISO_NODE_IS_DIR (   n)    (iso_node_get_type(n) == LIBISO_DIR)

Definition at line 237 of file libisofs.h.

◆ ISO_NODE_IS_FILE

#define ISO_NODE_IS_FILE (   n)    (iso_node_get_type(n) == LIBISO_FILE)

Definition at line 238 of file libisofs.h.

◆ ISO_NODE_IS_SPECIAL

#define ISO_NODE_IS_SPECIAL (   n)    (iso_node_get_type(n) == LIBISO_SPECIAL)

Definition at line 240 of file libisofs.h.

◆ ISO_NODE_IS_SYMLINK

#define ISO_NODE_IS_SYMLINK (   n)    (iso_node_get_type(n) == LIBISO_SYMLINK)

Definition at line 239 of file libisofs.h.

◆ ISO_NODE_NAME_NOT_UNIQUE

#define ISO_NODE_NAME_NOT_UNIQUE   0xE830FFBF

Node with same name already exists (FAILURE,HIGH, -65)

Definition at line 8766 of file libisofs.h.

◆ ISO_NODE_NOT_ADDED_TO_DIR

#define ISO_NODE_NOT_ADDED_TO_DIR   0xE830FFBE

Trying to remove a node that was not added to dir (FAILURE,HIGH, -65)

Definition at line 8769 of file libisofs.h.

◆ ISO_NON_MBR_SYS_AREA

#define ISO_NON_MBR_SYS_AREA   0xE830FE8D

May not combine MBR partition with non-MBR system area (FAILURE, HIGH, -371)

Definition at line 9078 of file libisofs.h.

◆ ISO_NONE

#define ISO_NONE   0

special return value, it could be or not an error depending on the context.

Definition at line 8725 of file libisofs.h.

◆ ISO_NOT_REPRODUCIBLE

#define ISO_NOT_REPRODUCIBLE   0xB030FE67

Cannot arrange content of data files in surely reproducible way (NOTE, HIGH, -409)

Definition at line 9200 of file libisofs.h.

◆ ISO_NULL_POINTER

#define ISO_NULL_POINTER   0xE830FFFB

NULL pointer as value for an arg. that doesn't allow NULL (FAILURE,HIGH, -5)

Definition at line 8742 of file libisofs.h.

◆ ISO_OUT_OF_MEM

#define ISO_OUT_OF_MEM   0xF030FFFA

Memory allocation error (FATAL,HIGH, -6)

Definition at line 8745 of file libisofs.h.

◆ ISO_OVWRT_FIFO_TOO_SMALL

#define ISO_OVWRT_FIFO_TOO_SMALL   0xE830FE96

The ring buffer is smaller than 64 kB + partition offset. (FAILURE, HIGH, -362)

Definition at line 9049 of file libisofs.h.

◆ ISO_OVWRT_MS_TOO_SMALL

#define ISO_OVWRT_MS_TOO_SMALL   0xE830FE98

The setting of iso_write_opts_set_ms_block() leaves not enough room for the prescibed size of iso_write_opts_set_overwrite_buf(). (FAILURE, HIGH, -360)

Since
0.6.36

Definition at line 9036 of file libisofs.h.

◆ ISO_PART_OFFST_TOO_SMALL

#define ISO_PART_OFFST_TOO_SMALL   0xE830FE97

The partition offset is not 0 and leaves not not enough room for system area, volume descriptors, and checksum tags of the first tree. (FAILURE, HIGH, -361)

Definition at line 9043 of file libisofs.h.

◆ ISO_PATCH_FILTERED_BOOT

#define ISO_PATCH_FILTERED_BOOT   0xE830FE66

May not write boot info into filtered stream of boot image (FAILURE, HIGH, -410)

Definition at line 9204 of file libisofs.h.

◆ ISO_PATCH_OVERSIZED_BOOT

#define ISO_PATCH_OVERSIZED_BOOT   0xE830FE65

Boot image to large to buffer for writing boot info (FAILURE, HIGH, -411)

Definition at line 9208 of file libisofs.h.

◆ ISO_RR_NAME_RESERVED

#define ISO_RR_NAME_RESERVED   0xE830FE86

Reserved Rock Ridge leaf name (FAILURE, HIGH, -378)

Definition at line 9102 of file libisofs.h.

◆ ISO_RR_NAME_TOO_LONG

#define ISO_RR_NAME_TOO_LONG   0xE830FE87

Rock Ridge leaf name too long (FAILURE, HIGH, -377)

Definition at line 9099 of file libisofs.h.

◆ ISO_RR_NAME_TRUNCATED

#define ISO_RR_NAME_TRUNCATED   0xD030FE64

File name had to be truncated and MD5 marked (WARNING, HIGH, -412)

Definition at line 9211 of file libisofs.h.

◆ ISO_RR_PATH_TOO_LONG

#define ISO_RR_PATH_TOO_LONG   0xE830FE85

Rock Ridge path too long (FAILURE, HIGH, -379)

Definition at line 9105 of file libisofs.h.

◆ ISO_SB_TREE_CORRUPTED

#define ISO_SB_TREE_CORRUPTED   0xE830FE9E

Checksum mismatch in System Area, Volume Descriptors, or directory tree. (FAILURE, HIGH, -354)

Since
0.6.22

Definition at line 8995 of file libisofs.h.

◆ ISO_SCDBACKUP_TAG_NOT_0

#define ISO_SCDBACKUP_TAG_NOT_0   0xD030FE99

Session does not start at LBA 0. scdbackup checksum tag not written. (WARNING, HIGH, -359)

Since
0.6.24

Definition at line 9028 of file libisofs.h.

◆ ISO_SECT_SCATTERED

#define ISO_SECT_SCATTERED   0xE830FE82

File sections do not form consecutive array of blocks (FAILURE, HIGH, -382)

Definition at line 9116 of file libisofs.h.

◆ ISO_SPECIAL

#define ISO_SPECIAL (   n)    ((IsoSpecial*)(ISO_NODE_IS_SPECIAL(n) ? n : NULL))

Definition at line 247 of file libisofs.h.

◆ ISO_STREAM_NO_CLONE

#define ISO_STREAM_NO_CLONE   0xE830FE8A

Data file input stream object offers no cloning method (FAILURE, HIGH, -374)

Definition at line 9089 of file libisofs.h.

◆ ISO_SUCCESS

#define ISO_SUCCESS   1

successfully execution

Definition at line 8719 of file libisofs.h.

◆ ISO_SUSP_MULTIPLE_ER

#define ISO_SUSP_MULTIPLE_ER   0xD030FEB5

Multiple ER SUSP entries found (WARNING,HIGH, -331)

Definition at line 8909 of file libisofs.h.

◆ ISO_SUSP_UNHANDLED

#define ISO_SUSP_UNHANDLED   0xC020FEB6

Error on a RR entry that can be ignored (HINT,MEDIUM, -330)

Definition at line 8906 of file libisofs.h.

◆ ISO_SUSP_WRONG_CE_SIZE

#define ISO_SUSP_WRONG_CE_SIZE   0xE830FE5D

Zero sized, oversized, or mislocated SUSP CE area found (FAILURE, HIGH, -419)

Definition at line 9236 of file libisofs.h.

◆ ISO_SYMLINK

#define ISO_SYMLINK (   n)    ((IsoSymlink*)(ISO_NODE_IS_SYMLINK(n) ? n : NULL))

Definition at line 246 of file libisofs.h.

◆ ISO_SYSAREA_PROBLEMS

#define ISO_SYSAREA_PROBLEMS   0xD030FE6D

Problems encountered during inspection of System Area (WARN, HIGH, -403)

Definition at line 9180 of file libisofs.h.

◆ ISO_SYSAREA_REPORT_DOC

#define ISO_SYSAREA_REPORT_DOC
Value:
\
"Report format for recognized System Area data.", \
"", \
"No text will be reported if no System Area was loaded or if it was", \
"entirely filled with 0-bytes.", \
"Else there will be at least these three lines:", \
" System area options: hex", \
" see libisofs.h, parameter of iso_write_opts_set_system_area().", \
" System area summary: word ... word", \
" human readable interpretation of system area options and other info", \
" The words are from the set:", \
" { MBR, CHRP, PReP, GPT, APM, MIPS-Big-Endian, MIPS-Little-Endian,", \
" SUN-SPARC-Disk-Label, HP-PA-PALO, DEC-Alpha, ", \
" protective-msdos-label, isohybrid, grub2-mbr,", \
" cyl-align-{auto,on,off,all}, not-recognized, }", \
" The acronyms indicate boot data for particular hardware/firmware.", \
" protective-msdos-label is an MBR conformant to specs of GPT.", \
" isohybrid is an MBR implementing ISOLINUX isohybrid functionality.", \
" grub2-mbr is an MBR with GRUB2 64 bit address patching.", \
" cyl-align-on indicates that the ISO image MBR partition ends at a", \
" cylinder boundary. cyl-align-all means that more MBR partitions", \
" exist and all end at a cylinder boundary.", \
" not-recognized tells about unrecognized non-zero system area data.", \
" ISO image size/512 : decimal", \
" size of ISO image in block units of 512 bytes.", \
""

Texts which describe the output format of iso_image_report_system_area(). They are publicly defined here only as part of the API description. Do not use these macros in your application but rather call iso_image_report_system_area() with flag bit0.

Definition at line 4249 of file libisofs.h.

◆ ISO_SYSAREA_REPORT_DOC_ALPHA

#define ISO_SYSAREA_REPORT_DOC_ALPHA
Value:
"If a DEC Alpha SRM boot sector is present:", \
" DEC Alpha ldr size : decimal", \
" tells the number of 512-byte blocks in DEC Alpha Secondary Bootstrap", \
" Loader file.", \
" DEC Alpha ldr adr : decimal", \
" tells the start of the loader file in units of 512-byte blocks.", \
" DEC Alpha ldr path : path", \
" tells the path of a file in the ISO image which starts at the loader", \
" start address."

Definition at line 4449 of file libisofs.h.

◆ ISO_SYSAREA_REPORT_DOC_APM

#define ISO_SYSAREA_REPORT_DOC_APM
Value:
\
"Apple partition map can coexist with MBR and GPT:", \
" APM : N Info", \
" headline for human readers.", \
" APM block size : decimal", \
" block size of Apple Partition Map. 512 or 2048. This applies to", \
" start address and size of all partitions in the APM.", \
" APM gap fillers : decimal", \
" tells the number of partitions with name \"Gap[0-9[0-9]]\" and type", \
" \"ISO9660_data\".", \
" APM partition name : X text", \
" the name of partition X. Up to 32 characters.", \
" APM partition type : X text", \
" the type string of partition X. Up to 32 characters.", \
" APM start and size : X decimal decimal", \
" start block and number of blocks of partition X.", \
" APM partition path : X path", \
" the path of a file in the ISO image which begins at the partition", \
" start block of partition X.", \
""

Definition at line 4363 of file libisofs.h.

◆ ISO_SYSAREA_REPORT_DOC_GPT1

#define ISO_SYSAREA_REPORT_DOC_GPT1

Definition at line 4299 of file libisofs.h.

◆ ISO_SYSAREA_REPORT_DOC_GPT2

#define ISO_SYSAREA_REPORT_DOC_GPT2
Value:
\
" GPT partition name : X hex_digits", \
" up to 144 hex digits giving the UTF-16LE name byte string of", \
" partition X. Trailing 16 bit 0-characters are omitted.", \
" GPT partname local : X text", \
" the name of partition X converted to the local character set.", \
" This line may be missing if the name cannot be converted, or is", \
" empty.", \
" GPT partition GUID : X hex_digits", \
" 32 hex digits giving the byte string of the GUID of partition X.", \
" GPT type GUID : X hex_digits", \
" 32 hex digits giving the byte string of the type GUID of partition X.", \
" GPT partition flags: X hex", \
" 64 flag bits of partition X in hex representation.", \
" Known bit meanings are:", \
" bit0 = \"System Partition\" Do not alter.", \
" bit2 = Legacy BIOS bootable (MBR partition type 0x80)", \
" bit60= read-only", \
" GPT start and size : X decimal decimal", \
" start block and number of blocks of partition X. 512 bytes per block.", \
" GPT partition path : X path", \
" the path of a file in the ISO image which begins at the partition", \
" start block of partition X.", \
""

Definition at line 4338 of file libisofs.h.

◆ ISO_SYSAREA_REPORT_DOC_HPPA

#define ISO_SYSAREA_REPORT_DOC_HPPA
Value:
\
"If a HP-PA PALO boot sector version 4 or 5 is present:", \
" PALO header version: decimal", \
" tells the PALO header version: 4 or 5.", \
" HP-PA cmdline : text", \
" tells the command line for the kernels.", \
" HP-PA boot files : ByteAddr ByteSize Path", \
" headline for human readers.", \
" HP-PA 32-bit kernel: decimal decimal path", \
" tells start byte, byte count, and file path of the 32-bit kernel.", \
" HP-PA 64-bit kernel: decimal decimal path", \
" tells the same for the 64-bit kernel.", \
" HP-PA ramdisk : decimal decimal path", \
" tells the same for the ramdisk file.", \
" HP-PA bootloader : decimal decimal path", \
" tells the same for the bootloader file.", \
""

Definition at line 4431 of file libisofs.h.

◆ ISO_SYSAREA_REPORT_DOC_MBR

#define ISO_SYSAREA_REPORT_DOC_MBR
Value:
\
"If an MBR is detected, with at least one partition entry of non-zero size,", \
"then there may be:", \
" Partition offset : decimal", \
" if not 0 then a second ISO 9660 superblock was found to which", \
" MBR partition 1 or GPT partition 1 is pointing.", \
" MBR heads per cyl : decimal", \
" conversion factor between MBR C/H/S address and LBA. 0=inconsistent.", \
" MBR secs per head : decimal", \
" conversion factor between MBR C/H/S address and LBA. 0=inconsistent.", \
" MBR partition table: N Status Type Start Blocks", \
" headline for MBR partition table.", \
" MBR partition : X hex hex decimal decimal", \
" gives partition number, status byte, type byte, start block,", \
" and number of blocks. 512 bytes per block.", \
" MBR partition path : X path", \
" the path of a file in the ISO image which begins at the partition", \
" start block of partition X.", \
" PReP boot partition: decimal decimal", \
" gives start block and size of a PReP boot partition in ISO 9660", \
" block units of 2048 bytes.", \
""

Definition at line 4276 of file libisofs.h.

◆ ISO_SYSAREA_REPORT_DOC_MIPS

#define ISO_SYSAREA_REPORT_DOC_MIPS
Value:
\
"If a MIPS Big Endian Volume Header is detected, there may be:", \
" MIPS-BE volume dir : N Name Block Bytes", \
" headline for human readers.", \
" MIPS-BE boot entry : X upto8chr decimal decimal", \
" tells name, 512-byte block address, and byte count of boot entry X.", \
" MIPS-BE boot path : X path", \
" tells the path to the boot image file in the ISO image which belongs", \
" to the block address given by boot entry X.", \
"", \
"If a DEC Boot Block for MIPS Little Endian is detected, there may be:", \
" MIPS-LE boot map : LoadAddr ExecAddr SegmentSize SegmentStart", \
" headline for human readers.", \
" MIPS-LE boot params: decimal decimal decimal decimal", \
" tells four numbers which are originally derived from the ELF header", \
" of the boot file. The first two are counted in bytes, the other two", \
" are counted in blocks of 512 bytes.", \
" MIPS-LE boot path : path", \
" tells the path to the boot file in the ISO image which belongs to the", \
" address given by SegmentStart.", \
" MIPS-LE elf offset : decimal", \
" tells the relative 512-byte block offset inside the boot file:", \
" SegmentStart - FileStartBlock", \
""

Definition at line 4384 of file libisofs.h.

◆ ISO_SYSAREA_REPORT_DOC_SUN

#define ISO_SYSAREA_REPORT_DOC_SUN
Value:
\
"If a SUN SPARC Disk Label is present:", \
" SUN SPARC disklabel: text", \
" tells the disk label text.", \
" SUN SPARC secs/head: decimal", \
" tells the number of sectors per head.", \
" SUN SPARC heads/cyl: decimal", \
" tells the number of heads per cylinder.", \
" SUN SPARC partmap : N IdTag Perms StartCyl NumBlock", \
" headline for human readers.", \
" SUN SPARC partition: X hex hex decimal decimal", \
" gives partition number, type word, permission word, start cylinder,", \
" and number of of blocks. 512 bytes per block. Type word may be: ", \
" 0=unused, 2=root partition with boot, 4=user partition.", \
" Permission word is 0x10 = read-only.", \
" SPARC GRUB2 core : decimal decimal", \
" tells byte address and byte count of the GRUB2 SPARC core file.", \
" SPARC GRUB2 path : path", \
" tells the path to the data file in the ISO image which belongs to the", \
" address given by core.", \
""

Definition at line 4409 of file libisofs.h.

◆ ISO_THREAD_ERROR

#define ISO_THREAD_ERROR   0xF030FFF7

Can't create a needed thread (FATAL,HIGH, -9)

Definition at line 8754 of file libisofs.h.

◆ ISO_TRUNCATE_ISOFSNT

#define ISO_TRUNCATE_ISOFSNT   0xB030FE63

File name truncation length changed by loaded image info (NOTE, HIGH, -413)

Definition at line 9215 of file libisofs.h.

◆ ISO_UNSUPPORTED_ECMA119

#define ISO_UNSUPPORTED_ECMA119   0xE830FEBC

Unsupported ECMA-119 feature (FAILURE,HIGH, -324)

Definition at line 8888 of file libisofs.h.

◆ ISO_UNSUPPORTED_EL_TORITO

#define ISO_UNSUPPORTED_EL_TORITO   0xD030FEBA

Unsupported El-Torito feature (WARN,HIGH, -326)

Definition at line 8894 of file libisofs.h.

◆ ISO_UNSUPPORTED_RR

#define ISO_UNSUPPORTED_RR   0xE030FEBE

Unsupported RR feature (SORRY,HIGH, -322)

Definition at line 8882 of file libisofs.h.

◆ ISO_UNSUPPORTED_SUSP

#define ISO_UNSUPPORTED_SUSP   0xE030FEB8

Unsupported SUSP feature (SORRY,HIGH, -328)

Definition at line 8900 of file libisofs.h.

◆ ISO_UNSUPPORTED_VD

#define ISO_UNSUPPORTED_VD   0xC020FEB4

Unsupported volume descriptor found (HINT,MEDIUM, -332)

Definition at line 8912 of file libisofs.h.

◆ ISO_WRITE_ERROR

#define ISO_WRITE_ERROR   0xE830FFF6

Write error (FAILURE,HIGH, -10)

Definition at line 8757 of file libisofs.h.

◆ ISO_WRONG_ARG_VALUE

#define ISO_WRONG_ARG_VALUE   0xE830FFF8

Invalid parameter value (FAILURE,HIGH, -8)

Definition at line 8751 of file libisofs.h.

◆ ISO_WRONG_ECMA119

#define ISO_WRONG_ECMA119   0xE830FEBD

Wrong or damaged ECMA-119 (FAILURE,HIGH, -323)

Definition at line 8885 of file libisofs.h.

◆ ISO_WRONG_EL_TORITO

#define ISO_WRONG_EL_TORITO   0xD030FEBB

Wrong or damaged El-Torito catalog (WARN,HIGH, -325)

Definition at line 8891 of file libisofs.h.

◆ ISO_WRONG_PVD

#define ISO_WRONG_PVD   0xE830FEC0

Wrong or damaged Primary Volume Descriptor (FAILURE,HIGH, -320) This could mean that the file is not a valid ISO image.

Definition at line 8876 of file libisofs.h.

◆ ISO_WRONG_RR

#define ISO_WRONG_RR   0xE030FEBF

Wrong or damaged RR entry (SORRY,HIGH, -321)

Definition at line 8879 of file libisofs.h.

◆ ISO_WRONG_RR_WARN

#define ISO_WRONG_RR_WARN   0xD030FEB7

Error on a RR entry that can be ignored (WARNING,HIGH, -329)

Definition at line 8903 of file libisofs.h.

◆ ISO_XINFO_NO_CLONE

#define ISO_XINFO_NO_CLONE   0xE830FE89

Extended information class offers no cloning method (FAILURE, HIGH, -375)

Definition at line 9093 of file libisofs.h.

◆ ISO_ZISOFS_BPT_UNDERRUN

#define ISO_ZISOFS_BPT_UNDERRUN   0xD020FE58

Prevented zisofs block pointer counter underrun (WARNING,MEDIUM, -424)

Definition at line 9252 of file libisofs.h.

◆ ISO_ZISOFS_PARAM_LOCK

#define ISO_ZISOFS_PARAM_LOCK   0xE830FEA2

Cannot set global zisofs parameters while filters exist (FAILURE, HIGH, -350)

Definition at line 8972 of file libisofs.h.

◆ ISO_ZISOFS_TOO_LARGE

#define ISO_ZISOFS_TOO_LARGE   0xE830FEA6

File too large. Cannot apply zisofs filter. (FAILURE, HIGH, -346)

Definition at line 8959 of file libisofs.h.

◆ ISO_ZISOFS_TOO_MANY_PTR

#define ISO_ZISOFS_TOO_MANY_PTR   0xE830FE59

Too many zisofs block pointers needed overall (FAILURE, HIGH, -423)

Definition at line 9249 of file libisofs.h.

◆ ISO_ZISOFS_UNKNOWN_SIZE

#define ISO_ZISOFS_UNKNOWN_SIZE   0xE830FE57

Cannot obtain size of zisofs compressed stream (FAILURE, HIGH, -425)

Definition at line 9255 of file libisofs.h.

◆ ISO_ZISOFS_WRONG_INPUT

#define ISO_ZISOFS_WRONG_INPUT   0xE830FEA3

Input stream is not in a supported zisofs format (FAILURE, HIGH, -349)

Definition at line 8968 of file libisofs.h.

◆ ISO_ZLIB_COMPR_ERR

#define ISO_ZLIB_COMPR_ERR   0xE830FEA4

zlib compression/decompression error (FAILURE, HIGH, -348)

Definition at line 8965 of file libisofs.h.

◆ ISO_ZLIB_EARLY_EOF

#define ISO_ZLIB_EARLY_EOF   0xE830FEA1

Premature EOF of zlib input stream (FAILURE, HIGH, -351)

Definition at line 8975 of file libisofs.h.

◆ ISO_ZLIB_NOT_ENABLED

#define ISO_ZLIB_NOT_ENABLED   0xE830FEA7

Use of zlib was not enabled at compile time (FAILURE, HIGH, -345)

Definition at line 8956 of file libisofs.h.

◆ LIBISO_MAX_LINK_DEPTH

#define LIBISO_MAX_LINK_DEPTH   100

Definition at line 6589 of file libisofs.h.

◆ Libisofs_default_path_maX

#define Libisofs_default_path_maX   4096

Definition at line 7796 of file libisofs.h.

Typedef Documentation

◆ ElToritoBootImage

It represents an El-Torito boot image.

Since
0.6.2

Definition at line 116 of file libisofs.h.

◆ iso_node_xinfo_cloner

typedef int(* iso_node_xinfo_cloner) (void *old_data, void **new_data, int flag)

Class of functions to clone extended information. A function instance gets associated to a particular iso_node_xinfo_func instance by function iso_node_xinfo_make_clonable(). This is a precondition to have IsoNode objects clonable which carry data for a particular iso_node_xinfo_func.

Parameters
old_dataData item to be cloned
new_dataShall return the cloned data item
flagUnused yet, submit 0 The function shall return ISO_XINFO_NO_CLONE on unknown flag bits.
Returns
> 0 number of allocated bytes 0 no size info is available < 0 error
Since
1.0.2

Definition at line 4968 of file libisofs.h.

◆ iso_node_xinfo_func

typedef int(* iso_node_xinfo_func) (void *data, int flag)

Class of functions to handle particular extended information. A function instance acts as an identifier for the type of the information. Structs with same information type must use a pointer to the same function.

Parameters
dataAttached data
flagWhat to do with the data. At this time the following values are defined: -> 1 the data must be freed
Returns
1 in any case.
Since
0.6.4

Definition at line 4838 of file libisofs.h.

◆ IsoBoot

typedef struct Iso_Boot IsoBoot

An special type of IsoNode that acts as a placeholder for an El-Torito boot catalog. Once written, it will appear as a regular file.

Since
0.6.2

Definition at line 116 of file libisofs.h.

◆ IsoDataSource

Source for image reading.

See also
struct iso_data_source
Since
0.6.2

Definition at line 116 of file libisofs.h.

◆ IsoDir

typedef struct Iso_Dir IsoDir

A directory in the iso tree. It is an special type of IsoNode and can be casted to it in any case.

Since
0.6.2

Definition at line 116 of file libisofs.h.

◆ IsoDirIter

typedef struct Iso_Dir_Iter IsoDirIter

Context for iterate on directory children.

See also
iso_dir_get_children()
Since
0.6.2

Definition at line 116 of file libisofs.h.

◆ IsoExternalFilterCommand

Definition at line 7862 of file libisofs.h.

◆ IsoFile

typedef struct Iso_File IsoFile

A regular file in the iso tree. It is an special type of IsoNode and can be casted to it in any case.

Since
0.6.2

Definition at line 116 of file libisofs.h.

◆ IsoFileSource

POSIX abstraction for source files.

See also
struct iso_file_source
Since
0.6.2

Definition at line 116 of file libisofs.h.

◆ IsoFileSourceIface

Interface that defines the operations (methods) available for an IsoFileSource.

See also
struct IsoFileSource_Iface
Since
0.6.2

Definition at line 116 of file libisofs.h.

◆ IsoFilesystem

typedef struct iso_filesystem IsoFilesystem

Abstract for source filesystems.

See also
struct iso_filesystem
Since
0.6.2

Definition at line 116 of file libisofs.h.

◆ IsoFindCondition

Since
0.6.4

Definition at line 5485 of file libisofs.h.

◆ IsoImage

typedef struct Iso_Image IsoImage

Context for image creation. It holds the files that will be added to image, and several options to control libisofs behavior.

Since
0.6.2

Definition at line 116 of file libisofs.h.

◆ IsoImageFilesystem

IsoFilesystem implementation to deal with ISO images, and to offer a way to access specific information of the image, such as several volume attributes, extensions being used, El-Torito artifacts...

Since
0.6.2

Definition at line 514 of file libisofs.h.

◆ IsoNode

typedef struct Iso_Node IsoNode

Definition at line 116 of file libisofs.h.

◆ IsoReadImageFeatures

Return information for image. This is optionally allocated by libisofs, as a way to inform user about the features of an existing image, such as extensions present, size, ...

See also
iso_image_import()
Since
0.6.2

Definition at line 116 of file libisofs.h.

◆ IsoReadOpts

typedef struct iso_read_opts IsoReadOpts

Options for image reading or import.

See also
iso_read_opts_new()
Since
0.6.2

Definition at line 116 of file libisofs.h.

◆ IsoSpecial

typedef struct Iso_Special IsoSpecial

An special file in the iso tree. This is used to represent any POSIX file other that regular files, directories or symlinks, i.e.: socket, block and character devices, and fifos. It is an special type of IsoNode and can be casted to it in any case.

Since
0.6.2

Definition at line 116 of file libisofs.h.

◆ IsoStream

typedef struct iso_stream IsoStream

Representation of file contents. It is an stream of bytes, functionally like a pipe.

Since
0.6.4

Definition at line 520 of file libisofs.h.

◆ IsoStreamIface

Interface that defines the operations (methods) available for an IsoStream.

See also
struct IsoStream_Iface
Since
0.6.4

Definition at line 520 of file libisofs.h.

◆ IsoSymlink

typedef struct Iso_Symlink IsoSymlink

A symbolic link in the iso tree. It is an special type of IsoNode and can be casted to it in any case.

Since
0.6.2

Definition at line 116 of file libisofs.h.

◆ IsoWriteOpts

typedef struct iso_write_opts IsoWriteOpts

Options for image written.

See also
iso_write_opts_new()
Since
0.6.2

Definition at line 116 of file libisofs.h.

Enumeration Type Documentation

◆ eltorito_boot_media_type

El-Torito bootable image type.

Since
0.6.2
Enumerator
ELTORITO_FLOPPY_EMUL 
ELTORITO_HARD_DISC_EMUL 
ELTORITO_NO_EMUL 

Definition at line 334 of file libisofs.h.

◆ iso_find_comparisons

Possible comparison between IsoNode and given conditions.

Since
0.6.4
Enumerator
ISO_FIND_COND_GREATER 
ISO_FIND_COND_GREATER_OR_EQUAL 
ISO_FIND_COND_EQUAL 
ISO_FIND_COND_LESS 
ISO_FIND_COND_LESS_OR_EQUAL 

Definition at line 5553 of file libisofs.h.

◆ iso_replace_mode

Replace mode used when adding a node to a directory. This controls how libisofs will act when you tried to add to a dir a file with the same name that an existing file.

Since
0.6.2
Enumerator
ISO_REPLACE_NEVER 

Never replace an existing node, and instead fail with ISO_NODE_NAME_NOT_UNIQUE.

ISO_REPLACE_ALWAYS 

Always replace the old node with the new.

ISO_REPLACE_IF_SAME_TYPE 

Replace with the new node if it is the same file type

ISO_REPLACE_IF_SAME_TYPE_AND_NEWER 

Replace with the new node if it is the same file type and its ctime is newer than the old one.

ISO_REPLACE_IF_NEWER 

Replace with the new node if its ctime is newer than the old one.

Definition at line 347 of file libisofs.h.

◆ IsoHfsplusBlessings

HFS+ blessings are relationships between HFS+ enhanced ISO images and particular files in such images. Except for ISO_HFSPLUS_BLESS_INTEL_BOOTFILE and ISO_HFSPLUS_BLESS_MAX, these files have to be directories. No file may have more than one blessing. Each blessing can only be issued to one file.

Since
1.2.4
Enumerator
ISO_HFSPLUS_BLESS_PPC_BOOTDIR 
ISO_HFSPLUS_BLESS_INTEL_BOOTFILE 
ISO_HFSPLUS_BLESS_SHOWFOLDER 
ISO_HFSPLUS_BLESS_OS9_FOLDER 
ISO_HFSPLUS_BLESS_OSX_FOLDER 
ISO_HFSPLUS_BLESS_MAX 

Definition at line 8585 of file libisofs.h.

◆ IsoHideNodeFlag

Flag used to hide a file in the RR/ISO or Joliet tree.

See also
iso_node_set_hidden
Since
0.6.2
Enumerator
LIBISO_HIDE_ON_RR 

Hide the node in the ECMA-119 / RR tree

LIBISO_HIDE_ON_JOLIET 

Hide the node in the Joliet tree, if Joliet extension are enabled

LIBISO_HIDE_ON_1999 

Hide the node in the ISO-9660:1999 tree, if that format is enabled

LIBISO_HIDE_ON_HFSPLUS 

Hide the node in the HFS+ tree, if that format is enabled.

Since
1.2.4
LIBISO_HIDE_ON_FAT 

Hide the node in the FAT tree, if that format is enabled.

Since
1.2.4
LIBISO_HIDE_BUT_WRITE 

With IsoNode and IsoBoot: Write data content even if the node is not visible in any tree. With directory nodes : Write data content of IsoNode and IsoBoot in the directory's tree unless they are explicitly marked LIBISO_HIDE_ON_RR without LIBISO_HIDE_BUT_WRITE.

Since
0.6.34

Definition at line 300 of file libisofs.h.

◆ IsoNodeType

The type of an IsoNode.

When an user gets an IsoNode from an image, (s)he can use iso_node_get_type() to get the current type of the node, and then cast to the appropriate subtype. For example:

... IsoNode *node; res = iso_dir_iter_next(iter, &node); if (res == 1 && iso_node_get_type(node) == LIBISO_DIR) { IsoDir *dir = (IsoDir *)node; ... }

Since
0.6.2
Enumerator
LIBISO_DIR 
LIBISO_FILE 
LIBISO_SYMLINK 
LIBISO_SPECIAL 
LIBISO_BOOT 

Definition at line 228 of file libisofs.h.

Function Documentation

◆ aaip_xinfo_cloner()

int aaip_xinfo_cloner ( void *  old_data,
void **  new_data,
int  flag 
)

The iso_node_xinfo_cloner function which gets associated to aaip_xinfo_func by iso_init() or iso_init_with_flag() via iso_node_xinfo_make_clonable().

Since
1.0.2

Definition at line 1127 of file rockridge.c.

References aaip_count_bytes(), ISO_AAIP_BAD_AASTRING, and ISO_OUT_OF_MEM.

Referenced by ifs_clone_src(), and iso_init_with_flag().

◆ aaip_xinfo_func()

int aaip_xinfo_func ( void *  data,
int  flag 
)

Function to identify and manage AAIP strings as xinfo of IsoNode.

An AAIP string contains the Attribute List with the xattr and ACL of a node in the image tree. It is formatted according to libisofs specification AAIP-2.0 and ready to be written into the System Use Area or Continuation Area of a directory entry in an ISO image.

Applications are not supposed to manipulate AAIP strings directly. They should rather make use of the appropriate iso_node_get_* and iso_node_set_* calls.

AAIP represents ACLs as xattr with empty name and AAIP-specific binary content. Local filesystems may represent ACLs as xattr with names like "system.posix_acl_access". libisofs does not interpret those local xattr representations of ACL directly but rather uses the ACL interface of the local system. By default the local xattr representations of ACL will not become part of the AAIP Attribute List via iso_local_get_attrs() and not be attached to local files via iso_local_set_attrs().

Since
0.6.14

Definition at line 1118 of file rockridge.c.

Referenced by add_aa_string(), default_create_node(), Exprtest_match(), ifs_clone_src(), iso_init_with_flag(), iso_node_cmp_flag(), iso_node_get_attrs(), iso_node_lookup_attr(), iso_node_set_attrs(), src_aa_to_node(), and susp_calc_nm_sl_al().

◆ el_torito_get_boot_media_type()

int el_torito_get_boot_media_type ( ElToritoBootImage bootimg,
enum eltorito_boot_media_type media_type 
)

Get the boot media type as of parameter "type" of iso_image_set_boot_image() or iso_image_add_boot_image().

Parameters
bootimgThe image to inquire
media_typeReturns the media type
Returns
1 = ok , < 0 = error
Since
0.6.32

Definition at line 237 of file eltorito.c.

References ELTORITO_FLOPPY_EMUL, ELTORITO_HARD_DISC_EMUL, ELTORITO_NO_EMUL, ISO_ASSERT_FAILURE, ISO_WRONG_ARG_VALUE, and el_torito_boot_image::type.

Referenced by Xorriso_boot_image_status().

◆ el_torito_get_boot_platform_id()

int el_torito_get_boot_platform_id ( ElToritoBootImage bootimg)

Get the platform ID value. See el_torito_set_boot_platform_id().

Parameters
bootimgThe image to inquire
Returns
0 - 255 : The platform ID < 0 : error
Since
0.6.32

Definition at line 73 of file eltorito.c.

References el_torito_boot_image::platform_id.

Referenced by Xorriso__append_boot_params(), Xorriso_boot_image_status(), and Xorriso_set_isolinux_options().

◆ el_torito_get_bootable()

int el_torito_get_bootable ( ElToritoBootImage bootimg)

Get the bootability flag. See el_torito_set_no_bootable().

Parameters
bootimgThe image to inquire
Returns
0 = not bootable, 1 = bootable , <0 = error
Since
0.6.32

Definition at line 143 of file eltorito.c.

References el_torito_boot_image::bootable.

◆ el_torito_get_full_load()

int el_torito_get_full_load ( ElToritoBootImage bootimg)

Inquire the setting of el_torito_set_full_load().

Parameters
bootimgThe image to inquire
Returns
The mode set with el_torito_set_full_load().

Definition at line 128 of file eltorito.c.

References el_torito_boot_image::load_size_full.

◆ el_torito_get_id_string()

int el_torito_get_id_string ( ElToritoBootImage bootimg,
uint8_t  id_string[28] 
)

Get the id_string as of el_torito_set_id_string().

Parameters
bootimgThe image to inquire
id_stringReturns 28 bytes of id string
Returns
1 = ok , <0 = error
Since
0.6.32

Definition at line 156 of file eltorito.c.

References el_torito_boot_image::id_string.

Referenced by Xorriso_boot_image_status().

◆ el_torito_get_isolinux_options()

int el_torito_get_isolinux_options ( ElToritoBootImage bootimg,
int  flag 
)

Get the options as of el_torito_set_isolinux_options().

Parameters
bootimgThe image to inquire
flagReserved for future usage, set to 0.
Returns
>= 0 returned option bits , <0 = error
Since
0.6.32

Definition at line 231 of file eltorito.c.

References el_torito_boot_image::isolinux_options.

Referenced by Xorriso_boot_image_status().

◆ el_torito_get_load_seg()

int el_torito_get_load_seg ( ElToritoBootImage bootimg)

Get the load segment value. See el_torito_set_load_seg().

Parameters
bootimgThe image to inquire
Returns
0 - 65535 : The load segment value < 0 : error
Since
0.6.32

Definition at line 93 of file eltorito.c.

References el_torito_boot_image::load_seg.

◆ el_torito_get_load_size()

int el_torito_get_load_size ( ElToritoBootImage bootimg)

Get the load size. See el_torito_set_load_size().

Parameters
bootimgThe image to inquire
Returns
0 - 65535 : The load size value < 0 : error
Since
0.6.32

Definition at line 114 of file eltorito.c.

References el_torito_boot_image::load_size.

Referenced by Xorriso_boot_image_status().

◆ el_torito_get_selection_crit()

int el_torito_get_selection_crit ( ElToritoBootImage bootimg,
uint8_t  crit[20] 
)

Get the Selection Criteria bytes as of el_torito_set_selection_crit().

Parameters
bootimgThe image to inquire
critReturns 20 bytes of type and data
Returns
1 = ok , <0 = error
Since
0.6.32

Definition at line 171 of file eltorito.c.

References el_torito_boot_image::selection_crit.

Referenced by Xorriso_boot_image_status().

◆ el_torito_patch_isolinux_image()

void el_torito_patch_isolinux_image ( ElToritoBootImage bootimg)

Deprecated: Specifies that this image needs to be patched. This involves the writing of a 16 bytes boot information table at offset 8 of the boot image file. The original boot image file won't be modified. This is needed for isolinux boot images.

Since
0.6.2
Deprecated:
Use el_torito_set_isolinux_options() instead

Specifies that this image needs to be patched. This involves the writing of a 56 bytes boot information table at offset 8 of the boot image file. The original boot image file won't be modified. This is needed for isolinux boot images.

Definition at line 196 of file eltorito.c.

References el_torito_boot_image::isolinux_options.

◆ el_torito_seems_boot_info_table()

int el_torito_seems_boot_info_table ( ElToritoBootImage bootimg,
int  flag 
)

Makes a guess whether the boot image was patched by a boot information table. It is advisable to patch such boot images if their content gets copied to a new location. See el_torito_set_isolinux_options(). Note: The reply can be positive only if the boot image was imported from an existing ISO image.

Parameters
bootimgThe image to inquire
flagBitfield for control purposes: bit0 - bit3= mode 0 = inquire for classic boot info table as described in man mkisofs
Since
0.6.32 1 = inquire for GRUB2 boot info as of bit9 of options of el_torito_set_isolinux_options()
1.3.0
Returns
1 = seems to contain the inquired boot info, 0 = quite surely not
Since
0.6.32

Definition at line 179 of file eltorito.c.

References el_torito_boot_image::seems_boot_info_table, and el_torito_boot_image::seems_grub2_boot_info.

Referenced by Xorriso__append_boot_params(), and Xorriso_set_isolinux_options().

◆ el_torito_set_boot_platform_id()

int el_torito_set_boot_platform_id ( ElToritoBootImage bootimg,
uint8_t  id 
)

Sets the platform ID of the boot image.

The Platform ID gets written into the boot catalog at byte 1 of the Validation Entry, or at byte 1 of a Section Header Entry. If Platform ID and ID String of two consecutive bootimages are the same

Parameters
bootimgThe image to manipulate.
idA Platform ID as of El Torito 1.0 : 0x00= 80x86, 0x01= PowerPC, 0x02= Mac Others : 0xef= EFI
Returns
1 ok , <=0 error
Since
0.6.32

Definition at line 66 of file eltorito.c.

References el_torito_boot_image::platform_id.

Referenced by Xorriso_attach_boot_image().

◆ el_torito_set_full_load()

void el_torito_set_full_load ( ElToritoBootImage bootimg,
int  mode 
)

State that the load size shall be the size of the boot image automatically. This overrides el_torito_set_load_size().

Parameters
bootimgThe image to to manipulate
mode0= use value of el_torito_set_load_size() 1= determine value from boot image

Definition at line 120 of file eltorito.c.

References el_torito_boot_image::load_size_full, and el_torito_boot_image::type.

Referenced by Xorriso_attach_boot_image().

◆ el_torito_set_id_string()

int el_torito_set_id_string ( ElToritoBootImage bootimg,
uint8_t  id_string[28] 
)

Set the id_string of the Validation Entry or Sector Header Entry which will govern the boot image Section Entry in the El Torito Catalog.

Parameters
bootimgThe image to manipulate.
id_stringThe first boot image puts 24 bytes of ID string into the Validation Entry, where they shall "identify the manufacturer/developer of the CD-ROM". Further boot images put 28 bytes into their Section Header. El Torito 1.0 states that "If the BIOS understands the ID string, it may choose to boot the system using one of these entries in place of the INITIAL/DEFAULT entry." (The INITIAL/DEFAULT entry points to the first boot image.)
Returns
1 = ok , <0 = error
Since
0.6.32

Definition at line 149 of file eltorito.c.

References el_torito_boot_image::id_string.

Referenced by Xorriso_attach_boot_image().

◆ el_torito_set_isolinux_options()

int el_torito_set_isolinux_options ( ElToritoBootImage bootimg,
int  options,
int  flag 
)

Specifies options for ISOLINUX or GRUB boot images. This should only be used if the type of boot image is known.

Parameters
bootimgThe image to set options on
optionsbitmask style flag. The following values are defined:

bit0= Patch the boot info table of the boot image. This does the same as mkisofs option -boot-info-table. Needed for ISOLINUX or GRUB boot images with platform ID 0. The table is located at byte 8 of the boot image file. Its size is 56 bytes. The original boot image file on disk will not be modified.

One may use el_torito_seems_boot_info_table() for a qualified guess whether a boot info table is present in the boot image. If the result is 1 then it should get bit0 set if its content gets copied to a new LBA.

bit1= Generate a ISOLINUX isohybrid image with MBR.

Deprecated:
since 31 Mar 2010: The author of syslinux, H. Peter Anvin requested that this feature shall not be used any more. He intends to cease

support for the MBR template that is included in libisofs.

A hybrid image is a boot image that boots from either CD/DVD media or from disk-like media, e.g. USB stick. For that you need isolinux.bin from SYSLINUX 3.72 or later. IMPORTANT: The application has to take care that the image on media gets padded up to the next full MB. Under seiveral circumstances it might get aligned automatically. But there is no warranty. bit2-7= Mentioning in isohybrid GPT 0= Do not mention in GPT 1= Mention as Basic Data partition. This cannot be combined with GPT partitions as of iso_write_opts_set_efi_bootp()

Since
1.2.4 2= Mention as HFS+ partition. This cannot be combined with HFS+ production by iso_write_opts_set_hfsplus().
1.2.4 Primary GPT and backup GPT get written if at least one ElToritoBootImage shall be mentioned. The first three mentioned GPT partitions get mirrored in the the partition table of the isohybrid MBR. They get type 0xfe. The MBR partition entry for PC-BIOS gets type 0x00 rather than 0x17. Often it is one of the further MBR partitions which actually gets used by EFI.
1.2.4 bit8= Mention in isohybrid Apple partition map APM get written if at least one ElToritoBootImage shall be mentioned. The ISOLINUX MBR must look suitable or else an error event will happen at image generation time.
1.2.4 bit9= GRUB2 boot info Patch the boot image file at byte 1012 with the 512-block address + 2. Two little endian 32-bit words. Low word first. This is combinable with bit0.
1.3.0
Parameters
flagReserved for future usage, set to 0.
Returns
1 success, < 0 on error
Since
0.6.12

Specifies options for IsoLinux boot images. This should only be used with isolinux boot images.

Parameters
optionsbitmask style flag. The following values are defined:

bit 0 -> 1 to path the image, 0 to not Patching the image involves the writing of a 56 bytes boot information table at offset 8 of the boot image file. The original boot image file won't be modified. This is needed to allow isolinux images to be bootable. bit 1 -> 1 to generate an hybrid image, 0 to not An hybrid image is a boot image that boots from either CD/DVD media or from USB sticks. For that, you should use an isolinux image that supports hybrid mode. Recent images support this.

Returns
1 if success, < 0 on error
Since
0.6.12

Definition at line 222 of file eltorito.c.

References ISO_SUCCESS, el_torito_boot_image::isolinux_options, el_torito_boot_image::seems_boot_info_table, and el_torito_boot_image::seems_grub2_boot_info.

Referenced by Xorriso_set_isolinux_options().

◆ el_torito_set_load_seg()

void el_torito_set_load_seg ( ElToritoBootImage bootimg,
short  segment 
)

Sets the load segment for the initial boot image. This is only for no emulation boot images, and is a NOP for other image types.

Parameters
bootimgThe image to to manipulate
segmentLoad segment address. The data type of this parameter is not fully suitable. You may submit negative numbers in the range ((short) 0x8000) to ((short) 0xffff) in order to express the non-negative numbers 0x8000 to 0xffff.
Since
0.6.2

Sets the load segment for the initial boot image. This is only for no emulation boot images, and is a NOP for other image types.

Definition at line 82 of file eltorito.c.

References el_torito_boot_image::load_seg, and el_torito_boot_image::type.

◆ el_torito_set_load_size()

void el_torito_set_load_size ( ElToritoBootImage bootimg,
short  sectors 
)

Sets the number of sectors (512b) to be load at load segment during the initial boot procedure. This is only for no emulation boot images, and is a NOP for other image types.

Parameters
bootimgThe image to to manipulate
sectorsNumber of 512-byte blocks to be loaded by the BIOS. The data type of this parameter is not fully suitable. You may submit negative numbers in the range ((short) 0x8000) to ((short) 0xffff) in order to express the non-negative numbers 0x8000 to 0xffff.
Since
0.6.2

Sets the number of sectors (512b) to be load at load segment during the initial boot procedure. This is only for no emulation boot images, and is a NOP for other image types.

Definition at line 103 of file eltorito.c.

References el_torito_boot_image::load_size, and el_torito_boot_image::type.

Referenced by Xorriso_attach_boot_image().

◆ el_torito_set_no_bootable()

void el_torito_set_no_bootable ( ElToritoBootImage bootimg)

Marks the specified boot image as not bootable

Since
0.6.2

Marks the specified boot image as not bootable

Definition at line 137 of file eltorito.c.

References el_torito_boot_image::bootable.

◆ el_torito_set_selection_crit()

int el_torito_set_selection_crit ( ElToritoBootImage bootimg,
uint8_t  crit[20] 
)

Set the Selection Criteria of a boot image.

Parameters
bootimgThe image to manipulate.
critThe first boot image has no selection criteria. They will be ignored. Further boot images put 1 byte of Selection Criteria Type and 19 bytes of data into their Section Entry. El Torito 1.0 states that "The format of the selection criteria is a function of the BIOS vendor. In the case of a foreign language BIOS three bytes would be used to identify the language". Type byte == 0 means "no criteria", type byte == 1 means "Language and Version Information (IBM)".
Returns
1 = ok , <0 = error
Since
0.6.32

Definition at line 164 of file eltorito.c.

References el_torito_boot_image::selection_crit.

Referenced by Xorriso_attach_boot_image().

◆ iso_conv_name_chars()

int iso_conv_name_chars ( IsoWriteOpts opts,
char *  name,
size_t  name_len,
char **  result,
size_t *  result_len,
int  flag 
)

Convert the characters in name from local charset to another charset or convert name to the representation of a particular ISO image name space. In the latter case it is assumed that the conversion result does not collide with any other converted name in the same directory. I.e. this function does not take into respect possible name changes due to collision handling.

Parameters
optsDefines output charset, UCS-2 versus UTF-16 for Joliet, and naming restrictions.
nameThe input text which shall be converted.
name_lenThe number of bytes in input text.
resultWill return the conversion result in case of success. Terminated by a trailing zero byte. Use free() to dispose it when no longer needed.
result_lenWill return the number of bytes in result (excluding trailing zero)
flagBitfield for control purposes. bit0-bit7= Name space 0= generic (output charset is used, no reserved characters, no length limits) 1= Rock Ridge (output charset is used) 2= Joliet (output charset gets overridden by UCS-2 or UTF-16) 3= ECMA-119 (output charset gets overridden by the dull ISO 9660 subset of ASCII) 4= HFS+ (output charset gets overridden by UTF-16BE) bit8= Treat input text as directory name (matters for Joliet and ECMA-119) bit9= Do not issue error messages bit15= Reverse operation (best to be done only with results of previous conversions)
Returns
1 means success, <0 means error
Since
1.3.6

Definition at line 4423 of file ecma119.c.

References ECMA119_DIR, ECMA119_FILE, iso_get_ecma119_name(), iso_get_hfsplus_name(), iso_get_joliet_name(), iso_get_local_charset(), iso_get_rr_name(), ISO_JOLIET_UCS2_WARN_MAX, ISO_SUCCESS, ISO_WRONG_ARG_VALUE, iso_write_opts::joliet_utf16, LIBISO_ALLOC_MEM, LIBISO_DIR, LIBISO_FILE, LIBISO_FREE_MEM, need_version_number(), iso_write_opts::omit_version_numbers, iso_write_opts::output_charset, strnconvl(), and ucslen().

Referenced by iso_impsysa_report(), and isoburn_conv_name_chars().

◆ iso_crc32_gpt()

uint32_t iso_crc32_gpt ( unsigned char *  data,
int  count,
int  flag 
)

Compute a CRC number as expected in the GPT main and backup header blocks.

The CRC at byte offset 88 is supposed to cover the array of partition entries. The CRC at byte offset 16 is supposed to cover the readily produced first 92 bytes of the header block while its bytes 16 to 19 are still set to 0. Block size is 512 bytes. Numbers are stored little-endian. See doc/boot_sectors.txt for the byte layout of GPT.

This might be helpful for applications which want to manipulate GPT directly. The function is in libisofs/system_area.c and self-contained. So if you want to copy+paste it under the license of that file: Be invited. Be warned that this implementation works bit-wise and thus is much slower than table-driven ones. For less than 32 KiB, it fully suffices, though.

Parameters
dataThe memory buffer with the data to sum up.
countNumber of bytes in data.
flagBitfield for control purposes. Submit 0.
Returns
The CRC of data.
Since
1.3.8

Definition at line 2513 of file system_area.c.

Referenced by gpt_tail_writer_write_data(), iso_analyze_gpt_backup(), iso_analyze_gpt_head(), iso_generate_gpt_guid(), iso_make_mbr_id(), iso_write_gpt(), iso_write_gpt_header_block(), and Xorriso_gpt_crc().

◆ iso_data_source_new_from_file()

int iso_data_source_new_from_file ( const char *  path,
IsoDataSource **  src 
)

Create a new IsoDataSource from a local file. This is suitable for accessing regular files or block devices with ISO images.

Parameters
pathThe absolute path of the file
srcWill be filled with the pointer to the newly created data source.
Returns
1 on success, < 0 on error.
Since
0.6.2

Create a new IsoDataSource from a local file. This is suitable for accessing regular .iso images, or to access drives via its block device and standard POSIX I/O calls.

Parameters
pathThe path of the file
srcWill be filled with the pointer to the newly created data source.
Returns
1 on success, < 0 on error.

Definition at line 158 of file data_source.c.

References iso_data_source::close, iso_data_source::data, ds_close(), ds_free_data(), ds_open(), ds_read_block(), file_data_src::fd, iso_data_source::free_data, iso_eaccess(), ISO_NULL_POINTER, ISO_OUT_OF_MEM, ISO_SUCCESS, iso_data_source::open, file_data_src::path, iso_data_source::read_block, iso_data_source::refcount, and iso_data_source::version.

◆ iso_data_source_ref()

void iso_data_source_ref ( IsoDataSource src)

Increments the reference counting of the given IsoDataSource.

Since
0.6.2

Increments the reference counting of the given IsoDataSource.

Definition at line 41 of file data_source.c.

References iso_data_source::refcount.

Referenced by iso_image_filesystem_new(), and iso_image_import().

◆ iso_data_source_unref()

void iso_data_source_unref ( IsoDataSource src)

Decrements the reference counting of the given IsoDataSource, freeing it if refcount reach 0.

Since
0.6.2

Decrements the reference counting of the given IsoDataSource, freeing it if refcount reach 0.

Definition at line 50 of file data_source.c.

References iso_data_source::free_data, and iso_data_source::refcount.

Referenced by ifs_fs_free(), iso_image_unref(), isoburn_destroy(), and isoburn_read_image().

◆ iso_dir_add_node()

int iso_dir_add_node ( IsoDir dir,
IsoNode child,
enum iso_replace_mode  replace 
)

Add a new node to a dir. Note that this function don't add a new ref to the node, so you don't need to free it, it will be automatically freed when the dir is deleted. Of course, if you want to keep using the node after the dir life, you need to iso_node_ref() it.

Parameters
dirthe dir where to add the node
childthe node to add. You must ensure that the node hasn't previously added to other dir, and that the node name is unique inside the child. Otherwise this function will return a failure, and the child won't be inserted.
replaceif the dir already contains a node with the same name, whether to replace or not the old node with this.
Returns
number of nodes in dir if success, < 0 otherwise Possible errors: ISO_NULL_POINTER, if dir or child are NULL ISO_NODE_ALREADY_ADDED, if child is already added to other dir ISO_NODE_NAME_NOT_UNIQUE, a node with same name already exists ISO_WRONG_ARG_VALUE, if child == dir, or replace != (0,1)
Since
0.6.2

Add a new node to a dir. Note that this function don't add a new ref to the node, so you don't need to free it, it will be automatically freed when the dir is deleted. Of course, if you want to keep using the node after the dir life, you need to iso_node_ref() it.

Parameters
dirthe dir where to add the node
childthe node to add. You must ensure that the node hasn't previously added to other dir, and that the node name is unique inside the child. Otherwise this function will return a failure, and the child won't be inserted.
replaceif the dir already contains a node with the same name, whether to replace or not the old node with this.
Returns
number of nodes in dir if success, < 0 otherwise

Definition at line 591 of file node.c.

References iso_dir_find(), iso_dir_insert(), ISO_NODE_ALREADY_ADDED, ISO_NULL_POINTER, ISO_WRONG_ARG_VALUE, Iso_Node::name, and Iso_Node::parent.

Referenced by iso_node_set_name_trunc(), iso_tree_clone_dir(), and Xorriso_rename().

◆ iso_dir_find_children()

int iso_dir_find_children ( IsoDir dir,
IsoFindCondition cond,
IsoDirIter **  iter 
)

Find all directory children that match the given condition.

Parameters
dirDirectory where we will search children.
condCondition that the children must match in order to be returned. It will be free together with the iterator. Remember to delete it if this function return error.
iterIterator that returns only the children that match condition.
Returns
1 on success, < 0 on error
Since
0.6.4

Definition at line 238 of file find.c.

References Iso_Dir_Iter::class, find_iter_data::cond, find_iter_data::current, Iso_Dir_Iter::data, find_iter_data::dir, Iso_Dir_Iter::dir, find_iter_data::err, find_iter_class, find_iter_data::free_cond, iso_dir_get_children(), iso_dir_iter_register(), iso_node_ref(), ISO_NULL_POINTER, ISO_OUT_OF_MEM, ISO_SUCCESS, find_iter_data::iter, find_iter_data::itersec, find_iter_data::prev, and update_next().

Referenced by get_next(), and update_next().

◆ iso_dir_get_children()

int iso_dir_get_children ( const IsoDir dir,
IsoDirIter **  iter 
)

Get an iterator for the children of the given dir.

You can iterate over the children with iso_dir_iter_next. When finished, you should free the iterator with iso_dir_iter_free. You must not delete a child of the same dir, using iso_node_take() or iso_node_remove(), while you're using the iterator. You can use iso_dir_iter_take() or iso_dir_iter_remove() instead.

You can use the iterator in the way like this

IsoDirIter *iter; IsoNode *node; if ( iso_dir_get_children(dir, &iter) != 1 ) { // handle error } while ( iso_dir_iter_next(iter, &node) == 1 ) { // do something with the child } iso_dir_iter_free(iter);

An iterator is intended to be used in a single iteration over the children of a dir. Thus, it should be treated as a temporary object, and free as soon as possible.

Returns
1 success, < 0 error Possible errors: ISO_NULL_POINTER, if dir or iter are NULL ISO_OUT_OF_MEM
Since
0.6.2

Definition at line 1001 of file node.c.

References Iso_Dir_Iter::class, Iso_Dir_Iter::data, Iso_Dir_Iter::dir, dir_iter_data::flag, iso_dir_iter_register(), iso_node_ref(), ISO_NULL_POINTER, ISO_OUT_OF_MEM, ISO_SUCCESS, iter_class, and dir_iter_data::pos.

Referenced by img_collect_inos(), img_make_inos(), iso_dir_find_children(), iso_dir_zisofs_discard_bpt(), iso_node_remove_tree(), iso_tree_clone_dir(), iso_tree_get_node_of_block(), Xorriso_clone_under(), Xorriso_dir_disk_path(), Xorriso_findi_iter(), Xorriso_identify_split(), Xorriso_ls(), Xorriso_obtain_pattern_files_i(), Xorriso_rmi(), Xorriso_show_du_subs(), Xorriso_sorted_dir_i(), and Xorriso_sorted_node_array().

◆ iso_dir_get_children_count()

int iso_dir_get_children_count ( IsoDir dir)

Get the number of children of a directory.

Returns
>= 0 number of items, < 0 error Possible errors: ISO_NULL_POINTER, if dir is NULL
Since
0.6.2

Get the number of children of a directory.

Returns
>= 0 number of items, < 0 error Possible errors: ISO_NULL_POINTER, if dir is NULL

Definition at line 699 of file node.c.

References ISO_NULL_POINTER, and Iso_Dir::nchildren.

◆ iso_dir_get_node()

int iso_dir_get_node ( IsoDir dir,
const char *  name,
IsoNode **  node 
)
                       *** Deprecated ***
        In most cases use iso_image_dir_get_node() instead.

Locate a node inside a given dir without taking into respect name truncation mode of an IsoImage.

Parameters
dirThe dir where to look for the node.
nameThe name of the node
nodeLocation for a pointer to the node. See iso_image_get_node().
Returns
1 node found, 0 child has no such node, < 0 error Possible errors: ISO_NULL_POINTER, if dir or name are NULL
Since
0.6.2

Locate a node inside a given dir.

Parameters
nameThe name of the node
nodeLocation for a pointer to the node, it will filled with NULL if the dir doesn't have a child with the given name. The node will be owned by the dir and shouldn't be unref(). Just call iso_node_ref() to get your own reference to the node. Note that you can pass NULL is the only thing you want to do is check if a node with such name already exists on dir.
Returns
1 node found, 0 child has no such node, < 0 error Possible errors: ISO_NULL_POINTER, if dir or name are NULL

Definition at line 632 of file node.c.

References iso_dir_exists(), and ISO_NULL_POINTER.

Referenced by iso_dir_get_node_trunc(), iso_image_dir_get_node(), iso_node_set_name_trunc(), iso_tree_clone_trunc(), iso_tree_path_to_node_flag(), make_reloc_dir_if_needed(), and Xorriso_truncate_uniquely().

◆ iso_dir_iter_free()

◆ iso_dir_iter_has_next()

int iso_dir_iter_has_next ( IsoDirIter iter)

Check if there're more children.

Returns
1 dir has more elements, 0 no, < 0 error Possible errors: ISO_NULL_POINTER, if iter is NULL
Since
0.6.2

Definition at line 1043 of file node.c.

References Iso_Dir_Iter::class, iso_dir_iter_iface::has_next, and ISO_NULL_POINTER.

◆ iso_dir_iter_next()

int iso_dir_iter_next ( IsoDirIter iter,
IsoNode **  node 
)

Get the next child. Take care that the node is owned by its parent, and will be unref() when the parent is freed. If you want your own ref to it, call iso_node_ref() on it.

Returns
1 success, 0 if dir has no more elements, < 0 error Possible errors: ISO_NULL_POINTER, if node or iter are NULL ISO_ERROR, on wrong iter usage, usual caused by modiying the dir during iteration
Since
0.6.2

Definition at line 1035 of file node.c.

References Iso_Dir_Iter::class, ISO_NULL_POINTER, and iso_dir_iter_iface::next.

Referenced by get_next(), img_collect_inos(), img_make_inos(), iso_dir_zisofs_discard_bpt(), iso_node_remove_tree(), iso_tree_clone_dir(), iso_tree_get_node_of_block(), Xorriso_clone_under(), Xorriso_dir_disk_path(), Xorriso_findi_iter(), Xorriso_identify_split(), Xorriso_ls(), Xorriso_obtain_pattern_files_i(), Xorriso_rmi(), Xorriso_show_du_subs(), Xorriso_sorted_dir_i(), and Xorriso_sorted_node_array().

◆ iso_dir_iter_remove()

int iso_dir_iter_remove ( IsoDirIter iter)

Removes a child from a directory during an iteration and unref() it. Like iso_node_remove(), but to be used during a directory iteration. The node removed will be the one returned by the previous iteration.

It is not allowed to call this function twice without calling iso_dir_iter_next between the calls.

Returns
1 on success, < 0 error Possible errors: ISO_NULL_POINTER, if iter is NULL ISO_ERROR, on wrong iter usage, for example by calling this before iso_dir_iter_next.
Since
0.6.2

Definition at line 1069 of file node.c.

References Iso_Dir_Iter::class, ISO_NULL_POINTER, and iso_dir_iter_iface::remove.

Referenced by iso_node_remove_tree(), and Xorriso_rmi().

◆ iso_dir_iter_take()

int iso_dir_iter_take ( IsoDirIter iter)

Removes a child from a directory during an iteration, without freeing it. It's like iso_node_take(), but to be used during a directory iteration. The node removed will be the last returned by the iteration.

If you call this function twice without calling iso_dir_iter_next between them is not allowed and you will get an ISO_ERROR in second call.

Returns
1 on success, < 0 error Possible errors: ISO_NULL_POINTER, if iter is NULL ISO_ERROR, on wrong iter usage, for example by call this before iso_dir_iter_next.
Since
0.6.2

Definition at line 1061 of file node.c.

References Iso_Dir_Iter::class, ISO_NULL_POINTER, and iso_dir_iter_iface::take.

◆ iso_error_get_code()

int iso_error_get_code ( int  e)

Get the message queue code of a libisofs error.

Definition at line 777 of file messages.c.

References ISO_ERR_CODE.

Referenced by isoburn_report_iso_error(), and Xorriso_report_iso_error().

◆ iso_error_get_priority()

int iso_error_get_priority ( int  e)

Get the priority of a given error.

Returns
0x00000000 -> ZERO 0x10000000 -> LOW 0x20000000 -> MEDIUM 0x30000000 -> HIGH
Since
0.6.2

Definition at line 772 of file messages.c.

References ISO_ERR_PRIO.

◆ iso_error_get_severity()

int iso_error_get_severity ( int  e)

Get the severity of a given error code

Returns
0x10000000 -> DEBUG 0x20000000 -> UPDATE 0x30000000 -> NOTE 0x40000000 -> HINT 0x50000000 -> WARNING 0x60000000 -> SORRY 0x64000000 -> MISHAP 0x68000000 -> FAILURE 0x70000000 -> FATAL 0x71000000 -> ABORT
Since
0.6.2

Definition at line 767 of file messages.c.

References ISO_ERR_SEV.

Referenced by iso_interval_reader_read(), isoburn_report_iso_error(), and Xorriso_report_iso_error().

◆ iso_error_to_msg()

const char* iso_error_to_msg ( int  errcode)

Get a textual description of a libisofs error.

Since
0.6.2

Definition at line 269 of file messages.c.

References ISO_AAIP_ACL_MULT_OBJ, ISO_AAIP_BAD_AASTRING, ISO_AAIP_BAD_ACL, ISO_AAIP_BAD_ACL_TEXT, ISO_AAIP_BAD_ATTR_NAME, ISO_AAIP_IGNORED, ISO_AAIP_NO_GET_LOCAL, ISO_AAIP_NO_SET_LOCAL, ISO_AAIP_NON_USER_NAME, ISO_AAIP_NOT_ENABLED, ISO_ALPHA_BOOT_NOTREG, ISO_ASSERT_FAILURE, ISO_BAD_FSRC_FILETYPE, ISO_BAD_GPT_GUID_MODE, ISO_BAD_ISO_FILETYPE, ISO_BAD_PARTITION_FILE, ISO_BAD_PARTITION_NO, ISO_BOOT_APM_GPT_BSIZE, ISO_BOOT_APM_OVERLAP, ISO_BOOT_FILE_MISSING, ISO_BOOT_GPT_OVERLAP, ISO_BOOT_HFSP_BAD_BSIZE, ISO_BOOT_IMAGE_NOT_VALID, ISO_BOOT_IMAGE_OVERFLOW, ISO_BOOT_MBR_COLLISION, ISO_BOOT_MBR_OVERLAP, ISO_BOOT_NO_CATALOG, ISO_BOOT_NO_EFI_ELTO, ISO_BOOT_TOO_MANY_APM, ISO_BOOT_TOO_MANY_GPT, ISO_BOOT_TOO_MANY_MBR, ISO_BOOT_TOO_MANY_MIPS, ISO_BUF_READ_ERROR, ISO_CANCELED, ISO_CHARSET_CONV_ERROR, ISO_DATA_SOURCE_FAILURE, ISO_DATA_SOURCE_FATAL, ISO_DATA_SOURCE_MISHAP, ISO_DATA_SOURCE_SORRY, ISO_DEAD_SYMLINK, ISO_DEEP_SYMLINK, ISO_DISPLACE_ROLLOVER, ISO_EL_TORITO_HIDDEN, ISO_EL_TORITO_WARN, ISO_ELTO_EFI_HIDDEN, ISO_ERROR, ISO_EXTF_TOO_OFTEN, ISO_FATAL_ERROR, ISO_FILE_ACCESS_DENIED, ISO_FILE_ALREADY_OPENED, ISO_FILE_BAD_PATH, ISO_FILE_CANT_ADD, ISO_FILE_CANT_WRITE, ISO_FILE_DOESNT_EXIST, ISO_FILE_ERROR, ISO_FILE_IGNORED, ISO_FILE_IMGPATH_WRONG, ISO_FILE_IS_DIR, ISO_FILE_IS_NOT_DIR, ISO_FILE_IS_NOT_SYMLINK, ISO_FILE_NOT_OPENED, ISO_FILE_READ_ERROR, ISO_FILE_SEEK_ERROR, ISO_FILE_TOO_BIG, ISO_FILENAME_WRONG_CHARSET, ISO_FILENAME_WRONG_CHARSET_OLD, ISO_FILTER_WRONG_INPUT, ISO_GENERAL_NOTE, ISO_GPT_NO_VOL_UUID, ISO_HFSP_NO_MANGLE, ISO_HFSPLUS_TOO_MANY_FILES, ISO_HPPA_PALO_CMDLEN, ISO_HPPA_PALO_INCOMPL, ISO_HPPA_PALO_NOTREG, ISO_HPPA_PALO_OFLOW, ISO_IMAGE_ALREADY_BOOTABLE, ISO_IMAGE_WRITE_CANCELED, ISO_IMPORT_COLLISION, ISO_INQ_SYSAREA_PROP, ISO_INTERRUPTED, ISO_INTVL_READ_PROBLEM, ISO_ISOLINUX_CANT_PATCH, ISO_LIBJTE_END_FAILED, ISO_LIBJTE_FILE_FAILED, ISO_LIBJTE_NOT_ENABLED, ISO_LIBJTE_START_FAILED, ISO_MALFORMED_READ_INTVL, ISO_MANGLE_TOO_MUCH_FILES, ISO_MD5_AREA_CORRUPTED, ISO_MD5_STREAM_CHANGE, ISO_MD5_TAG_COPIED, ISO_MD5_TAG_MISMATCH, ISO_MD5_TAG_MISPLACED, ISO_MD5_TAG_OTHER_RANGE, ISO_MD5_TAG_UNEXPECTED, ISO_MULTI_OVER_IMPORTED, ISO_NAME_NEEDS_TRANSL, ISO_NAME_NOT_UCS2, ISO_NO_KEPT_DATA_SRC, ISO_NO_ROOT_DIR, ISO_NODE_ALREADY_ADDED, ISO_NODE_DOESNT_EXIST, ISO_NODE_NAME_NOT_UNIQUE, ISO_NODE_NOT_ADDED_TO_DIR, ISO_NON_MBR_SYS_AREA, ISO_NOT_REPRODUCIBLE, ISO_NULL_POINTER, ISO_OUT_OF_MEM, ISO_OVWRT_FIFO_TOO_SMALL, ISO_OVWRT_MS_TOO_SMALL, ISO_PART_OFFST_TOO_SMALL, ISO_PATCH_FILTERED_BOOT, ISO_PATCH_OVERSIZED_BOOT, ISO_RR_NAME_RESERVED, ISO_RR_NAME_TOO_LONG, ISO_RR_NAME_TRUNCATED, ISO_RR_PATH_TOO_LONG, ISO_SB_TREE_CORRUPTED, ISO_SCDBACKUP_TAG_NOT_0, ISO_SECT_SCATTERED, ISO_STREAM_NO_CLONE, ISO_SUSP_MULTIPLE_ER, ISO_SUSP_UNHANDLED, ISO_SUSP_WRONG_CE_SIZE, ISO_SYSAREA_PROBLEMS, ISO_THREAD_ERROR, ISO_TRUNCATE_ISOFSNT, ISO_UNSUPPORTED_ECMA119, ISO_UNSUPPORTED_EL_TORITO, ISO_UNSUPPORTED_RR, ISO_UNSUPPORTED_SUSP, ISO_UNSUPPORTED_VD, ISO_WRITE_ERROR, ISO_WRONG_ARG_VALUE, ISO_WRONG_ECMA119, ISO_WRONG_EL_TORITO, ISO_WRONG_PVD, ISO_WRONG_RR, ISO_WRONG_RR_WARN, ISO_XINFO_NO_CLONE, ISO_ZISOFS_BPT_UNDERRUN, ISO_ZISOFS_PARAM_LOCK, ISO_ZISOFS_TOO_LARGE, ISO_ZISOFS_TOO_MANY_PTR, ISO_ZISOFS_UNKNOWN_SIZE, ISO_ZISOFS_WRONG_INPUT, ISO_ZLIB_COMPR_ERR, ISO_ZLIB_EARLY_EOF, and ISO_ZLIB_NOT_ENABLED.

Referenced by iso_image_import(), iso_msg_submit(), isoburn_report_iso_error(), and Xorriso_report_iso_error().

◆ iso_file_add_external_filter()

int iso_file_add_external_filter ( IsoFile file,
IsoExternalFilterCommand cmd,
int  flag 
)

Install an external filter command on top of the content stream of a data file. The filter process must be repeatable. It will be run once by this call in order to cache the output size.

Parameters
fileThe data file node which shall show filtered content.
cmdThe external program and its arguments which shall do the filtering.
flagBitfield for control purposes, unused yet, submit 0.
Returns
1 on success, 2 if filter installation revoked (e.g. cmd.behavior bit1) <0 on error
Since
0.6.18

Definition at line 790 of file external.c.

References iso_external_filter_command::behavior, extf_create_context(), iso_file_add_filter(), iso_file_get_size(), iso_file_get_stream(), iso_file_remove_filter(), iso_stream_get_size(), and ISO_SUCCESS.

Referenced by Xorriso_set_filter().

◆ iso_file_add_gzip_filter()

int iso_file_add_gzip_filter ( IsoFile file,
int  flag 
)

Install a gzip or gunzip filter on top of the content stream of a data file. gzip is a compression format which is used by programs gzip and gunzip. The filter will not be installed if its output size is not smaller than the size of the input stream. This is only enabled if the use of libz was enabled at compile time.

Parameters
fileThe data file node which shall show filtered content.
flagBitfield for control purposes bit0= Do not install filter if the number of output blocks is not smaller than the number of input blocks. Block size is 2048. bit1= Install a decompression filter rather than one for compression. bit2= Only inquire availability of gzip filtering. file may be NULL. If available return 2, else return error. bit3= is reserved for internal use and will be forced to 0
Returns
1 on success, 2 if filter available but installation revoked <0 on error, e.g. ISO_ZLIB_NOT_ENABLED
Since
0.6.18

Definition at line 819 of file gzip.c.

References gzip_add_filter().

Referenced by Xorriso_set_filter().

◆ iso_file_add_zisofs_filter()

int iso_file_add_zisofs_filter ( IsoFile file,
int  flag 
)

Install a zisofs filter on top of the content stream of a data file. zisofs is a compression format which is decompressed by some Linux kernels. See also doc/zisofs_format.txt and doc/zisofs2_format.txt. The filter will not be installed if its output size is not smaller than the size of the input stream. This is only enabled if the use of libz was enabled at compile time.

Parameters
fileThe data file node which shall show filtered content.
flagBitfield for control purposes bit0= Do not install filter if the number of output blocks is not smaller than the number of input blocks. Block size is 2048. bit1= Install a decompression filter rather than one for compression. bit2= Only inquire availability of zisofs filtering. file may be NULL. If available return 2, else return error. bit3= is reserved for internal use and will be forced to 0
Returns
1 on success, 2 if filter available but installation revoked <0 on error, e.g. ISO_ZLIB_NOT_ENABLED
Since
0.6.18

Definition at line 1547 of file zisofs.c.

References ziso_add_filter().

Referenced by Xorriso_list_extras(), and Xorriso_set_filter().

◆ iso_file_get_md5()

int iso_file_get_md5 ( IsoImage image,
IsoFile file,
char  md5[16],
int  flag 
)

Eventually obtain the recorded MD5 checksum of a data file from the loaded ISO image. Such a checksum may be stored with others in a contiguous array at the end of the loaded session. The data file eventually has an xattr "isofs.cx" which gives the index in that array.

Parameters
imageThe image from which file stems.
fileThe file object to inquire
md5Eventually returns 16 byte of MD5 checksum
flagBitfield for control purposes bit0= only determine return value, do not touch parameter md5
Returns
1= md5 found , 0= no md5 available , <0 indicates error
Since
0.6.22

Definition at line 3027 of file node.c.

References Iso_Image::checksum_array, Iso_Image::checksum_idx_count, checksum_md5_xinfo_func(), iso_node_get_xinfo(), and iso_node_lookup_attr().

Referenced by Xorriso_check_md5(), and Xorriso_get_md5().

◆ iso_file_get_old_image_lba()

int iso_file_get_old_image_lba ( IsoFile file,
uint32_t *  lba,
int  flag 
)

Get the block lba of a file node, if it was imported from an old image.

Parameters
fileThe file
lbaWill be filled with the kba
flagReserved for future usage, submit 0
Returns
1 if lba is valid (file comes from old image and has only one section), 0 if file was newly added, i.e. it does not come from an old image, < 0 error, especially ISO_WRONG_ARG_VALUE if the file has more than one file section.
Since
0.6.4
Deprecated:
Use iso_file_get_old_image_sections(), as this function does not work with multi-extend files.

Get the block lba of a file node, if it was imported from an old image.

Parameters
fileThe file
lbaWill be filled with the kba
flagReserved for future usage, submit 0
Returns
1 if lba is valid (file comes from old image), 0 if file was newly added, i.e. it does not come from an old image, < 0 error
Since
0.6.4

Definition at line 1194 of file node.c.

References iso_file_section::block, iso_file_get_old_image_sections(), ISO_NULL_POINTER, and ISO_WRONG_ARG_VALUE.

Referenced by iso_node_get_old_image_lba().

◆ iso_file_get_old_image_sections()

int iso_file_get_old_image_sections ( IsoFile file,
int *  section_count,
struct iso_file_section **  sections,
int  flag 
)

Get the start addresses and the sizes of the data extents of a file node if it was imported from an old image.

Parameters
fileThe file
section_countReturns the number of extent entries in sections array.
sectionsReturns the array of file sections if section_count > 0. In this case, apply free() to dispose it.
flagReserved for future usage, submit 0
Returns
1 if there are valid extents (file comes from old image), 0 if file was newly added, i.e. it does not come from an old image, < 0 error
Since
0.6.8

Get the start addresses and the sizes of the data extents of a file node if it was imported from an old image.

Parameters
fileThe file
section_countReturns the number of extent entries in sections arrays
sectionsReturns the array of file sections. Apply free() to dispose it.
flagReserved for future usage, submit 0
Returns
1 if there are valid extents (file comes from old image), 0 if file was newly added, i.e. it does not come from an old image, < 0 error

Definition at line 6565 of file fs_image.c.

References iso_stream::class, iso_file_source::data, iso_stream::data, Iso_File::from_old_session, ISO_NULL_POINTER, ISO_OUT_OF_MEM, iso_stream_get_input_stream(), ISO_WRONG_ARG_VALUE, image_fs_data::nsections, image_fs_data::sections, FSrcStreamData::src, Iso_File::stream, and IsoStream_Iface::type.

Referenced by iso_analyze_alpha_boot(), iso_analyze_isohybrid(), iso_analyze_mipsel(), iso_eltorito_report(), iso_file_get_old_image_lba(), iso_file_src_create(), iso_image_eval_boot_info_table(), iso_impsysa_reduce_next_above(), iso_tree_get_node_of_block(), and Xorriso__start_end_lbas().

◆ iso_file_get_size()

off_t iso_file_get_size ( IsoFile file)

◆ iso_file_get_sort_weight()

int iso_file_get_sort_weight ( IsoFile file)

Get the sort weight of a file.

Since
0.6.2

Get the sort weight of a file.

Definition at line 1136 of file node.c.

References Iso_File::sort_weight.

◆ iso_file_get_stream()

IsoStream* iso_file_get_stream ( IsoFile file)

Get the IsoStream that represents the contents of the given IsoFile. The stream may be a filter stream which itself get its input from a further stream. This may be inquired by iso_stream_get_input_stream().

If you iso_stream_open() the stream, iso_stream_close() it before image generation begins.

Returns
The IsoStream. No extra ref is added, so the IsoStream belongs to the IsoFile, and it may be freed together with it. Add your own ref with iso_stream_ref() if you need it.
Since
0.6.4

Get the IsoStream that represents the contents of the given IsoFile.

If you open() the stream, it should be close() before image generation.

Returns
The IsoStream. No extra ref is added, so the IsoStream belong to the IsoFile, and it may be freed together with it. Add your own ref with iso_stream_ref() if you need it.
Since
0.6.4

Definition at line 1161 of file node.c.

References Iso_File::stream.

Referenced by add_zf_field(), Exprtest_match(), gzip_add_filter(), iso_dir_zisofs_discard_bpt(), iso_file_add_external_filter(), iso_file_zf_by_magic(), iso_image_eval_boot_info_table(), iso_read_mipsel_elf(), make_mips_volume_header(), Xorriso_is_plain_image_file(), Xorriso_iso_file_open(), Xorriso_restore_is_identical(), Xorriso_retrieve_disk_path(), Xorriso_set_filter(), Xorriso_show_stream(), ziso_add_filter(), and ziso_add_osiz_filter().

◆ iso_file_make_md5()

int iso_file_make_md5 ( IsoFile file,
int  flag 
)

Read the content of an IsoFile object, compute its MD5 and attach it to the IsoFile. It can then be inquired by iso_file_get_md5() and will get written into the next session if this is enabled at write time and if the image write process does not compute an MD5 from content which it copies. So this call can be used to equip nodes from the old image with checksums or to make available checksums of newly added files before the session gets written.

Parameters
fileThe file object to read data from and to which to attach the checksum. If the file is from the imported image, then its most original stream will be checksummed. Else the eventual filter streams will get into effect.
flagBitfield for control purposes. Unused yet. Submit 0.
Returns
1= ok, MD5 is computed and attached , <0 indicates error
Since
0.6.22

Definition at line 3072 of file node.c.

References checksum_md5_xinfo_func(), Iso_File::from_old_session, ISO_ERROR, iso_node_add_xinfo(), iso_node_remove_xinfo(), ISO_OUT_OF_MEM, iso_stream_make_md5(), and Iso_File::stream.

Referenced by Xorriso_make_md5().

◆ iso_file_remove_filter()

int iso_file_remove_filter ( IsoFile file,
int  flag 
)

Delete the top filter stream from a data file. This is the most recent one which was added by iso_file_add_*_filter(). Caution: One should not do this while the IsoStream of the file is opened. For now there is no general way to determine this state. Filter stream implementations are urged to eventually call .close() inside method .free() . This will close the input stream too.

Parameters
fileThe data file node which shall get rid of one layer of content filtering.
flagBitfield for control purposes, unused yet, submit 0.
Returns
1 on success, 0 if no filter was present <0 on error
Since
0.6.18

Definition at line 58 of file filter.c.

References iso_stream_get_input_stream(), iso_stream_ref(), iso_stream_unref(), and Iso_File::stream.

Referenced by gzip_add_filter(), iso_file_add_external_filter(), Xorriso_set_filter(), and ziso_add_filter().

◆ iso_file_source_access()

int iso_file_source_access ( IsoFileSource src)
inline

Check if the process has access to read file contents. Note that this is not necessarily related with (l)stat functions. For example, in a filesystem implementation to deal with an ISO image, if the user has read access to the image it will be able to read all files inside it, despite of the particular permission of each file in the RR tree, that are what the above functions return.

Returns
1 if process has read access, < 0 on error Error codes: ISO_FILE_ACCESS_DENIED ISO_FILE_BAD_PATH ISO_FILE_DOESNT_EXIST ISO_OUT_OF_MEM ISO_FILE_ERROR ISO_NULL_POINTER
Since
0.6.2

Definition at line 71 of file fsource.c.

References IsoFileSource_Iface::access, and iso_file_source::class.

Referenced by iso_cut_out_stream_new(), and iso_file_source_stream_new().

◆ iso_file_source_close()

int iso_file_source_close ( IsoFileSource src)
inline

Close a previously opened file

Returns
1 on success, < 0 on error Error codes: ISO_FILE_ERROR ISO_NULL_POINTER ISO_FILE_NOT_OPENED
Since
0.6.2

Definition at line 89 of file fsource.c.

References iso_file_source::class, and IsoFileSource_Iface::close.

Referenced by cut_out_close(), fsrc_close(), ifs_get_file(), and iso_add_dir_src_rec().

◆ iso_file_source_get_aa_string()

int iso_file_source_get_aa_string ( IsoFileSource src,
unsigned char **  aa_string,
int  flag 
)
inline

Get the AAIP string with encoded ACL and xattr. (Not to be confused with ECMA-119 Extended Attributes).

Parameters
srcThe file source object to be inquired.
aa_stringReturns a pointer to the AAIP string data. If no AAIP string is available, *aa_string becomes NULL. (See doc/susp_aaip_2_0.txt for the meaning of AAIP.) The caller is responsible for finally calling free() on non-NULL results.
flagBitfield for control purposes bit0= Transfer ownership of AAIP string data. src will free the eventual cached data and might not be able to produce it again. bit1= No need to get ACL (but no guarantee of exclusion) bit2= No need to get xattr (but no guarantee of exclusion) bit3= if not bit2: import all xattr namespaces from local filesystem, not only "user."
Since
1.5.0
Returns
1 means success (*aa_string == NULL is possible) <0 means failure and must b a valid libisofs error code (e.g. ISO_FILE_ERROR if no better one can be found).
Since
0.6.14

Definition at line 126 of file fsource.c.

References iso_file_source::class, IsoFileSource_Iface::get_aa_string, and IsoFileSource_Iface::version.

Referenced by default_create_node(), iso_image_import(), and src_aa_to_node().

◆ iso_file_source_get_filesystem()

IsoFilesystem* iso_file_source_get_filesystem ( IsoFileSource src)
inline

Get the filesystem for this source. No extra ref is added, so you must not unref the IsoFilesystem.

Returns
The filesystem, NULL on error
Since
0.6.2

Definition at line 119 of file fsource.c.

References iso_file_source::class, and IsoFileSource_Iface::get_filesystem.

Referenced by cut_out_get_id(), default_create_node(), fsrc_get_id(), and iso_file_source_stream_new().

◆ iso_file_source_get_name()

char* iso_file_source_get_name ( IsoFileSource src)
inline

Get the name of the file, with the dir component of the path.

Returns
the name of the file, it should be freed when no more needed.
Since
0.6.2

Definition at line 59 of file fsource.c.

References iso_file_source::class, and IsoFileSource_Iface::get_name.

Referenced by default_create_file(), default_create_node(), ifs_get_file(), image_builder_create_node(), and iso_tree_add_node_builder().

◆ iso_file_source_get_path()

char* iso_file_source_get_path ( IsoFileSource src)
inline

Get the absolute path in the filesystem this file source belongs to.

Returns
the path of the FileSource inside the filesystem, it should be freed when no more needed.
Since
0.6.2

Definition at line 53 of file fsource.c.

References iso_file_source::class, and IsoFileSource_Iface::get_path.

Referenced by iso_add_dir_src_rec(), iso_stream_get_file_name(), iso_stream_get_source_path(), and lfs_get_aa_string().

◆ iso_file_source_lseek()

off_t iso_file_source_lseek ( IsoFileSource src,
off_t  offset,
int  flag 
)
inline

Repositions the offset of the given IsoFileSource (must be opened) to the given offset according to the value of flag.

Parameters
srcThe given source
offsetin bytes
flag0 The offset is set to offset bytes (SEEK_SET) 1 The offset is set to its current location plus offset bytes (SEEK_CUR) 2 The offset is set to the size of the file plus offset bytes (SEEK_END).
Returns
Absolute offset position on the file, or < 0 on error. Cast the returning value to int to get a valid libisofs error.
Since
0.6.4

Definition at line 101 of file fsource.c.

References iso_file_source::class, and IsoFileSource_Iface::lseek.

Referenced by cut_out_open().

◆ iso_file_source_lstat()

int iso_file_source_lstat ( IsoFileSource src,
struct stat *  info 
)
inline

Get information about the file.

Returns
1 success, < 0 error Error codes: ISO_FILE_ACCESS_DENIED ISO_FILE_BAD_PATH ISO_FILE_DOESNT_EXIST ISO_OUT_OF_MEM ISO_FILE_ERROR ISO_NULL_POINTER
Since
0.6.2

Definition at line 65 of file fsource.c.

References iso_file_source::class, and IsoFileSource_Iface::lstat.

Referenced by default_create_node(), image_builder_create_node(), iso_add_dir_src_rec(), and iso_image_import().

◆ iso_file_source_open()

int iso_file_source_open ( IsoFileSource src)
inline

Opens the source.

Returns
1 on success, < 0 on error Error codes: ISO_FILE_ALREADY_OPENED ISO_FILE_ACCESS_DENIED ISO_FILE_BAD_PATH ISO_FILE_DOESNT_EXIST ISO_OUT_OF_MEM ISO_FILE_ERROR ISO_NULL_POINTER
Since
0.6.2

Definition at line 83 of file fsource.c.

References iso_file_source::class, and IsoFileSource_Iface::open.

Referenced by cut_out_open(), fsrc_open(), ifs_get_file(), and iso_add_dir_src_rec().

◆ iso_file_source_read()

int iso_file_source_read ( IsoFileSource src,
void *  buf,
size_t  count 
)
inline

Attempts to read up to count bytes from the given source into the buffer starting at buf.

The file src must be open() before calling this, and close() when no more needed. Not valid for dirs. On symlinks it reads the destination file.

Parameters
srcThe given source
bufPointer to a buffer of at least count bytes where the read data will be stored
countBytes to read
Returns
number of bytes read, 0 if EOF, < 0 on error Error codes: ISO_FILE_ERROR ISO_NULL_POINTER ISO_FILE_NOT_OPENED ISO_WRONG_ARG_VALUE -> if count == 0 ISO_FILE_IS_DIR ISO_OUT_OF_MEM ISO_INTERRUPTED
Since
0.6.2

Definition at line 95 of file fsource.c.

References iso_file_source::class, and IsoFileSource_Iface::read.

Referenced by cut_out_read(), and fsrc_read().

◆ iso_file_source_readdir()

int iso_file_source_readdir ( IsoFileSource src,
IsoFileSource **  child 
)
inline

Read a directory.

Each call to this function will return a new child, until we reach the end of file (i.e, no more children), in that case it returns 0.

The dir must be open() before calling this, and close() when no more needed. Only valid for dirs.

Note that "." and ".." children MUST NOT BE returned.

Parameters
srcThe given source
childpointer to be filled with the given child. Undefined on error or OEF
Returns
1 on success, 0 if EOF (no more children), < 0 on error Error codes: ISO_FILE_ERROR ISO_NULL_POINTER ISO_FILE_NOT_OPENED ISO_FILE_IS_NOT_DIR ISO_OUT_OF_MEM
Since
0.6.2

Definition at line 107 of file fsource.c.

References iso_file_source::class, and IsoFileSource_Iface::readdir.

Referenced by ifs_get_file(), and iso_add_dir_src_rec().

◆ iso_file_source_readlink()

int iso_file_source_readlink ( IsoFileSource src,
char *  buf,
size_t  bufsiz 
)
inline

Read the destination of a symlink. You don't need to open the file to call this.

Parameters
srcAn IsoFileSource corresponding to a symbolic link.
bufAllocated buffer of at least bufsiz bytes. The destination string will be copied there, and it will be 0-terminated if the return value indicates success or ISO_RR_PATH_TOO_LONG.
bufsizMaximum number of buf characters + 1. The string will be truncated if it is larger than bufsiz - 1 and ISO_RR_PATH_TOO_LONG. will be returned.
Returns
1 on success, < 0 on error Error codes: ISO_FILE_ERROR ISO_NULL_POINTER ISO_WRONG_ARG_VALUE -> if bufsiz <= 0 ISO_FILE_IS_NOT_SYMLINK ISO_OUT_OF_MEM ISO_FILE_BAD_PATH ISO_FILE_DOESNT_EXIST ISO_RR_PATH_TOO_LONG (
Since
1.0.6)
0.6.2

Definition at line 113 of file fsource.c.

References iso_file_source::class, and IsoFileSource_Iface::readlink.

Referenced by default_create_node(), and image_builder_create_node().

◆ iso_file_source_ref()

void iso_file_source_ref ( IsoFileSource src)

◆ iso_file_source_stat()

int iso_file_source_stat ( IsoFileSource src,
struct stat *  info 
)
inline

Get information about the file. If the file is a symlink, the info returned refers to the destination.

Returns
1 success, < 0 error Error codes: ISO_FILE_ACCESS_DENIED ISO_FILE_BAD_PATH ISO_FILE_DOESNT_EXIST ISO_OUT_OF_MEM ISO_FILE_ERROR ISO_NULL_POINTER
Since
0.6.2

Definition at line 77 of file fsource.c.

References iso_file_source::class, and IsoFileSource_Iface::stat.

Referenced by cut_out_open(), default_create_file(), default_create_node(), fsrc_is_repeatable(), fsrc_open(), fsrc_update_size(), iso_add_dir_src_rec(), iso_cut_out_stream_new(), iso_file_source_stream_new(), iso_tree_add_dir_rec(), and iso_tree_add_new_cut_out_node().

◆ iso_file_source_unref()

void iso_file_source_unref ( IsoFileSource src)

◆ iso_filesystem_ref()

void iso_filesystem_ref ( IsoFilesystem fs)

Take a ref to the given IsoFilesystem

Since
0.6.2

Definition at line 35 of file fsource.c.

References iso_filesystem::refcount.

Referenced by create_boot_img_filesrc(), ifs_clone_src(), iso_file_source_new_lfs(), iso_local_filesystem_new(), and lfs_clone_src().

◆ iso_filesystem_unref()

void iso_filesystem_unref ( IsoFilesystem fs)

Drop your ref to the given IsoFilesystem, evetually freeing associated resources.

Since
0.6.2

Definition at line 40 of file fsource.c.

References iso_filesystem::free, and iso_filesystem::refcount.

Referenced by ifs_free(), iso_image_import(), iso_image_new(), iso_image_unref(), and lfs_free().

◆ iso_finish()

void iso_finish ( )

Finalize libisofs.

Since
0.6.2

Definition at line 232 of file messages.c.

References iso_node_xinfo_dispose_cloners(), iso_stream_destroy_cmpranks(), libiso_msgr, and libiso_msgs_destroy().

Referenced by isoburn_finish().

◆ iso_generate_gpt_guid()

void iso_generate_gpt_guid ( uint8_t  guid[16])

Generate a pseudo-random GUID suitable for iso_write_opts_set_gpt_guid().

Parameters
guidWill be filled by 16 bytes of generated GUID.
Since
1.4.6

Definition at line 2554 of file system_area.c.

References iso_crc32_gpt(), iso_mark_guid_version_4(), and O_BINARY.

Referenced by iso_gpt_uuid(), and Xorriso_make_guid().

◆ iso_get_local_charset()

char* iso_get_local_charset ( int  flag)

Obtain the local charset as currently assumed by libisofs. The result points to internal memory. It is volatile and must not be altered.

Parameters
flagUnused yet. Submit 0.
Since
0.6.12

Definition at line 185 of file util.c.

References libisofs_local_charset.

Referenced by ecma119_image_new(), iso_conv_name_chars(), iso_image_filesystem_new(), ucs2str(), and Xorriso_get_local_charset().

◆ iso_get_messenger()

void* iso_get_messenger ( )

Return the messenger object handle used by libisofs. This handle may be used by related libraries to their own compatible messenger objects and thus to direct their messages to the libisofs message queue. See also: libburn, API function burn_set_messenger().

Returns
the handle. Do only use with compatible
Since
0.6.2

Return the messenger object handle used by libisofs. This handle may be used by related libraries to their own compatible messenger objects and thus to direct their messages to the libisofs message queue. See also: libburn, API function burn_set_messenger().

Returns
the handle. Do only use with compatible

Definition at line 762 of file messages.c.

References libiso_msgr.

◆ iso_gzip_get_refcounts()

int iso_gzip_get_refcounts ( off_t *  gzip_count,
off_t *  gunzip_count,
int  flag 
)

Inquire the number of gzip compression and uncompression filters which are in use.

Parameters
gzip_countWill return the number of currently installed compression filters.
gunzip_countWill return the number of currently installed uncompression filters.
flagBitfield for control purposes, unused yet, submit 0
Returns
1 on success, <0 on error
Since
0.6.18

Definition at line 826 of file gzip.c.

References gunzip_ref_count, gzip_ref_count, and ISO_SUCCESS.

Referenced by Xorriso_status_zisofs().

◆ iso_hfsplus_xinfo_func()

int iso_hfsplus_xinfo_func ( void *  data,
int  flag 
)

The function that is used to mark struct iso_hfsplus_xinfo_data at IsoNodes and finally disposes such structs when their IsoNodes get disposed. Usually an application does not call this function, but only uses it as parameter of xinfo calls like iso_node_add_xinfo() or iso_node_get_xinfo().

Since
1.2.4

Definition at line 1841 of file hfsplus.c.

Referenced by Exprtest_match(), hfsplus_writer_write_data(), iso_init_with_flag(), Xorriso_findi_action(), Xorriso_remove_hfsplus_crtp(), and Xorriso_set_hfsplus_crtp().

◆ iso_hfsplus_xinfo_new()

struct iso_hfsplus_xinfo_data* iso_hfsplus_xinfo_new ( int  flag)

Create an instance of struct iso_hfsplus_xinfo_new().

Parameters
flagBitfield for control purposes. Unused yet. Submit 0.
Returns
A pointer to the new object NULL indicates failure to allocate memory
Since
1.2.4

Definition at line 1849 of file hfsplus.c.

References iso_hfsplus_xinfo_data::version.

Referenced by iso_hfsplus_xinfo_cloner(), and Xorriso_set_hfsplus_crtp().

◆ iso_image_add_boot_image()

int iso_image_add_boot_image ( IsoImage image,
const char *  image_path,
enum eltorito_boot_media_type  type,
int  flag,
ElToritoBootImage **  boot 
)

Add a further boot image to the set of El-Torito bootable images. This set has already to be created by iso_image_set_boot_image(). Up to 31 further boot images may be added.

Parameters
imageThe image to which the boot image shall be added. returns an error and the image remains unmodified.
image_pathThe absolute path of a IsoFile to be used as boot image or –interval:appended_partition_$number[start$start_size_$size]:... if type is ELTORITO_NO_EMUL. See iso_image_set_boot_image.
typeThe boot media type. See iso_image_set_boot_image.
flagBitfield for control purposes. Unused yet. Submit 0.
bootLocation where a pointer to the added boot image will be stored. See iso_image_set_boot_image
Returns
1 on success, < 0 on error ISO_BOOT_NO_CATALOG means iso_image_set_boot_image() was not called first.
Since
0.6.32

Definition at line 786 of file eltorito.c.

References Iso_Image::bootcat, el_torito_boot_catalog::bootimages, create_image(), Iso_File::explicit_weight, Iso_File::from_old_session, ISO_BOOT_IMAGE_OVERFLOW, ISO_BOOT_NO_CATALOG, Libisofs_max_boot_imageS, el_torito_boot_catalog::num_bootimages, and Iso_File::sort_weight.

Referenced by Xorriso_attach_boot_image().

◆ iso_image_add_mips_boot_file()

int iso_image_add_mips_boot_file ( IsoImage image,
char *  path,
int  flag 
)

Add a MIPS boot file path to the image. Up to 15 such files can be written into a MIPS Big Endian Volume Header if this is enabled by value 1 in iso_write_opts_set_system_area() option bits 2 to 7. A single file can be written into a DEC Boot Block if this is enabled by value 2 in iso_write_opts_set_system_area() option bits 2 to 7. So only the first added file gets into effect with this system area type. The data files which shall serve as MIPS boot files have to be brought into the image by the normal means.

Parameters
imageThe image to be manipulated.
pathAbsolute path of the boot file in the ISO 9660 Rock Ridge tree.
flagBitfield for control purposes, unused yet, submit 0
Returns
1 on success, < 0 error
Since
0.6.38

Definition at line 862 of file image.c.

References ISO_BOOT_TOO_MANY_MIPS, ISO_OUT_OF_MEM, ISO_SUCCESS, Iso_Image::mips_boot_file_paths, and Iso_Image::num_mips_boot_files.

Referenced by Xorriso_add_mips_boot_file().

◆ iso_image_add_new_dir()

int iso_image_add_new_dir ( IsoImage image,
IsoDir parent,
const char *  name,
IsoDir **  dir 
)

Add a new directory to the iso tree. Permissions, owner and hidden atts are taken from parent, you can modify them later.

Parameters
imageThe image object to which the new directory shall belong.
parentThe directory node where the new directory will be grafted in.
nameName for the new directory. If truncation mode is set to 1, an oversized name gets truncated before further processing. If a node with same name already exists on parent, this function fails with ISO_NODE_NAME_NOT_UNIQUE.
dirplace where to store a pointer to the newly created dir. No extra ref is added, so you will need to call iso_node_ref() if you really need it. You can pass NULL in this parameter if you don't need the pointer.
Returns
number of nodes in parent if success, < 0 otherwise Possible errors: ISO_NULL_POINTER, if parent or name are NULL ISO_NODE_NAME_NOT_UNIQUE, a node with same name already exists ISO_OUT_OF_MEM ISO_RR_NAME_TOO_LONG
Since
1.4.2

Definition at line 103 of file tree.c.

References iso_image_truncate_name(), and iso_tree_add_new_dir().

Referenced by Xorriso_graft_in(), and Xorriso_graft_split().

◆ iso_image_add_new_file()

int iso_image_add_new_file ( IsoImage image,
IsoDir parent,
const char *  name,
IsoStream stream,
IsoFile **  file 
)

Add a new regular file to the iso tree. Permissions are set to 0444, owner and hidden atts are taken from parent. You can modify any of them later.

Parameters
imageThe image object to which the new file shall belong.
parentThe directory node where the new directory will be grafted in.
nameName for the new file. If truncation mode is set to 1, an oversized name gets truncated before further processing. If a node with same name already exists on parent, this function fails with ISO_NODE_NAME_NOT_UNIQUE.
streamIsoStream for the contents of the file. The reference will be taken by the newly created file, you will need to take an extra ref to it if you need it.
fileplace where to store a pointer to the newly created file. No extra ref is added, so you will need to call iso_node_ref() if you really need it. You can pass NULL in this parameter if you don't need the pointer
Returns
number of nodes in parent if success, < 0 otherwise Possible errors: ISO_NULL_POINTER, if parent, name or dest are NULL ISO_NODE_NAME_NOT_UNIQUE, a node with same name already exists ISO_OUT_OF_MEM ISO_RR_NAME_TOO_LONG
Since
1.4.2

Definition at line 383 of file tree.c.

References iso_image_truncate_name(), and iso_tree_add_new_file().

◆ iso_image_add_new_special()

int iso_image_add_new_special ( IsoImage image,
IsoDir parent,
const char *  name,
mode_t  mode,
dev_t  dev,
IsoSpecial **  special 
)

Add a new special file to the directory tree. As far as libisofs concerns, a special file is a block device, a character device, a FIFO (named pipe) or a socket. You can choose the specific kind of file you want to add by setting mode properly (see man 2 stat).

Note that special files are only written to image when Rock Ridge extensions are enabled. Moreover, a special file is just a directory entry in the image tree, no data is written beyond that.

Owner and hidden atts are taken from parent. You can modify any of them later.

Parameters
imageThe image object to which the new special file shall belong.
parentThe directory node where the new special file will be grafted in.
nameName for the new special file. If truncation mode is set to 1, an oversized name gets truncated before further processing. If a node with same name already exists on parent, this function fails with ISO_NODE_NAME_NOT_UNIQUE.
modeFile type and permissions for the new node. Note that only the file types S_IFSOCK, S_IFBLK, S_IFCHR, and S_IFIFO are allowed. S_IFLNK, S_IFREG, or S_IFDIR are not.
devDevice ID, equivalent to the st_rdev field in man 2 stat.
specialPlace where to store a pointer to the newly created special file. No extra ref is added, so you will need to call iso_node_ref() if you really need it. You can pass NULL in this parameter if you don't need the pointer.
Returns
Number of nodes in parent if success, < 0 otherwise Possible errors: ISO_NULL_POINTER, if parent, name or dest are NULL ISO_NODE_NAME_NOT_UNIQUE, a node with same name already exists ISO_WRONG_ARG_VALUE if you select a incorrect mode ISO_OUT_OF_MEM ISO_RR_NAME_TOO_LONG
Since
1.4.2

Definition at line 294 of file tree.c.

References iso_image_truncate_name(), and iso_tree_add_new_special().

◆ iso_image_add_new_symlink()

int iso_image_add_new_symlink ( IsoImage image,
IsoDir parent,
const char *  name,
const char *  dest,
IsoSymlink **  link 
)

Add a new symbolic link to the directory tree. Permissions are set to 0777, owner and hidden atts are taken from parent. You can modify any of them later.

Parameters
imageThe image object to which the new directory shall belong.
parentThe directory node where the new symlink will be grafted in.
nameName for the new symlink. If truncation mode is set to 1, an oversized name gets truncated before further processing. If a node with same name already exists on parent, this function fails with ISO_NODE_NAME_NOT_UNIQUE.
destThe destination path of the link. The components of this path are not checked for being oversized.
linkPlace where to store a pointer to the newly created link. No extra ref is added, so you will need to call iso_node_ref() if you really need it. You can pass NULL in this parameter if you don't need the pointer
Returns
number of nodes in parent if success, < 0 otherwise Possible errors: ISO_NULL_POINTER, if parent, name or dest are NULL ISO_NODE_NAME_NOT_UNIQUE, a node with same name already exists ISO_OUT_OF_MEM ISO_RR_NAME_TOO_LONG
Since
1.4.2

Definition at line 191 of file tree.c.

References iso_image_truncate_name(), and iso_tree_add_new_symlink().

Referenced by Xorriso_add_symlink().

◆ iso_image_attach_data()

int iso_image_attach_data ( IsoImage image,
void *  data,
void(*)(void *)  give_up 
)

Attach user defined data to the image. Use this if your application needs to store addition info together with the IsoImage. If the image already has data attached, the old data will be freed.

Parameters
imageThe image to which data shall be attached.
dataPointer to application defined data that will be attached to the image. You can pass NULL to remove any already attached data.
give_upFunction that will be called when the image does not need the data any more. It receives the data pointer as an argumente, and eventually causes data to be freed. It can be NULL if you don't need it.
Returns
1 on success, < 0 on error
Since
0.6.2

Attach user defined data to the image. Use this if your application needs to store addition info together with the IsoImage. If the image already has data attached, the old data will be freed.

Parameters
dataPointer to application defined data that will be attached to the image. You can pass NULL to remove any already attached data.
give_upFunction that will be called when the image does not need the data any more. It receives the data pointer as an argumente, and eventually causes data to be free. It can be NULL if you don't need it.

Definition at line 304 of file image.c.

References ISO_NULL_POINTER, ISO_SUCCESS, Iso_Image::user_data, and Iso_Image::user_data_free.

Referenced by isoburn_read_image().

◆ iso_image_create_burn_source()

int iso_image_create_burn_source ( IsoImage image,
IsoWriteOpts opts,
struct burn_source **  burn_src 
)

Create a burn_source and a thread which immediately begins to generate the image. That burn_source can be used with libburn as a data source for a track. A copy of its public declaration in libburn.h can be found further below in this text.

If image generation shall be aborted by the application program, then the .cancel() method of the burn_source must be called to end the generation thread: burn_src->cancel(burn_src);

Parameters
imageThe image to write.
optsThe options for image generation. All needed data will be copied, so you can free the given struct once this function returns.
burn_srcLocation where the pointer to the burn_source will be stored
Returns
1 on success, < 0 on error
Since
0.6.2

Definition at line 3427 of file ecma119.c.

References iso_write_opts::allow_deep_paths, bs_cancel(), bs_free_data(), bs_get_size(), bs_read(), bs_set_size(), burn_source::cancel, burn_source::data, ecma119_image_new(), burn_source::free_data, burn_source::get_size, ISO_NULL_POINTER, ISO_OUT_OF_MEM, ISO_SUCCESS, make_reloc_dir_if_needed(), burn_source::read, burn_source::read_xt, burn_source::refcount, burn_source::set_size, and burn_source::version.

Referenced by isoburn_prepare_disc_aux().

◆ iso_image_dir_get_node()

int iso_image_dir_get_node ( IsoImage image,
IsoDir dir,
const char *  name,
IsoNode **  node,
int  flag 
)

Locate a node inside a given dir.

The IsoImage context defines a maximum permissible name length and a mode how to react on oversized names. See iso_image_set_truncate_mode(). If the caller looks for an oversized name and image truncate mode is 1, then this call looks for the truncated name among the nodes of dir.

Parameters
imageThe image object to which dir belongs.
dirThe dir where to look for the node.
nameThe name of the node. (Will not be changed if truncation happens.)
nodeLocation for a pointer to the node, it will filled with NULL if the dir doesn't have a child with the given name. The node will be owned by the dir and shouldn't be unref(). Just call iso_node_ref() to get your own reference to the node. Note that you can pass NULL is the only thing you want to do is check if a node with such name already exists on dir.
flagBitfield for control purposes. bit0= do not truncate name but lookup exactly as given.
Returns
1 node found 0 no name truncation was needed, name not found in dir 2 name truncation happened, truncated name not found in dir < 0 error, see iso_dir_get_node().
Since
1.4.2

Definition at line 679 of file node.c.

References iso_dir_get_node(), iso_dir_get_node_trunc(), Iso_Image::truncate_length, and Iso_Image::truncate_mode.

Referenced by Xorriso_graft_in(), and Xorriso_tree_graft_node().

◆ iso_image_filesystem_new()

int iso_image_filesystem_new ( IsoDataSource src,
IsoReadOpts opts,
int  msgid,
IsoImageFilesystem **  fs 
)

Create a new IsoFilesystem to access a existent ISO image.

Parameters
srcData source to access data.
optsImage read options
msgidAn image identifier, obtained with iso_image_get_msg_id(), used to associated messages issued by the filesystem implementation with an existent image. If you are not using this filesystem in relation with any image context, just use 0x1fffff as the value for this parameter.
fsWill be filled with a pointer to the filesystem that can be used to access image contents.
Returns
1 on success, < 0 on error
Since
0.6.2

Definition at line 2887 of file fs_image.c.

References _ImageFsData::aaip_load, _ImageFsData::aaip_version, iso_read_opts::auto_input_charset, _ImageFsData::auto_input_charset, ecma119_dir_record::block, el_torito_section_entry::block, iso_read_opts::block, BLOCK_SIZE, ecma119_boot_rec_vol_desc::boot_catalog, ecma119_boot_rec_vol_desc::boot_sys_id, _ImageFsData::bootblocks, _ImageFsData::catblock, _ImageFsData::catcontent, iso_filesystem::close, iso_filesystem::data, iso_read_opts::dir_mode, _ImageFsData::dir_mode, iso_read_opts::ecma119_map, _ImageFsData::ecma119_map, ecma119_sup_vol_desc::esc_sequences, _ImageFsData::evd_root_block, iso_read_opts::file_mode, _ImageFsData::file_mode, iso_filesystem::free, fs_dev_id, iso_filesystem::get_by_path, iso_filesystem::get_id, iso_filesystem::get_root, iso_read_opts::gid, _ImageFsData::gid, _ImageFsData::id, ifs_fs_close(), ifs_fs_free(), ifs_fs_open(), ifs_get_by_path(), ifs_get_id(), ifs_get_root(), _ImageFsData::inode_counter, iso_read_opts::input_charset, _ImageFsData::input_charset, _ImageFsData::iso1999, iso_data_source_ref(), iso_get_local_charset(), iso_msg_debug(), iso_msg_submit(), iso_msgs_submit(), ISO_NULL_POINTER, ISO_OUT_OF_MEM, iso_read_bb(), iso_read_lsb(), _ImageFsData::iso_root_block, iso_src_check_sb_tree(), ISO_SUCCESS, ISO_UNSUPPORTED_EL_TORITO, ISO_UNSUPPORTED_VD, ISO_WRONG_EL_TORITO, _ImageFsData::joliet, iso_read_opts::joliet_map, _ImageFsData::joliet_map, _ImageFsData::joliet_ucs2_failures, ecma119_dir_record::len_xa, LIBISO_ALLOC_MEM, LIBISO_FREE_MEM, Libisofs_max_boot_imageS, _ImageFsData::local_charset, iso_read_opts::make_new_ino, _ImageFsData::make_new_ino, _ImageFsData::md5_load, _ImageFsData::msgid, iso_read_opts::noaaip, iso_read_opts::noiso1999, iso_read_opts::nojoliet, iso_read_opts::nomd5, iso_read_opts::norock, _ImageFsData::num_bootimgs, iso_filesystem::open, _ImageFsData::open_count, iso_read_opts::preferjoliet, _ImageFsData::pvd_root_block, _ImageFsData::px_ino_status, iso_data_source::read_block, read_el_torito_boot_catalog(), read_pvm(), read_root_susp_entries(), iso_filesystem::refcount, ecma119_sup_vol_desc::root_dir_record, _ImageFsData::rr, _ImageFsData::rr_err_repeated, _ImageFsData::rr_err_reported, RR_EXT_NO, _ImageFsData::rr_version, _ImageFsData::src, ecma119_boot_rec_vol_desc::std_identifier, _ImageFsData::svd_root_block, iso_read_opts::truncate_length, _ImageFsData::truncate_length, iso_read_opts::truncate_mode, _ImageFsData::truncate_mode, iso_filesystem::type, iso_read_opts::uid, _ImageFsData::uid, iso_filesystem::version, ecma119_sup_vol_desc::vol_desc_version, and ecma119_boot_rec_vol_desc::vol_desc_version.

Referenced by iso_image_import().

◆ iso_image_fs_get_abstract_file_id()

const char* iso_image_fs_get_abstract_file_id ( IsoImageFilesystem fs)

Get the abstract file identifier for an existent image. The returned string belong to the IsoImageFilesystem and shouldn't be free() nor modified.

Since
0.6.2

Definition at line 6267 of file fs_image.c.

References _ImageFsData::abstract_file_id, and iso_filesystem::data.

◆ iso_image_fs_get_application_id()

const char* iso_image_fs_get_application_id ( IsoImageFilesystem fs)

Get the application identifier for an existent image. The returned string belong to the IsoImageFilesystem and shouldn't be free() nor modified.

Since
0.6.2

Definition at line 6255 of file fs_image.c.

References _ImageFsData::application_id, and iso_filesystem::data.

◆ iso_image_fs_get_biblio_file_id()

const char* iso_image_fs_get_biblio_file_id ( IsoImageFilesystem fs)

Get the biblio file identifier for an existent image. The returned string belong to the IsoImageFilesystem and shouldn't be free() nor modified.

Since
0.6.2

Definition at line 6274 of file fs_image.c.

References _ImageFsData::biblio_file_id, and iso_filesystem::data.

◆ iso_image_fs_get_copyright_file_id()

const char* iso_image_fs_get_copyright_file_id ( IsoImageFilesystem fs)

Get the copyright file identifier for an existent image. The returned string belong to the IsoImageFilesystem and shouldn't be free() nor modified.

Since
0.6.2

Definition at line 6261 of file fs_image.c.

References _ImageFsData::copyright_file_id, and iso_filesystem::data.

◆ iso_image_fs_get_data_preparer_id()

const char* iso_image_fs_get_data_preparer_id ( IsoImageFilesystem fs)

Get the data preparer identifier for an existent image. The returned string belong to the IsoImageFilesystem and shouldn't be free() nor modified.

Since
0.6.2

Definition at line 6243 of file fs_image.c.

References iso_filesystem::data, and _ImageFsData::data_preparer_id.

◆ iso_image_fs_get_publisher_id()

const char* iso_image_fs_get_publisher_id ( IsoImageFilesystem fs)

Get the publisher identifier for an existent image. The returned string belong to the IsoImageFilesystem and shouldn't be free() nor modified.

Since
0.6.2

Definition at line 6237 of file fs_image.c.

References iso_filesystem::data, and _ImageFsData::publisher_id.

◆ iso_image_fs_get_system_id()

const char* iso_image_fs_get_system_id ( IsoImageFilesystem fs)

Get the system identifier for an existent image. The returned string belong to the IsoImageFilesystem and shouldn't be free() nor modified.

Since
0.6.2

Definition at line 6249 of file fs_image.c.

References iso_filesystem::data, and _ImageFsData::system_id.

◆ iso_image_fs_get_volset_id()

const char* iso_image_fs_get_volset_id ( IsoImageFilesystem fs)

Get the volset identifier for an existent image. The returned string belong to the IsoImageFilesystem and shouldn't be free() nor modified.

Since
0.6.2

Definition at line 6225 of file fs_image.c.

References iso_filesystem::data, and _ImageFsData::volset_id.

◆ iso_image_fs_get_volume_id()

const char* iso_image_fs_get_volume_id ( IsoImageFilesystem fs)

Get the volume identifier for an existent image. The returned string belong to the IsoImageFilesystem and shouldn't be free() nor modified.

Since
0.6.2

Definition at line 6231 of file fs_image.c.

References iso_filesystem::data, and _ImageFsData::volume_id.

◆ iso_image_generator_is_running()

int iso_image_generator_is_running ( IsoImage image)

Inquire whether the image generator thread is still at work. As soon as the reply is 0, the caller of iso_image_create_burn_source() may assume that the image generation has ended. Nevertheless there may still be readily formatted output data pending in the burn_source or its consumers. So the final delivery of the image has also to be checked at the data consumer side,e.g. by burn_drive_get_status() in case of libburn as consumer.

Parameters
imageThe image to inquire.
Returns
1 generating of image stream is still in progress 0 generating of image stream has ended meanwhile
Since
0.6.38

Definition at line 855 of file image.c.

References Iso_Image::generator_is_running.

Referenced by Xorriso_pacifier_loop().

◆ iso_image_get_abstract_file_id()

const char* iso_image_get_abstract_file_id ( const IsoImage image)

Get the abstract information of a image. The returned string is owned by the image and must not be freed nor changed.

Since
0.6.2

Definition at line 439 of file image.c.

References Iso_Image::abstract_file_id.

Referenced by Xorriso_aquire_drive().

◆ iso_image_get_all_boot_imgs()

int iso_image_get_all_boot_imgs ( IsoImage image,
int *  num_boots,
ElToritoBootImage ***  boots,
IsoFile ***  bootnodes,
int  flag 
)

Get all El-Torito boot images of an ISO image.

The first of these boot images is the same as returned by iso_image_get_boot_image(). The others are alternative boot images.

Parameters
imageThe image from which to get the boot images.
num_bootsThe number of available array elements in boots and bootnodes.
bootsReturns NULL or an allocated array of pointers to boot images. Apply system call free(boots) to dispose it.
bootnodesReturns NULL or an allocated array of pointers to the IsoFile nodes which bear the content of the boot images in boots. An array entry is NULL if the boot image source is no IsoFile.

Need getter for partition index

Parameters
flagBitfield for control purposes. Unused yet. Submit 0.
Returns
1 on success, 0 no El-Torito catalog and boot image attached, < 0 error.
Since
0.6.32

Definition at line 724 of file eltorito.c.

References Iso_Image::bootcat, el_torito_boot_catalog::bootimages, el_torito_boot_image::image, ISO_NULL_POINTER, ISO_OUT_OF_MEM, and el_torito_boot_catalog::num_bootimages.

Referenced by Xorriso_boot_image_status(), Xorriso_set_isolinux_options(), and Xorriso_show_boot_info().

◆ iso_image_get_alpha_boot()

int iso_image_get_alpha_boot ( IsoImage img,
char **  boot_loader_path 
)

Inquire the path submitted by iso_image_set_alpha_boot() Do not free() the returned pointer.

Parameters
imgThe image to be inquired.
boot_loader_pathWill return the path. NULL if none is currently submitted.
Returns
1 is success , <0 means error
Since
1.4.0

Definition at line 1092 of file image.c.

References Iso_Image::alpha_boot_image, and ISO_SUCCESS.

Referenced by Xorriso_boot_status_non_mbr().

◆ iso_image_get_app_use()

const char* iso_image_get_app_use ( IsoImage image)

Get the current setting for the Application Use field of the Primary Volume Descriptor. The returned char array of 512 bytes is owned by the image and must not be freed or changed.

Parameters
imageThe image to inquire
Since
1.3.2

◆ iso_image_get_application_id()

const char* iso_image_get_application_id ( const IsoImage image)

Get the application id of a image. The returned string is owned by the image and must not be freed nor changed.

Since
0.6.2

Definition at line 411 of file image.c.

References Iso_Image::application_id.

Referenced by Xorriso_aquire_drive().

◆ iso_image_get_attached_data()

void* iso_image_get_attached_data ( IsoImage image)

The the data previously attached with iso_image_attach_data()

Since
0.6.2

The the data previously attached with iso_image_attach_data()

Definition at line 329 of file image.c.

References Iso_Image::user_data.

Referenced by Xorriso__read_pacifier().

◆ iso_image_get_biblio_file_id()

const char* iso_image_get_biblio_file_id ( const IsoImage image)

Get the biblio information of a image. The returned string is owned by the image and must not be freed or changed.

Since
0.6.2

Definition at line 452 of file image.c.

References Iso_Image::biblio_file_id.

Referenced by Xorriso_aquire_drive().

◆ iso_image_get_boot_image()

int iso_image_get_boot_image ( IsoImage image,
ElToritoBootImage **  boot,
IsoFile **  imgnode,
IsoBoot **  catnode 
)

Get the El-Torito boot catalog and the default boot image of an ISO image.

This can be useful, for example, to check if a volume read from a previous session or an existing image is bootable. It can also be useful to get the image and catalog tree nodes. An application would want those, for example, to prevent the user removing it.

Both nodes are owned by libisofs and must not be freed. You can get your own ref with iso_node_ref(). You can also check if the node is already on the tree by getting its parent (note that when reading El-Torito info from a previous image, the nodes might not be on the tree even if you haven't removed them). Remember that you'll need to get a new ref (with iso_node_ref()) before inserting them again to the tree, and probably you will also need to set the name or permissions.

Parameters
imageThe image from which to get the boot image.
bootIf not NULL, it will be filled with a pointer to the boot image, if any. That object is owned by the IsoImage and must not be freed by the user, nor dereferenced once the last reference to the IsoImage was disposed via iso_image_unref().
imgnodeWhen not NULL, it will be filled with the image tree node. No extra ref is added, you can use iso_node_ref() to get one if you need it. The returned value is NULL if the boot image source is no IsoFile.
catnodeWhen not NULL, it will be filled with the catnode tree node. No extra ref is added, you can use iso_node_ref() to get one if you need it.
Returns
1 on success, 0 is the image is not bootable (i.e., it has no El-Torito image), < 0 error.
Since
0.6.2

Get the boot catalog and the El-Torito default boot image of an ISO image.

This can be useful, for example, to check if a volume read from a previous session or an existing image is bootable. It can also be useful to get the image and catalog tree nodes. An application would want those, for example, to prevent the user removing it.

Both nodes are owned by libisofs and should not be freed. You can get your own ref with iso_node_ref(). You can can also check if the node is already on the tree by getting its parent (note that when reading El-Torito info from a previous image, the nodes might not be on the tree even if you haven't removed them). Remember that you'll need to get a new ref (with iso_node_ref()) before inserting them again to the tree, and probably you will also need to set the name or permissions.

Parameters
imageThe image from which to get the boot image.
bootIf not NULL, it will be filled with a pointer to the boot image, if any. That object is owned by the IsoImage and should not be freed by the user, nor dereferenced once the last reference to the IsoImage was disposed via iso_image_unref().
imgnodeWhen not NULL, it will be filled with the image tree node. No extra ref is added, you can use iso_node_ref() to get one if you need it.
catnodeWhen not NULL, it will be filled with the catnode tree node. No extra ref is added, you can use iso_node_ref() to get one if you need it.
Returns
1 on success, 0 is the image is not bootable (i.e., it has no El-Torito image), < 0 error.

Definition at line 676 of file eltorito.c.

References Iso_Image::bootcat, el_torito_boot_catalog::bootimages, el_torito_boot_image::image, ISO_NULL_POINTER, ISO_SUCCESS, and el_torito_boot_catalog::node.

Referenced by Xorriso_attach_boot_image(), Xorriso_make_iso_write_opts(), Xorriso_record_boot_info(), Xorriso_set_isolinux_options(), Xorriso_set_system_area(), Xorriso_show_boot_info(), and Xorriso_write_session().

◆ iso_image_get_bootcat()

int iso_image_get_bootcat ( IsoImage image,
IsoBoot **  catnode,
uint32_t *  lba,
char **  content,
off_t *  size 
)

Get detailed information about the boot catalog that was loaded from an ISO image. The boot catalog links the El Torito boot record at LBA 17 with the boot images which are IsoFile objects in the image. The boot catalog itself is not a regular file and thus will not deliver an IsoStream. Its content is usually quite short and can be obtained by this call.

Parameters
imageThe image to inquire.
catnodeWill return the boot catalog tree node. No extra ref is taken.
lbaWill return the block address of the boot catalog in the image.
contentWill return either NULL or an allocated memory buffer with the content bytes of the boot catalog. Dispose it by free() when no longer needed.
sizeWill return the number of bytes in content.
Returns
1 if reply is valid, 0 if not boot catalog was loaded, < 0 on error.
Since
1.1.2

Definition at line 699 of file eltorito.c.

References Iso_Image::bootcat, Iso_Boot::content, ISO_OUT_OF_MEM, Iso_Boot::lba, el_torito_boot_catalog::node, and Iso_Boot::size.

Referenced by Xorriso_fake_stbuf(), and Xorriso_tree_restore_node().

◆ iso_image_get_copyright_file_id()

const char* iso_image_get_copyright_file_id ( const IsoImage image)

Get the copyright information of a image. The returned string is owned by the image and must not be freed nor changed.

Since
0.6.2

Definition at line 425 of file image.c.

References Iso_Image::copyright_file_id.

Referenced by Xorriso_aquire_drive().

◆ iso_image_get_data_preparer_id()

const char* iso_image_get_data_preparer_id ( const IsoImage image)

Get the data preparer of a image. The returned string is owned by the image and must not be freed nor changed.

Since
0.6.2

Definition at line 385 of file image.c.

References Iso_Image::data_preparer_id.

Referenced by Xorriso_pvd_info(), and Xorriso_write_session().

◆ iso_image_get_hppa_palo()

int iso_image_get_hppa_palo ( IsoImage img,
char **  cmdline,
char **  bootloader,
char **  kernel_32,
char **  kernel_64,
char **  ramdisk 
)

Inquire the current settings of iso_image_set_hppa_palo(). Do not free() the returned pointers.

Parameters
imgThe image to be inquired.
cmdlineWill return the command line.
bootloaderWill return the absolute path of the bootloader file.
kernel_32Will return the absolute path of the 32 bit kernel file.
kernel_64Will return the absolute path of the 64 bit kernel file.
ramdiskWill return the absolute path of the RAM disk file.
Returns
1 is success , <0 means error
Since
1.3.8

Definition at line 1066 of file image.c.

References Iso_Image::hppa_bootloader, Iso_Image::hppa_cmdline, Iso_Image::hppa_kernel_32, Iso_Image::hppa_kernel_64, Iso_Image::hppa_ramdisk, and ISO_SUCCESS.

Referenced by Xorriso_boot_status_non_mbr().

◆ iso_image_get_ignore_aclea()

int iso_image_get_ignore_aclea ( IsoImage image)

Obtain the current setting of iso_image_set_ignore_aclea().

Parameters
imageThe image to be inquired
Returns
The currently set value.
Since
1.5.0

Definition at line 618 of file image.c.

References Iso_Image::builder_ignore_acl, Iso_Image::builder_ignore_ea, and Iso_Image::builder_take_all_ea.

Referenced by isoburn_read_image().

◆ iso_image_get_mips_boot_files()

int iso_image_get_mips_boot_files ( IsoImage image,
char *  paths[15],
int  flag 
)

Obtain the number of added MIPS Big Endian boot files and pointers to their paths in the ISO 9660 Rock Ridge tree.

Parameters
imageThe image to be inquired.
pathsAn array of pointers to be set to the registered boot file paths. This are just pointers to data inside IsoImage. Do not free() them. Eventually make own copies of the data before manipulating the image.
flagBitfield for control purposes, unused yet, submit 0
Returns
>= 0 is the number of valid path pointers , <0 means error
Since
0.6.38

Definition at line 874 of file image.c.

References Iso_Image::mips_boot_file_paths, and Iso_Image::num_mips_boot_files.

Referenced by Xorriso_add_mips_boot_file(), and Xorriso_boot_status_non_mbr().

◆ iso_image_get_msg_id()

int iso_image_get_msg_id ( IsoImage image)

Get the id of an IsoImage, used for message reporting. This message id, retrieved with iso_obtain_msgs(), can be used to distinguish what IsoImage has issued a given message.

Since
0.6.2

Definition at line 508 of file image.c.

References Iso_Image::id.

◆ iso_image_get_publisher_id()

const char* iso_image_get_publisher_id ( const IsoImage image)

Get the publisher of a image. The returned string is owned by the image and must not be freed nor changed.

Since
0.6.2

Definition at line 371 of file image.c.

References Iso_Image::publisher_id.

Referenced by Xorriso_aquire_drive().

◆ iso_image_get_pvd_times()

int iso_image_get_pvd_times ( IsoImage image,
char **  creation_time,
char **  modification_time,
char **  expiration_time,
char **  effective_time 
)

Get the four timestamps from the Primary Volume Descriptor of the imported ISO image. The timestamps are strings which are either empty or consist of 16 digits of the form YYYYMMDDhhmmsscc, plus a signed byte in the range of -48 to +52, which gives the timezone offset in steps of 15 minutes. None of the returned string pointers shall be used for altering or freeing data. They are just for reading.

Parameters
imageThe image to be inquired.
creation_timeReturns a pointer to the Volume Creation time: When "the information in the volume was created."
modification_timeReturns a pointer to Volume Modification time: When "the information in the volume was last modified."
expiration_timeReturns a pointer to Volume Expiration time: When "the information in the volume may be regarded as obsolete."
effective_timeReturns a pointer to Volume Expiration time: When "the information in the volume may be used."
Returns
ISO_SUCCESS or error
Since
1.2.8

Definition at line 481 of file image.c.

References Iso_Image::creation_time, Iso_Image::effective_time, Iso_Image::expiration_time, ISO_NULL_POINTER, ISO_SUCCESS, and Iso_Image::modification_time.

Referenced by Xorriso_pvd_info(), and Xorriso_scan_report_lines().

◆ iso_image_get_root()

IsoDir* iso_image_get_root ( const IsoImage image)

Get the root directory of the image. No extra ref is added to it, so you must not unref it. Use iso_node_ref() if you want to get your own reference.

Since
0.6.2

Definition at line 334 of file image.c.

References Iso_Image::root.

Referenced by isoburn_root_defaults(), Xorriso_expand_pattern(), Xorriso_graft_in(), Xorriso_grasp_loaded_aaip(), Xorriso_make_iso_write_opts(), and Xorriso_rmi().

◆ iso_image_get_session_md5()

int iso_image_get_session_md5 ( IsoImage image,
uint32_t *  start_lba,
uint32_t *  end_lba,
char  md5[16],
int  flag 
)

Obtain the recorded MD5 checksum of the session which was loaded as ISO image. Such a checksum may be stored together with others in a contiguous array at the end of the session. The session checksum covers the data blocks from address start_lba to address end_lba - 1. It does not cover the recorded array of md5 checksums. Layout, size, and position of the checksum array is recorded in the xattr "isofs.ca" of the session root node.

Parameters
imageThe image to inquire
start_lbaReturns the first block address covered by md5
end_lbaReturns the first block address not covered by md5 any more
md5Returns 16 byte of MD5 checksum
flagBitfield for control purposes, unused yet, submit 0
Returns
1= md5 found 0= no md5 available (i.e. start_lba, end_lba, md5 are invalid) <0 indicates error
Since
0.6.22

Definition at line 832 of file image.c.

References Iso_Image::checksum_array, Iso_Image::checksum_end_lba, Iso_Image::checksum_idx_count, Iso_Image::checksum_start_lba, and ISO_SUCCESS.

Referenced by Xorriso_check_session_md5(), and Xorriso_image_has_md5().

◆ iso_image_get_sparc_core()

int iso_image_get_sparc_core ( IsoImage img,
IsoFile **  sparc_core,
int  flag 
)

Obtain the current setting of iso_image_set_sparc_core().

Parameters
imgThe image to be inquired.
sparc_coreWill return a pointer to the IsoFile (or NULL, which is not an error)
flagBitfield for control purposes, unused yet, submit 0
Returns
1 is success , <0 means error
Since
1.3.0

Definition at line 982 of file image.c.

References Iso_Image::sparc_core_node.

◆ iso_image_get_system_area()

int iso_image_get_system_area ( IsoImage img,
char  data[32768],
int *  options,
int  flag 
)

Obtain a copy of the eventually loaded first 32768 bytes of the imported session, the System Area. It will be written to the start of the next session unless it gets overwritten by iso_write_opts_set_system_area().

Parameters
imgThe image to be inquired.
dataA byte array of at least 32768 bytes to take the loaded bytes.
optionsThe option bits which will be applied if not overridden by iso_write_opts_set_system_area(). See there.
flagBitfield for control purposes, unused yet, submit 0
Returns
1 on success, 0 if no System Area was loaded, < 0 error.
Since
0.6.30

Definition at line 513 of file image.c.

References Iso_Image::system_area_data, and Iso_Image::system_area_options.

Referenced by Xorriso_set_system_area().

◆ iso_image_get_system_id()

const char* iso_image_get_system_id ( const IsoImage image)

Get the system id of a image. The returned string is owned by the image and must not be freed nor changed.

Since
0.6.2

Definition at line 398 of file image.c.

References Iso_Image::system_id.

Referenced by Xorriso_aquire_drive().

◆ iso_image_get_truncate_mode()

int iso_image_get_truncate_mode ( IsoImage img,
int *  mode,
int *  length 
)

Inquire the current setting of iso_image_set_truncate_mode().

Parameters
imgThe image which shall be inquired.
modeReturns the mode value.
lengthReturns the length value.
Returns
ISO_SUCCESS or <0 = error
Since
1.4.2

Definition at line 1112 of file image.c.

References ISO_SUCCESS, Iso_Image::truncate_length, and Iso_Image::truncate_mode.

Referenced by Xorriso_aquire_drive().

◆ iso_image_get_volset_id()

const char* iso_image_get_volset_id ( const IsoImage image)

Get the volset identifier. The returned string is owned by the image and must not be freed nor changed.

Since
0.6.2

Definition at line 345 of file image.c.

References Iso_Image::volset_id.

Referenced by Xorriso_aquire_drive().

◆ iso_image_get_volume_id()

const char* iso_image_get_volume_id ( const IsoImage image)

Get the volume identifier. The returned string is owned by the image and must not be freed nor changed.

Since
0.6.2

Definition at line 358 of file image.c.

References Iso_Image::volume_id.

Referenced by Xorriso_get_volid(), Xorriso_pvd_info(), Xorriso_scan_report_lines(), and Xorriso_set_volid().

◆ iso_image_give_up_mips_boot()

int iso_image_give_up_mips_boot ( IsoImage image,
int  flag 
)

Clear the list of MIPS Big Endian boot file paths.

Parameters
imageThe image to be manipulated.
flagBitfield for control purposes, unused yet, submit 0
Returns
1 is success , <0 means error
Since
0.6.38

Definition at line 886 of file image.c.

References ISO_SUCCESS, Iso_Image::mips_boot_file_paths, and Iso_Image::num_mips_boot_files.

Referenced by iso_image_unref(), and Xorriso_add_mips_boot_file().

◆ iso_image_hfsplus_bless()

int iso_image_hfsplus_bless ( IsoImage img,
enum IsoHfsplusBlessings  blessing,
IsoNode node,
int  flag 
)

Issue a blessing to a particular IsoNode. If the blessing is already issued to some file, then it gets revoked from that one.

Parameters
imgThe image to manipulate.
blessingThe kind of blessing to be issued.
nodeThe file that shall be blessed. It must actually be an IsoDir or IsoFile as is appropriate for the kind of blessing. (See above enum.) The node may not yet bear a blessing other than the desired one. If node is NULL, then the blessing will be revoked from any node which bears it.
flagBitfield for control purposes. bit0= Revoke blessing if node != NULL bears it. bit1= Revoke any blessing of the node, regardless of parameter blessing. If node is NULL, then revoke all blessings in the image.
Returns
1 means successful blessing or revokation of an existing blessing. 0 means the node already bears another blessing, or is of wrong type, or that the node was not blessed and revokation was desired. <0 is one of the listed error codes.
Since
1.2.4

Definition at line 907 of file image.c.

References Iso_Image::hfsplus_blessed, ISO_HFSPLUS_BLESS_INTEL_BOOTFILE, ISO_HFSPLUS_BLESS_MAX, iso_node_ref(), ISO_WRONG_ARG_VALUE, LIBISO_DIR, LIBISO_FILE, Iso_Node::type, and unset_blessing().

Referenced by Xorriso_hfsplus_bless().

◆ iso_image_hfsplus_get_blessed()

int iso_image_hfsplus_get_blessed ( IsoImage img,
IsoNode ***  blessed_nodes,
int *  bless_max,
int  flag 
)

Get the array of nodes which are currently blessed. Array indice correspond to enum IsoHfsplusBlessings. Array element value NULL means that no node bears that blessing.

Several usage restrictions apply. See parameter blessed_nodes.

Parameters
imgThe image to inquire.
blessed_nodesWill return a pointer to an internal node array of image. This pointer is valid only as long as image exists and only until iso_image_hfsplus_bless() gets used to manipulate the blessings. Do not free() this array. Do not alter the content of the array directly, but rather use iso_image_hfsplus_bless() and re-inquire by iso_image_hfsplus_get_blessed(). This call does not impose an extra reference on the nodes in the array. So do not iso_node_unref() them. Nodes listed here are not necessarily grafted into the tree of the IsoImage.
bless_maxWill return the number of elements in the array. It is unlikely but not outruled that it will be larger than ISO_HFSPLUS_BLESS_MAX in this libisofs.h file.
flagBitfield for control purposes. Submit 0.
Returns
1 means success, <0 means error
Since
1.2.4

Definition at line 960 of file image.c.

References Iso_Image::hfsplus_blessed, and ISO_HFSPLUS_BLESS_MAX.

Referenced by Xorriso_get_blessing(), and Xorriso_hfsplus_bless().

◆ iso_image_import()

int iso_image_import ( IsoImage image,
IsoDataSource src,
IsoReadOpts opts,
IsoReadImageFeatures **  features 
)

Import a previous session or image, for growing or modify.

Parameters
imageThe image context to which old image will be imported. Note that all files added to image, and image attributes, will be replaced with the contents of the old image. TODO #00025 support for merging old image files
srcData Source from which old image will be read. A extra reference is added, so you still need to iso_data_source_unref() yours.
optsOptions for image import. All needed data will be copied, so you can free the given struct once this function returns.
featuresIf not NULL, a new IsoReadImageFeatures will be allocated and filled with the features of the old image. It should be freed with iso_read_image_features_destroy() when no more needed. You can pass NULL if you're not interested on them.
Returns
1 on success, < 0 on error
Since
0.6.2

Definition at line 5770 of file fs_image.c.

References _ImageFsData::abstract_file_id, el_torito_boot_image::appended_idx, el_torito_boot_image::appended_start, _ImageFsData::application_id, Iso_Node::atime, _ImageFsData::auto_input_charset, _ImageFsData::biblio_file_id, iso_read_opts::block, _ImageFsData::boot_flags, el_torito_boot_image::bootable, _ImageFsData::bootblocks, Iso_Image::bootcat, el_torito_boot_catalog::bootimages, Iso_Image::builder, _ImageFsData::catblock, _ImageFsData::catcontent, _ImageFsData::catsize, Iso_Image::checksum_array, Iso_Image::checksum_end_lba, Iso_Image::checksum_idx_count, Iso_Image::checksum_start_lba, iso_filesystem::close, Iso_Image::collision_warnings, Iso_Boot::content, _ImageFsData::copyright_file_id, create_boot_img_filesrc(), _ImageFsData::creation_time, Iso_Node::ctime, iso_filesystem::data, _ImageFsData::data_preparer_id, _ImageFsData::effective_time, el_torito_boot_catalog_free(), _ImageFsData::eltorito, el_torito_boot_image::emul_hdd_size, _ImageFsData::evd_root_block, _ImageFsData::expiration_time, Iso_Image::fs, iso_filesystem::get_root, Iso_Node::gid, Iso_Image::id, el_torito_boot_image::id_string, _ImageFsData::id_strings, el_torito_boot_image::image, image_builder_create_node(), img_make_inos(), Iso_Image::import_src, _ImageFsData::inode_counter, Iso_Image::inode_counter, _ImageFsData::input_charset, _ImageFsData::iso1999, iso_aa_lookup_attr(), iso_add_dir_src_rec(), iso_analyze_system_area(), iso_data_source_ref(), ISO_EL_TORITO_HIDDEN, ISO_ELTO_EFI_HIDDEN, iso_error_to_msg(), iso_file_source_get_aa_string(), iso_file_source_lstat(), iso_file_source_unref(), iso_filesystem_unref(), ISO_GENERAL_NOTE, iso_image_builder_new(), iso_image_eval_boot_info_table(), iso_image_filesystem_new(), iso_image_set_abstract_file_id(), iso_image_set_application_id(), iso_image_set_biblio_file_id(), iso_image_set_copyright_file_id(), iso_image_set_data_preparer_id(), iso_image_set_publisher_id(), iso_image_set_pvd_times(), iso_image_set_system_id(), iso_image_set_volset_id(), iso_image_set_volume_id(), iso_impsysa_hdd_emul_size(), ISO_MD5_AREA_CORRUPTED, iso_md5_compute(), iso_md5_end(), iso_md5_start(), iso_msg_submit(), ISO_NO_ROOT_DIR, iso_node_builder_unref(), iso_node_new_root(), iso_node_set_ino(), iso_node_unref(), ISO_NULL_POINTER, ISO_OUT_OF_MEM, _ImageFsData::iso_root_block, iso_root_get_isofsca(), iso_root_get_isofsnt(), ISO_SUCCESS, ISO_SYSAREA_PROBLEMS, ISO_TRUNCATE_ISOFSNT, issue_collision_warning_summary(), issue_ucs2_warning_summary(), _ImageFsData::joliet, _ImageFsData::joliet_ucs2_failures, iso_read_opts::keep_import_src, Iso_Boot::lba, LIBISO_BOOT, Libisofs_max_boot_imageS, el_torito_boot_image::load_seg, _ImageFsData::load_segs, el_torito_boot_image::load_size, _ImageFsData::load_sizes, iso_read_opts::load_system_area, iso_read_opts::make_new_ino, _ImageFsData::make_new_ino, _ImageFsData::md5_load, _ImageFsData::media_types, Iso_Node::mode, _ImageFsData::modification_time, Iso_Node::mtime, _ImageFsData::nblocks, el_torito_boot_catalog::node, Iso_Dir::node, el_torito_boot_catalog::num_bootimages, _ImageFsData::num_bootimgs, el_torito_boot_image::partition_type, _ImageFsData::partition_types, el_torito_boot_image::platform_id, _ImageFsData::platform_ids, _ImageFsData::publisher_id, _ImageFsData::pvd_root_block, _ImageFsData::px_ino_status, iso_data_source::read_block, Iso_Node::refcount, Iso_Image::root, _ImageFsData::rr, RR_EXT_NO, _ImageFsData::rr_version, el_torito_boot_image::selection_crit, _ImageFsData::selection_crits, Iso_Boot::size, src_aa_to_node(), _ImageFsData::svd_root_block, Iso_Image::system_area_data, Iso_Image::system_area_options, _ImageFsData::system_id, iso_read_opts::truncate_length, _ImageFsData::truncate_length, Iso_Image::truncate_length, iso_read_opts::truncate_mode, _ImageFsData::truncate_mode, Iso_Image::truncate_mode, el_torito_boot_image::type, Iso_Node::type, Iso_Node::uid, _ImageFsData::volset_id, and _ImageFsData::volume_id.

Referenced by isoburn_read_image().

◆ iso_image_new()

int iso_image_new ( const char *  name,
IsoImage **  image 
)

Create a new image, empty.

The image will be owned by you and should be unref() when no more needed.

Parameters
nameName of the image. This will be used as volset_id and volume_id.
imageLocation where the image pointer will be stored.
Returns
1 success, < 0 error
Since
0.6.2

Create a new image, empty.

The image will be owned by you and should be unref() when no more needed.

Parameters
nameName of the image. This will be used as volset_id and volume_id.
imageLocation where the image pointer will be stored.
Returns
1 success, < 0 error

Definition at line 131 of file image.c.

References Iso_Image::alpha_boot_image, Iso_Image::application_use, Iso_Image::blind_on_local_get_attrs, Iso_Image::builder, Iso_Image::builder_ignore_acl, Iso_Image::builder_ignore_ea, Iso_Image::checksum_array, Iso_Image::checksum_end_lba, Iso_Image::checksum_idx_count, Iso_Image::checksum_start_lba, Iso_Image::collision_warnings, Iso_Image::fs, Iso_Image::generator_is_running, Iso_Image::hfsplus_blessed, Iso_Image::hppa_bootloader, Iso_Image::hppa_cmdline, Iso_Image::hppa_kernel_32, Iso_Image::hppa_kernel_64, Iso_Image::hppa_ramdisk, Iso_Image::id, Iso_Image::import_src, Iso_Image::imported_sa_info, Iso_Image::inode_counter, iso_filesystem_unref(), ISO_HFSPLUS_BLESS_MAX, iso_local_filesystem_new(), iso_message_id, iso_node_basic_builder_new(), iso_node_builder_unref(), iso_node_new_root(), ISO_NULL_POINTER, ISO_OUT_OF_MEM, ISO_SUCCESS, LIBISOFS_NODE_NAME_MAX, Iso_Image::mips_boot_file_paths, Iso_Image::num_mips_boot_files, Iso_Image::refcount, Iso_Image::root, Iso_Image::sparc_core_node, Iso_Image::system_area_data, Iso_Image::system_area_options, Iso_Image::truncate_buffer, Iso_Image::truncate_length, Iso_Image::truncate_mode, Iso_Image::used_inodes, Iso_Image::used_inodes_start, Iso_Image::volset_id, and Iso_Image::volume_id.

Referenced by isoburn_new(), and isoburn_read_image().

◆ iso_image_path_to_node()

int iso_image_path_to_node ( IsoImage image,
const char *  path,
IsoNode **  node 
)

Locate a node by its absolute path in the image. The IsoImage context defines a maximum permissible name length and a mode how to react on oversized names. See iso_image_set_truncate_mode().

Parameters
imageThe image to which the node belongs.
pathFile path beginning at the root directory of image. If truncation mode is set to 1, oversized path components will be truncated before lookup.
nodeLocation for a pointer to the node, it will be filled with NULL if the given path does not exists on image. The node will be owned by the image and shouldn't be unref(). Just call iso_node_ref() to get your own reference to the node. Note that you can pass NULL is the only thing you want to do is check if a node with such path really exists.
Returns
1 node found 0 no truncation was needed, path not found in image 2 truncation happened, truncated path component not found in parent dir < 0 error, see iso_dir_get_node().
Since
1.4.2

Definition at line 1242 of file tree.c.

References iso_tree_path_to_node_flag().

Referenced by Xorriso_node_from_path().

◆ iso_image_ref()

void iso_image_ref ( IsoImage image)

Increments the reference counting of the given image.

Since
0.6.2

Increments the reference counting of the given image.

Definition at line 215 of file image.c.

References Iso_Image::refcount.

Referenced by ecma119_image_new(), isoburn_get_attached_image(), isoburn_read_image(), and Xorriso_aquire_drive().

◆ iso_image_remove_boot_image()

void iso_image_remove_boot_image ( IsoImage image)

Removes all El-Torito boot images from the ISO image.

The IsoBoot node that acts as placeholder for the catalog is also removed for the image tree, if there. If the image is not bootable (don't have el-torito boot image) this function just returns.

Since
0.6.2

Removes the El-Torito bootable image.

The IsoBoot node that acts as placeholder for the catalog is also removed for the image tree, if there. If the image is not bootable (don't have el-torito boot image) this function just returns.

Definition at line 766 of file eltorito.c.

References Iso_Image::bootcat, el_torito_boot_catalog_free(), iso_node_get_parent(), iso_node_take(), iso_node_unref(), and el_torito_boot_catalog::node.

Referenced by Xorriso_attach_boot_image(), and Xorriso_write_session().

◆ iso_image_report_el_torito()

int iso_image_report_el_torito ( IsoImage image,
char ***  reply,
int *  line_count,
int  flag 
)

Obtain an array of texts describing the detected properties of the eventually loaded El Torito boot information. The array will be NULL if no El Torito info was loaded. Else it will consist of lines as described in ISO_ELTORITO_REPORT_DOC above.

The lines have the same length restrictions and whitespace rules as the ones returned by iso_image_report_system_area().

Parameters
imageThe image to be inquired.
replyWill return an array of pointers to the result text lines or NULL. Dispose a non-NULL reply by a call to iso_image_report_el_torito() with flag bit15, when no longer needed. Be prepared for a long text with up to ISO_MAX_SYSAREA_LINE_LENGTH characters per line.
line_countWill return the number of valid pointers in reply.
flagBitfield for control purposes bit0= do not report system area but rather reply a copy of above text line array ISO_ELTORITO_REPORT_DOC. With this bit it is permissible to submit image as NULL. bit15= dispose result from previous call.
Returns
1 on success, 0 if no El Torito information was loaded, < 0 error.
Since
1.3.8

Definition at line 5763 of file fs_image.c.

References iso_image_report_boot_eqp().

Referenced by Xorriso_list_boot_images(), and Xorriso_report_system_area().

◆ iso_image_report_system_area()

int iso_image_report_system_area ( IsoImage image,
char ***  reply,
int *  line_count,
int  flag 
)

Obtain an array of texts describing the detected properties of the eventually loaded System Area. The array will be NULL if no System Area was loaded. It will be non-NULL with zero line count if the System Area was loaded and contains only 0-bytes. Else it will consist of lines as described in ISO_SYSAREA_REPORT_DOC above.

File paths and other long texts are reported as "(too long to show here)" if their length plus preceding text plus trailing 0-byte exceeds the line length limit of ISO_MAX_SYSAREA_LINE_LENGTH bytes. Texts which may contain whitespace or unprintable characters will start at fixed positions and extend to the end of the line. Note that newline characters may well appearing in the middle of a "line".

Parameters
imageThe image to be inquired.
replyWill return an array of pointers to the result text lines or NULL. Dispose a non-NULL reply by a call to iso_image_report_system_area() with flag bit15, when no longer needed. Be prepared for a long text with up to ISO_MAX_SYSAREA_LINE_LENGTH characters per line.
line_countWill return the number of valid pointers in reply.
flagBitfield for control purposes bit0= do not report system area but rather reply a copy of above text line arrays ISO_SYSAREA_REPORT_DOC*. With this bit it is permissible to submit image as NULL. bit15= dispose result from previous call.
Returns
1 on success, 0 if no System Area was loaded, < 0 error.
Since
1.3.8

Definition at line 5615 of file fs_image.c.

References iso_image_report_boot_eqp(), and iso_impsysa_result::line_count.

Referenced by Xorriso_list_boot_images(), Xorriso_report_system_area(), and Xorriso_show_boot_info().

◆ iso_image_set_abstract_file_id()

void iso_image_set_abstract_file_id ( IsoImage image,
const char *  abstract_file_id 
)

Fill abstract information for the image. Usually this refers to a file on disc. Up to 37 characters.

Since
0.6.2

Definition at line 432 of file image.c.

References Iso_Image::abstract_file_id.

Referenced by iso_image_import(), and Xorriso_write_session().

◆ iso_image_set_alpha_boot()

int iso_image_set_alpha_boot ( IsoImage img,
char *  boot_loader_path,
int  flag 
)

Submit the path of the DEC Alpha Secondary Bootstrap Loader file. The path must lead to an already existing data file in the ISO image which stays with this path until image production. This setting has an effect only if system area type is set to 6 with iso_write_opts_set_system_area().

Parameters
imgThe image to be manipulated.
boot_loader_pathAbsolute path of a data file in the ISO image. Submit NULL to free this image property.
flagBitfield for control purposes. Unused yet. Submit 0.
Returns
1 is success , <0 means error
Since
1.4.0

Definition at line 1079 of file image.c.

References Iso_Image::alpha_boot_image, hppa_palo_set_path(), and ISO_SUCCESS.

Referenced by Xorriso_set_alpha_boot().

◆ iso_image_set_app_use()

void iso_image_set_app_use ( IsoImage image,
const char *  app_use_data,
int  count 
)

Fill Application Use field of the Primary Volume Descriptor. ECMA-119 8.4.32 Application Use (BP 884 to 1395) "This field shall be reserved for application use. Its content is not specified by this Standard."

Parameters
imageThe image to manipulate.
app_use_dataUp to 512 bytes of data.
countThe number of bytes in app_use_data. If the number is smaller than 512, then the remaining bytes will be set to 0.
Since
1.3.2

Definition at line 495 of file image.c.

References Iso_Image::application_use.

Referenced by Xorriso_write_application_use().

◆ iso_image_set_application_id()

void iso_image_set_application_id ( IsoImage image,
const char *  application_id 
)

Fill in the application id for a image. Up to 128 chars.

Since
0.6.2

Definition at line 405 of file image.c.

References Iso_Image::application_id.

Referenced by iso_image_import(), and Xorriso_write_session().

◆ iso_image_set_biblio_file_id()

void iso_image_set_biblio_file_id ( IsoImage image,
const char *  biblio_file_id 
)

Fill biblio information for the image. Usually this refers to a file on disc. Up to 37 characters.

Since
0.6.2

Definition at line 446 of file image.c.

References Iso_Image::biblio_file_id.

Referenced by iso_image_import(), and Xorriso_write_session().

◆ iso_image_set_boot_catalog_hidden()

int iso_image_set_boot_catalog_hidden ( IsoImage image,
int  hide_attrs 
)

Hides the boot catalog file from directory trees.

For the meaning of hiding files see iso_node_set_hidden().

Parameters
imageThe image to manipulate.
hide_attrsOr-combination of values from enum IsoHideNodeFlag to set the trees in which the record.
Returns
0= no boot catalog attached , 1= ok , <0 = error
Since
0.6.34

Definition at line 822 of file eltorito.c.

References Iso_Image::bootcat, iso_node_set_hidden(), and el_torito_boot_catalog::node.

Referenced by Xorriso_write_session().

◆ iso_image_set_boot_catalog_weight()

int iso_image_set_boot_catalog_weight ( IsoImage image,
int  sort_weight 
)

Sets the sort weight of the boot catalog that is attached to an IsoImage.

For the meaning of sort weights see iso_node_set_sort_weight(). That function cannot be applied to the emerging boot catalog because it is not represented by an IsoFile.

Parameters
imageThe image to manipulate.
sort_weightThe larger this value, the lower will be the block address of the boot catalog record.
Returns
0= no boot catalog attached , 1= ok , <0 = error
Since
0.6.32

Definition at line 813 of file eltorito.c.

References Iso_Image::bootcat, and el_torito_boot_catalog::sort_weight.

Referenced by Xorriso_attach_boot_image(), and Xorriso_write_session().

◆ iso_image_set_boot_image()

int iso_image_set_boot_image ( IsoImage image,
const char *  image_path,
enum eltorito_boot_media_type  type,
const char *  catalog_path,
ElToritoBootImage **  boot 
)

Create a new set of El-Torito bootable images by adding a boot catalog and the default boot image. Further boot images may then be added by iso_image_add_boot_image().

Parameters
imageThe image to make bootable. If it was already bootable this function returns an error and the image remains unmodified.
image_pathThe absolute path of a IsoFile to be used as default boot image or –interval:appended_partition_$number[start$start_size_$size]:... if type is ELTORITO_NO_EMUL. $number gives the partition number. If start$start_size_$size is present, then it overrides the 2 KiB start block of the partition and the partition size counted in blocks of 512 bytes.
typeThe boot media type. This can be one of 3 types:
  • ELTORITO_FLOPPY_EMUL. Floppy emulation: Boot image file must be exactly 1200 KiB, 1440 KiB or 2880 KiB.
  • ELTORITO_HARD_DISC_EMUL. Hard disc emulation: The image must begin with a master boot record with a single image.
  • ELTORITO_NO_EMUL. No emulation. You should specify load segment and load size of image.
catalog_pathThe absolute path in the image tree where the catalog will be stored. The directory component of this path must be a directory existent on the image tree, and the filename component must be unique among all children of that directory on image. Otherwise a correspodent error code will be returned. This function will add an IsoBoot node that acts as a placeholder for the real catalog, that will be generated at image creation time.
bootLocation where a pointer to the added boot image will be stored. That object is owned by the IsoImage and must not be freed by the user, nor dereferenced once the last reference to the IsoImage was disposed via iso_image_unref(). A NULL value is allowed if you don't need a reference to the boot image.
Returns
1 on success, < 0 on error
Since
0.6.2

Definition at line 540 of file eltorito.c.

References Iso_Image::bootcat, el_torito_boot_catalog::bootimages, create_image(), Iso_File::explicit_weight, Iso_File::from_old_session, Iso_Image::id, el_torito_boot_image::image, ISO_IMAGE_ALREADY_BOOTABLE, iso_msg_submit(), ISO_NODE_DOESNT_EXIST, iso_node_ref(), iso_node_take(), iso_node_unref(), ISO_NULL_POINTER, ISO_OUT_OF_MEM, ISO_SUCCESS, iso_tree_add_boot_node(), iso_tree_path_to_node(), ISO_WRONG_ARG_VALUE, LIBISO_DIR, Libisofs_max_boot_imageS, el_torito_boot_catalog::node, el_torito_boot_catalog::num_bootimages, Iso_Image::root, el_torito_boot_catalog::sort_weight, Iso_File::sort_weight, and Iso_Node::type.

Referenced by Xorriso_attach_boot_image().

◆ iso_image_set_copyright_file_id()

void iso_image_set_copyright_file_id ( IsoImage image,
const char *  copyright_file_id 
)

Fill copyright information for the image. Usually this refers to a file on disc. Up to 37 characters.

Since
0.6.2

Definition at line 418 of file image.c.

References Iso_Image::copyright_file_id.

Referenced by iso_image_import(), and Xorriso_write_session().

◆ iso_image_set_data_preparer_id()

void iso_image_set_data_preparer_id ( IsoImage image,
const char *  data_preparer_id 
)

Fill in the data preparer for a image.

Since
0.6.2

Definition at line 378 of file image.c.

References Iso_Image::data_preparer_id.

Referenced by iso_image_import(), and Xorriso_write_session().

◆ iso_image_set_hppa_palo()

int iso_image_set_hppa_palo ( IsoImage img,
char *  cmdline,
char *  bootloader,
char *  kernel_32,
char *  kernel_64,
char *  ramdisk,
int  flag 
)

Define a command line and submit the paths of four mandatory files for production of a HP-PA PALO boot sector for PA-RISC machines. The paths must lead to already existing data files in the ISO image which stay with these paths until image production.

Parameters
imgThe image to be manipulated.
cmdlineUp to 127 characters of command line.
bootloaderAbsolute path of a data file in the ISO image.
kernel_32Absolute path of a data file in the ISO image which serves as 32 bit kernel.
kernel_64Absolute path of a data file in the ISO image which serves as 64 bit kernel.
ramdiskAbsolute path of a data file in the ISO image.
flagBitfield for control purposes bit0= Let NULL parameters free the corresponding image properties. Else only the non-NULL parameters of this call have an effect
Returns
1 is success , <0 means error
Since
1.3.8

Definition at line 1035 of file image.c.

References Iso_Image::hppa_bootloader, Iso_Image::hppa_cmdline, Iso_Image::hppa_kernel_32, Iso_Image::hppa_kernel_64, hppa_palo_set_path(), Iso_Image::hppa_ramdisk, iso_clone_mgtd_mem(), ISO_OUT_OF_MEM, and ISO_SUCCESS.

Referenced by iso_image_unref(), and Xorriso_set_hppa_boot_parm().

◆ iso_image_set_ignore_aclea()

void iso_image_set_ignore_aclea ( IsoImage image,
int  what 
)

Control whether ACL and xattr will be imported from external filesystems (typically the local POSIX filesystem) when new nodes get inserted. If enabled by iso_write_opts_set_aaip() they will later be written into the image as AAIP extension fields.

A change of this setting does neither affect existing IsoNode objects nor the way how ACL and xattr are handled when loading an ISO image. The latter is controlled by iso_read_opts_set_no_aaip().

Parameters
imageThe image of which the behavior is to be controlled
whatA bit field which sets the behavior: bit0= ignore ACLs if the external file object bears some bit1= ignore xattr if the external file object bears some bit3= if not bit1: import all xattr namespaces, not only "user."
Since
1.5.0 all other bits are reserved
0.6.14

Definition at line 610 of file image.c.

References Iso_Image::builder_ignore_acl, Iso_Image::builder_ignore_ea, and Iso_Image::builder_take_all_ea.

Referenced by isoburn_read_image(), isoburn_welcome_media(), and Xorriso_set_ignore_aclea().

◆ iso_image_set_node_name()

int iso_image_set_node_name ( IsoImage image,
IsoNode node,
const char *  name,
int  flag 
)

Set the name of a node. Note that if the node is already added to a dir this can fail if dir already contains a node with the new name. The IsoImage context defines a maximum permissible name length and a mode how to react on oversized names. See iso_image_set_truncate_mode().

Parameters
imageThe image object to which the node belongs or shall belong in future.
nodeThe node of which you want to change the name. One cannot change the name of the root directory.
nameThe new name for the node. It may not be empty. If it is oversized then it will be handled according to iso_image_set_truncate_mode().
flagbit0= issue warning in case of truncation
Returns
1 on success, < 0 on error
Since
1.4.2

Definition at line 401 of file node.c.

References iso_node_set_name_trunc(), ISO_RR_NAME_TOO_LONG, Iso_Image::truncate_length, and Iso_Image::truncate_mode.

Referenced by Xorriso_graft_in(), Xorriso_rename(), Xorriso_rename_suffix(), Xorriso_set_filter(), and Xorriso_truncate_uniquely().

◆ iso_image_set_publisher_id()

void iso_image_set_publisher_id ( IsoImage image,
const char *  publisher_id 
)

Fill in the publisher for a image.

Since
0.6.2

Definition at line 365 of file image.c.

References Iso_Image::publisher_id.

Referenced by iso_image_import(), and Xorriso_write_session().

◆ iso_image_set_sparc_core()

int iso_image_set_sparc_core ( IsoImage img,
IsoFile sparc_core,
int  flag 
)

Designate a data file in the ISO image of which the position and size shall be written after the SUN Disk Label. The position is written as 64-bit big-endian number to byte position 0x228. The size is written as 32-bit big-endian to 0x230. This setting has an effect only if system area type is set to 3 with iso_write_opts_set_system_area().

Parameters
imgThe image to be manipulated.
sparc_coreThe IsoFile which shall be mentioned after the SUN Disk label. NULL is a permissible value. It disables this feature.
flagBitfield for control purposes, unused yet, submit 0
Returns
1 is success , <0 means error
Since
1.3.0

Definition at line 970 of file image.c.

References iso_node_ref(), iso_node_unref(), and Iso_Image::sparc_core_node.

Referenced by Xorriso_set_system_area().

◆ iso_image_set_system_id()

void iso_image_set_system_id ( IsoImage image,
const char *  system_id 
)

Fill in the system id for a image. Up to 32 characters.

Since
0.6.2

Definition at line 392 of file image.c.

References Iso_Image::system_id.

Referenced by iso_image_import(), and Xorriso_write_session().

◆ iso_image_set_truncate_mode()

int iso_image_set_truncate_mode ( IsoImage img,
int  mode,
int  length 
)

Set the name truncation mode and the maximum name length for nodes from image importing, creation of new IsoNode objects, and name changing image manipulations.

Truncated names are supposed to be nearly unique because they end by the MD5 of the first 4095 characters of the untruncated name. One should treat them as if they were the untruncated original names.

For proper processing of truncated names it is necessary to use iso_image_set_node_name() instead of iso_node_set_name() iso_image_add_new_dir() iso_tree_add_new_dir() iso_image_add_new_file() iso_tree_add_new_file() iso_image_add_new_special() iso_tree_add_new_special() iso_image_add_new_symlink() iso_tree_add_new_symlink() iso_image_tree_clone() iso_tree_clone() iso_image_dir_get_node() iso_dir_get_node() iso_image_path_to_node() iso_tree_path_to_node()

Beware of ambiguities if both, the full name and the truncated name, exist in the same directory. Best is to only set truncation parameters once with an ISO filesystem and to never change them later.

If writing of AAIP is enabled, then the mode and length are recorded in xattr "isofs.nt" of the root node. If reading of AAIP is enabled and "isofs.nt" is found, then it gets into effect if both, the truncate mode value from "isofs.nt" and the current truncate mode of the IsoImage are 1, and the length is between 64 and 255.

Parameters
imgThe image which shall be manipulated.
mode0= Do not truncate but throw error ISO_RR_NAME_TOO_LONG if a file name is longer than parameter length. 1= Truncate to length and overwrite the last 33 bytes of that length by a colon ':' and the hex representation of the MD5 of the first 4095 bytes of the whole oversized name. Potential incomplete UTF-8 characters will get their leading bytes replaced by '_'. Mode 1 is the default.
lengthMaximum byte count of a file name. Permissible values are 64 to 255. Default is 255.
Returns
ISO_SUCCESS or ISO_WRONG_ARG_VALUE
Since
1.4.2

Definition at line 1100 of file image.c.

References ISO_SUCCESS, ISO_WRONG_ARG_VALUE, LIBISOFS_NODE_NAME_MAX, Iso_Image::truncate_length, and Iso_Image::truncate_mode.

Referenced by isoburn_read_image(), Xorriso_aquire_drive(), and Xorriso_set_file_name_limit().

◆ iso_image_set_volset_id()

void iso_image_set_volset_id ( IsoImage image,
const char *  volset_id 
)

Fill in the volset identifier for a image.

Since
0.6.2

Definition at line 339 of file image.c.

References Iso_Image::volset_id.

Referenced by iso_image_import(), and Xorriso_write_session().

◆ iso_image_set_volume_id()

void iso_image_set_volume_id ( IsoImage image,
const char *  volume_id 
)

Fill in the volume identifier for a image.

Since
0.6.2

Definition at line 352 of file image.c.

References Iso_Image::volume_id.

Referenced by iso_image_import(), and Xorriso_set_volid().

◆ iso_image_tree_clone()

int iso_image_tree_clone ( IsoImage image,
IsoNode node,
IsoDir new_parent,
char *  new_name,
IsoNode **  new_node,
int  flag 
)

Create a copy of the given node under a different path. If the node is actually a directory then clone its whole subtree. This call may fail because an IsoFile is encountered which gets fed by an IsoStream which cannot be cloned. See also IsoStream_Iface method clone_stream(). Surely clonable node types are: IsoDir, IsoSymlink, IsoSpecial, IsoFile from a loaded ISO image, IsoFile referring to local filesystem files, IsoFile created by iso_tree_add_new_file from a stream created by iso_memory_stream_new(), IsoFile created by iso_tree_add_new_cut_out_node() Silently ignored are nodes of type IsoBoot. An IsoFile node with IsoStream filters can be cloned if all those filters are clonable and the node would be clonable without filter. Clonable IsoStream filters are created by: iso_file_add_zisofs_filter() iso_file_add_gzip_filter() iso_file_add_external_filter() An IsoNode with extended information as of iso_node_add_xinfo() can only be cloned if each of the iso_node_xinfo_func instances is associated to a clone function. See iso_node_xinfo_make_clonable(). All internally used classes of extended information are clonable.

The IsoImage context defines a maximum permissible name length and a mode how to react on oversized names. See iso_image_set_truncate_mode().

Parameters
imageThe image object to which the node belongs.
nodeThe node to be cloned.
new_parentThe existing directory node where to insert the cloned node.
new_nameThe name for the cloned node. It must not yet exist in new_parent, unless it is a directory and node is a directory and flag bit0 is set.
new_nodeWill return a pointer (without reference) to the newly created clone.
flagBitfield for control purposes. Submit any undefined bits as 0. bit0= Merge directories rather than returning ISO_NODE_NAME_NOT_UNIQUE. This will not allow to overwrite any existing node. Attributes of existing directories will not be overwritten. bit1= issue warning in case of new_name truncation
Returns
<0 means error, 1 = new node created, 2 = if flag bit0 is set: new_node is a directory which already existed.
Since
1.4.2

Definition at line 1563 of file tree.c.

References iso_tree_clone_trunc(), Iso_Image::truncate_length, and Iso_Image::truncate_mode.

Referenced by Xorriso_clone_tree(), and Xorriso_clone_under().

◆ iso_image_unref()

void iso_image_unref ( IsoImage image)

Decrements the reference counting of the given image. If it reaches 0, the image is free, together with its tree nodes (whether their refcount reach 0 too, of course).

Since
0.6.2

Decrements the reference counting of the given image. If it reaches 0, the image is free, together with its tree nodes (whether their refcount reach 0 too, of course).

Definition at line 225 of file image.c.

References Iso_Image::abstract_file_id, Iso_Image::alpha_boot_image, Iso_Image::application_id, Iso_Image::biblio_file_id, Iso_Image::bootcat, Iso_Image::builder, Iso_Image::copyright_file_id, Iso_Image::creation_time, Iso_Image::data_preparer_id, Iso_Image::effective_time, el_torito_boot_catalog_free(), Iso_Image::excludes, Iso_Image::expiration_time, Iso_Image::fs, Iso_Image::hfsplus_blessed, Iso_Image::import_src, Iso_Image::imported_sa_info, iso_data_source_unref(), iso_filesystem_unref(), ISO_HFSPLUS_BLESS_MAX, iso_image_free_checksums(), iso_image_give_up_mips_boot(), iso_image_set_hppa_palo(), iso_imported_sa_unref(), iso_node_builder_unref(), iso_node_unref(), Iso_Image::modification_time, Iso_Image::nexcludes, Iso_Image::publisher_id, Iso_Image::refcount, Iso_Image::root, Iso_Image::sparc_core_node, Iso_Image::system_area_data, Iso_Image::system_id, Iso_Image::used_inodes, Iso_Image::user_data, Iso_Image::user_data_free, Iso_Image::volset_id, and Iso_Image::volume_id.

Referenced by ecma119_image_free(), isoburn_attach_image(), isoburn_destroy(), isoburn_read_image(), Xorriso_aquire_drive(), Xorriso_attach_boot_image(), Xorriso_boot_image_status(), Xorriso_create_empty_iso(), Xorriso_detach_libraries(), Xorriso_give_up_drive(), Xorriso_pacifier_loop(), Xorriso_record_boot_info(), Xorriso_set_system_area_path(), Xorriso_show_boot_info(), and Xorriso_write_session().

◆ iso_image_update_sizes()

int iso_image_update_sizes ( IsoImage image)

Update the sizes of all files added to image.

This may be called just before iso_image_create_burn_source() to force libisofs to check the file sizes again (they're already checked when added to IsoImage). It is useful if you have changed some files after adding then to the image.

Returns
1 on success, < 0 on error
Since
0.6.8

Definition at line 600 of file image.c.

References dir_update_size(), ISO_NULL_POINTER, and Iso_Image::root.

Referenced by Xorriso_write_session().

◆ iso_image_was_blind_attrs()

int iso_image_was_blind_attrs ( IsoImage image,
int  flag 
)

Inquire whether some local filesystem xattr namespace could not be explored during node building.This may happen due to lack of administrator privileges e.g. on FreeBSD namespace "system". It may well be that the processed local files have no attributes which would require special privileges. But already their existence was neither denied nor confirmed.

Parameters
imageThe image to inquire.
flagBitfield for control purposes: bit0 = reset internal value to 0
Returns
1 = Exploration was prevented 0 = No such prevention occurred
Since
1.5.0

Definition at line 1143 of file image.c.

References Iso_Image::blind_on_local_get_attrs, and ISO_NULL_POINTER.

Referenced by Xorriso_write_session().

◆ iso_image_zisofs_discard_bpt()

int iso_image_zisofs_discard_bpt ( IsoImage image,
int  flag 
)

Discard all buffered zisofs compression block pointers of streams in the given image, which are zisofs compression streams and not currently opened.

Parameters
imageThe image to be manipulated.
flagBitfield for control purposes, unused yet, submit 0
Returns
ISO_SUCCESS on success, <0 on error
Since
1.5.4

Definition at line 1199 of file image.c.

References iso_dir_zisofs_discard_bpt(), ISO_NULL_POINTER, ISO_SUCCESS, and Iso_Image::root.

Referenced by Xorriso_set_filter().

◆ iso_init()

int iso_init ( )

Initialize libisofs. Before any usage of the library you must either call this function or iso_init_with_flag(). Only exception from this rule: iso_lib_version(), iso_lib_is_compatible().

Returns
1 on success, < 0 on error
Since
0.6.2

Definition at line 227 of file messages.c.

References iso_init_with_flag().

Referenced by isoburn_initialize().

◆ iso_init_with_flag()

int iso_init_with_flag ( int  flag)

Initialize libisofs. Before any usage of the library you must either call this function or iso_init() which is equivalent to iso_init_with_flag(0). Only exception from this rule: iso_lib_version(), iso_lib_is_compatible().

Parameters
flagBitfield for control purposes bit0= do not set up locale by LC_* environment variables
Returns
1 on success, < 0 on error
Since
0.6.18

Definition at line 153 of file messages.c.

References aaip_xinfo_cloner(), aaip_xinfo_func(), checksum_cx_xinfo_cloner(), checksum_cx_xinfo_func(), checksum_md5_xinfo_cloner(), checksum_md5_xinfo_func(), ISO_FATAL_ERROR, iso_hfsplus_xinfo_cloner(), iso_hfsplus_xinfo_func(), iso_init_locale(), iso_node_xinfo_make_clonable(), iso_px_ino_xinfo_cloner(), iso_px_ino_xinfo_func(), libiso_msgr, libiso_msgs_new(), libiso_msgs_set_severities(), LIBISO_MSGS_SEV_FATAL, LIBISO_MSGS_SEV_NEVER, libjte__is_compatible(), LIBJTE_VERSION_MAJOR, LIBJTE_VERSION_MICRO, LIBJTE_VERSION_MINOR, zisofs_zf_xinfo_cloner(), and zisofs_zf_xinfo_func().

Referenced by iso_init().

◆ iso_interval_reader_destroy()

int iso_interval_reader_destroy ( struct iso_interval_reader **  ivr,
int  flag 
)

Dispose an interval reader object.

Parameters
ivrThe reader object to be disposed. *ivr will be set to NULL.
flagUnused yet. Submit 0.
Returns
ISO_SUCCESS or error (which is < 0)
Since
1.4.0

Definition at line 1738 of file ecma119.c.

References iso_data_source::close, iso_interval_reader::fd, iso_interval_reader::image, Iso_Image::import_src, ISO_SUCCESS, LIBISO_FREE_MEM, iso_interval_reader::path, iso_interval_reader::src_is_open, and iso_interval_reader::zeroizers.

Referenced by compute_partition_size(), iso_interval_reader_new(), iso_interval_reader_start_size(), iso_write_partition_file(), Xorriso_set_system_area(), and Xorriso_set_system_area_path().

◆ iso_interval_reader_new()

int iso_interval_reader_new ( IsoImage img,
char *  path,
struct iso_interval_reader **  ivr,
off_t *  byte_count,
int  flag 
)

Create an interval reader object.

Parameters
imgThe IsoImage object which can provide the "imported_iso" data source.
pathThe interval reader description string. See above.
ivrReturns in case of success a pointer to the created object. Dispose it by iso_interval_reader_destroy() when no longer needed.
byte_countReturns in case of success the number of bytes in the interval.
flagbit0= tolerate (src == NULL) with "imported_iso". (Will immediately cause eof of interval input.)
Returns
ISO_SUCCESS or error (which is < 0)
Since
1.4.0

Definition at line 1760 of file ecma119.c.

References iso_interval_reader::apm_block_size, iso_interval_reader::end_byte, iso_interval_reader::eof, iso_interval_reader::fd, iso_interval_reader::flags, iso_interval_reader::image, Iso_Image::import_src, iso_interval_reader::initialized, iso_interval_reader::is_block_aligned, ISO_BAD_PARTITION_FILE, iso_interval_reader_destroy(), iso_ivr_parse(), iso_msg_submit(), ISO_NO_KEPT_DATA_SRC, ISO_SUCCESS, LIBISO_ALLOC_MEM, iso_interval_reader::num_zeroizers, iso_interval_reader::path, iso_interval_reader::pending_read_bytes, iso_interval_reader::pending_read_pt, iso_interval_reader::read_count, iso_interval_reader::source_pt, iso_interval_reader::src_is_open, iso_interval_reader::start_byte, and iso_interval_reader::zeroizers.

Referenced by compute_partition_size(), iso_interval_reader_start_size(), iso_write_partition_file(), Xorriso_set_system_area(), and Xorriso_set_system_area_path().

◆ iso_interval_reader_read()

int iso_interval_reader_read ( struct iso_interval_reader ivr,
uint8_t *  buf,
int *  buf_fill,
int  flag 
)

Read the next block of 2048 bytes from an interval reader object. If end-of-input happens, the interval will get filled up with 0 bytes.

Parameters
ivrThe object to read from.
bufPointer to memory for filling in at least 2048 bytes.
buf_fillWill in case of success return the number of valid bytes. If this is smaller than 2048, then end-of-interval has occurred.
flagUnused yet. Submit 0.
Returns
ISO_SUCCESS if data were read, 0 if not, < 0 if error
Since
1.4.0

Definition at line 1910 of file ecma119.c.

References BLOCK_SIZE, iso_interval_reader::cur_block, iso_interval_reader::end_byte, iso_interval_reader::eof, iso_interval_reader::fd, iso_interval_reader::flags, iso_interval_reader::image, Iso_Image::import_src, iso_interval_reader::initialized, iso_interval_reader::is_block_aligned, ISO_BAD_PARTITION_FILE, iso_error_get_severity(), ISO_INTVL_READ_PROBLEM, iso_ivr_zeroize(), iso_msg_submit(), ISO_SUCCESS, iso_data_source::open, iso_interval_reader::pending_read_bytes, iso_interval_reader::pending_read_pt, iso_data_source::read_block, iso_interval_reader::read_buf, iso_interval_reader::read_count, iso_interval_reader::source_pt, iso_interval_reader::src_is_open, and iso_interval_reader::start_byte.

Referenced by iso_write_partition_file(), and Xorriso_set_system_area().

◆ iso_lib_is_compatible()

int iso_lib_is_compatible ( int  major,
int  minor,
int  micro 
)

Check at runtime if the library is ABI compatible with the given version. NOTE: This function may be called before iso_init().

Returns
1 lib is compatible, 0 is not.
Since
0.6.2

Definition at line 2024 of file util.c.

References iso_lib_version().

Referenced by isoburn_initialize().

◆ iso_lib_version()

void iso_lib_version ( int *  major,
int *  minor,
int *  micro 
)

Get version of the libisofs library at runtime. NOTE: This function may be called before iso_init().

Since
0.6.2

Definition at line 2008 of file util.c.

References iso_lib_header_version_major, iso_lib_header_version_micro, and iso_lib_header_version_minor.

Referenced by iso_lib_is_compatible(), isoburn_initialize(), Xorriso_preparer_string(), and Xorriso_report_lib_versions().

◆ iso_local_attr_support()

int iso_local_attr_support ( int  flag)

libisofs has an internal system dependent adapter to ACL and xattr operations. For the sake of completeness and simplicity it exposes this functionality to its applications which might want to get and set ACLs from local files. Inquire whether local filesystem operations with ACL or xattr are enabled inside libisofs. They may be disabled because of compile time decisions. E.g. because the operating system does not support these features or because libisofs has not yet an adapter to use them.

Parameters
flagBitfield for control purposes bit0= inquire availability of ACL bit1= inquire availability of xattr bit2 - bit7= Reserved for future types. It is permissibile to set them to 1 already now. bit8 and higher: reserved, submit 0
Returns
Bitfield corresponding to flag. bit0= ACL adapter is enabled bit1= xattr adapter is enabled bit2 - bit7= Reserved for future types. bit8 and higher: reserved, do not interpret these
Since
1.1.6

Definition at line 834 of file fs_local.c.

References aaip_local_attr_support().

Referenced by Xorriso_list_extras().

◆ iso_local_get_acl_text()

int iso_local_get_acl_text ( char *  disk_path,
char **  text,
int  flag 
)

Get an ACL of the given file in the local filesystem in long text form.

Parameters
disk_pathAbsolute path to the file
textWill return a pointer to the ACL text. If not NULL the text will be 0 terminated and finally has to be disposed by a call to this function with bit15 set.
flagBitfield for control purposes bit0= get "default" ACL rather than "access" ACL bit4= set *text = NULL and return 2 if the ACL matches st_mode permissions. bit5= in case of symbolic link: inquire link target bit15= free text and return 1
Returns
1 ok 2 ok, trivial ACL found while bit4 is set, *text is NULL 0 no ACL manipulation adapter available / ACL not supported on fs -1 failure of system ACL service (see errno) -2 attempt to inquire ACL of a symbolic link without bit4 or bit5 or with no suitable link target
Since
0.6.14

Definition at line 843 of file fs_local.c.

References aaip_get_acl_text().

Referenced by iso_local_get_perms_wo_acl(), and Xorriso_local_getfacl().

◆ iso_local_get_attrs()

int iso_local_get_attrs ( char *  disk_path,
size_t *  num_attrs,
char ***  names,
size_t **  value_lengths,
char ***  values,
int  flag 
)

Get xattr and non-trivial ACLs of the given file in the local filesystem. The resulting data has finally to be disposed by a call to this function with flag bit15 set.

Eventual ACLs will get encoded as attribute pair with empty name if this is enabled by flag bit0. An ACL which simply replects stat(2) permissions will not be put into the result.

Parameters
disk_pathAbsolute path to the file
num_attrsWill return the number of name-value pairs
namesWill return an array of pointers to 0-terminated names
value_lengthsWill return an array with the lengths of values
valuesWill return an array of pointers to 8-bit values
flagBitfield for control purposes bit0= obtain eventual ACLs as attribute with empty name bit2= do not obtain attributes other than ACLs bit3= do not ignore eventual non-user attributes. I.e. those with a name which does not begin by "user." bit5= in case of symbolic link: inquire link target bit15= free memory
Returns
1 ok 2 ok, but it is possible that attributes exist in non-user namespaces which could not be explored due to lack of permission.
Since
1.5.0 < 0 failure
0.6.14

Definition at line 863 of file fs_local.c.

References aaip_get_attr_list(), and ISO_AAIP_NO_GET_LOCAL.

Referenced by Xorriso_get_attrs(), and Xorriso_transfer_properties().

◆ iso_local_get_perms_wo_acl()

int iso_local_get_perms_wo_acl ( char *  disk_path,
mode_t *  st_mode,
int  flag 
)

Obtain permissions of a file in the local filesystem which shall reflect ACL entry "group::" in S_IRWXG rather than ACL entry "mask::". This is necessary if the permissions of a disk file with ACL shall be copied to an object which has no ACL.

Parameters
disk_pathAbsolute path to the local file which may have an "access" ACL or not.
flagBitfield for control purposes bit5= in case of symbolic link: inquire link target
st_modeReturns permission bits as of stat(2)
Returns
1 success -1 failure of lstat() or stat() (see errno)
Since
0.6.14

Definition at line 922 of file fs_local.c.

References aaip_cleanout_st_mode(), and iso_local_get_acl_text().

Referenced by Xorriso_transfer_properties().

◆ iso_local_set_acl_text()

int iso_local_set_acl_text ( char *  disk_path,
char *  text,
int  flag 
)

Set the ACL of the given file in the local filesystem to a given list in long text form.

Parameters
disk_pathAbsolute path to the file
textThe input text (0 terminated, ACL long text form)
flagBitfield for control purposes bit0= set "default" ACL rather than "access" ACL bit5= in case of symbolic link: manipulate link target
Returns
> 0 ok 0 no ACL manipulation adapter available for desired ACL type -1 failure of system ACL service (see errno) -2 attempt to manipulate ACL of a symbolic link without bit5 or with no suitable link target
Since
0.6.14

Definition at line 852 of file fs_local.c.

References aaip_set_acl_text(), and ISO_AAIP_NO_SET_LOCAL.

◆ iso_local_set_attrs()

int iso_local_set_attrs ( char *  disk_path,
size_t  num_attrs,
char **  names,
size_t *  value_lengths,
char **  values,
int  flag 
)

Older version of iso_local_set_attrs_errno() without the errnos array. All other parameters and the return value have the same meaning.

Since
0.6.14

Definition at line 903 of file fs_local.c.

References iso_local_set_attrs_errno(), and ISO_OUT_OF_MEM.

◆ iso_local_set_attrs_errno()

int iso_local_set_attrs_errno ( char *  disk_path,
size_t  num_attrs,
char **  names,
size_t *  value_lengths,
char **  values,
int *  errnos,
int  flag 
)

Attach a list of xattr and ACLs to the given file in the local filesystem.

Eventual ACLs have to be encoded as attribute pair with empty name.

Parameters
disk_pathAbsolute path to the file
num_attrsNumber of attributes
namesArray of pointers to 0 terminated name strings
value_lengthsArray of byte lengths for each attribute payload
valuesArray of pointers to the attribute payload bytes
errnosArray of integers to return error numbers if encountered at the attempt to process the name-value pair at the given array index number: 0 = no error , -1 = unknown error >0 = errno as of local system calls to set xattr and ACLs
flagBitfield for control purposes bit0= do not attach ACLs from an eventual attribute with empty name bit3= do not ignore eventual non-user attributes. I.e. those with a name which does not begin by "user." bit5= in case of symbolic link: manipulate link target bit6=
Since
1.1.6 tolerate inappropriate presence or absence of directory "default" ACL bit7=
1.5.0 avoid setting a name value pair if it already exists and has the desired value.
Returns
1 = ok < 0 = error
Since
1.5.0

Definition at line 877 of file fs_local.c.

References aaip_set_attr_list(), ISO_AAIP_BAD_AASTRING, ISO_AAIP_BAD_ATTR_NAME, ISO_AAIP_NO_SET_LOCAL, ISO_AAIP_NOT_ENABLED, and ISO_OUT_OF_MEM.

Referenced by iso_local_set_attrs(), and Xorriso_restore_properties().

◆ iso_md5_clone()

int iso_md5_clone ( void *  old_md5_context,
void **  new_md5_context 
)

Create a MD5 computation context as clone of an existing one. One may call iso_md5_clone(old, &new, 0) and then iso_md5_end(&new, result, 0) in order to obtain an intermediate MD5 sum before the computation goes on.

Parameters
old_md5_contextAn opaque handle once returned by iso_md5_start() or iso_md5_clone().
new_md5_contextReturns the opaque handle to the new MD5 context. Submitted *md5_context must be NULL or point to freeable memory.
Returns
1= success , <0 indicates error
Since
0.6.22

Definition at line 377 of file md5.c.

References ISO_NULL_POINTER, ISO_OUT_OF_MEM, and libisofs_md5().

Referenced by checksum_writer_write_data(), iso_md5_write_scdbackup_tag(), iso_md5_write_tag(), iso_util_eval_md5_tag(), Xorriso_adjust_session_size(), Xorriso_chunk_md5(), and Xorriso_migrate_checksum_tag().

◆ iso_md5_compute()

int iso_md5_compute ( void *  md5_context,
char *  data,
int  datalen 
)

Advance the computation of a MD5 checksum by a chunk of data bytes.

Parameters
md5_contextAn opaque handle once returned by iso_md5_start() or iso_md5_clone().
dataThe bytes which shall be processed into to the checksum.
datalenThe number of bytes to be processed.
Returns
1= success , <0 indicates error
Since
0.6.22

Definition at line 365 of file md5.c.

References ISO_NULL_POINTER, and libisofs_md5().

Referenced by checksum_writer_write_data(), ecma119_image_new(), iso_filesrc_write_data(), iso_image_import(), iso_md5_write_scdbackup_tag(), iso_md5_write_tag(), iso_src_check_sb_tree(), iso_stream_make_md5(), iso_truncate_rr_name(), iso_util_decode_md5_tag(), iso_write(), make_hopefully_unique_name(), Xorriso_adjust_session_size(), Xorriso_check_md5(), Xorriso_check_md5_range(), Xorriso_chunk_md5(), Xorriso_md5_compute(), Xorriso_migrate_checksum_tag(), Xorriso_refresh_sb_tag(), Xorriso_refresh_ts_tags(), and Xorriso_verify_sb_tag().

◆ iso_md5_end()

int iso_md5_end ( void **  md5_context,
char  result[16] 
)

Obtain the MD5 checksum from a MD5 computation context and dispose this context. (If you want to keep the context then call iso_md5_clone() and apply iso_md5_end() to the clone.)

Parameters
md5_contextA pointer to an opaque handle once returned by iso_md5_start() or iso_md5_clone(). *md5_context will be set to NULL in this call.
resultGets filled with the 16 bytes of MD5 checksum.
Returns
1= success , <0 indicates error
Since
0.6.22

Definition at line 391 of file md5.c.

References ISO_NULL_POINTER, and libisofs_md5().

Referenced by checksum_writer_write_data(), ecma119_image_free(), ecma119_image_new(), iso_filesrc_write_data(), iso_image_import(), iso_md5_write_scdbackup_tag(), iso_md5_write_tag(), iso_src_check_sb_tree(), iso_stream_make_md5(), iso_truncate_rr_name(), iso_util_decode_md5_tag(), iso_util_eval_md5_tag(), make_hopefully_unique_name(), Xorriso__set_iso_check_tag_md5(), Xorriso_adjust_session_size(), Xorriso_check_interval(), Xorriso_check_md5(), Xorriso_check_md5_range(), Xorriso_chunk_md5(), Xorriso_md5_end(), Xorriso_migrate_checksum_tag(), Xorriso_refresh_sb_tag(), and Xorriso_verify_sb_tag().

◆ iso_md5_match()

int iso_md5_match ( char  first_md5[16],
char  second_md5[16] 
)

Inquire whether two MD5 checksums match. (This is trivial but such a call is convenient and completes the interface.)

Parameters
first_md5A MD5 byte string as returned by iso_md5_end()
second_md5A MD5 byte string as returned by iso_md5_end()
Returns
1= match , 0= mismatch
Since
0.6.22

Definition at line 403 of file md5.c.

Referenced by iso_filesrc_write_data(), iso_util_eval_md5_tag(), Xorriso_check_md5(), Xorriso_check_md5_range(), Xorriso_chunk_md5(), Xorriso_migrate_checksum_tag(), and Xorriso_verify_sb_tag().

◆ iso_md5_start()

int iso_md5_start ( void **  md5_context)

Create a MD5 computation context and hand out an opaque handle.

Parameters
md5_contextReturns the opaque handle. Submitted *md5_context must be NULL or point to freeable memory.
Returns
1= success , <0 indicates error
Since
0.6.22

Definition at line 353 of file md5.c.

References ISO_OUT_OF_MEM, and libisofs_md5().

Referenced by checksum_writer_write_data(), ecma119_image_new(), iso_filesrc_write_data(), iso_image_import(), iso_md5_write_scdbackup_tag(), iso_md5_write_tag(), iso_src_check_sb_tree(), iso_stream_make_md5(), iso_truncate_rr_name(), iso_util_decode_md5_tag(), make_hopefully_unique_name(), Xorriso_adjust_session_size(), Xorriso_check_interval(), Xorriso_check_md5(), Xorriso_check_md5_range(), Xorriso_chunk_md5(), Xorriso_md5_start(), Xorriso_migrate_checksum_tag(), Xorriso_refresh_sb_tag(), and Xorriso_verify_sb_tag().

◆ iso_memory_stream_new()

int iso_memory_stream_new ( unsigned char *  buf,
size_t  size,
IsoStream **  stream 
)

Create an IsoStream object from content which is stored in a dynamically allocated memory buffer. The new stream will become owner of the buffer and apply free() to it when the stream finally gets destroyed itself.

Parameters
bufThe dynamically allocated memory buffer with the stream content.
sizeThe number of bytes which may be read from buf.
streamWill return a reference to the newly created stream.
Returns
ISO_SUCCESS or <0 for error. E.g. ISO_NULL_POINTER, ISO_OUT_OF_MEM.
Since
1.0.0

Create a stream for reading from a arbitrary memory buffer. When the Stream refcount reach 0, the buffer is free(3).

Returns
1 success, < 0 error

Definition at line 751 of file stream.c.

References MemStreamData::buf, iso_stream::class, iso_stream::data, MemStreamData::ino_id, ISO_NULL_POINTER, ISO_OUT_OF_MEM, ISO_SUCCESS, mem_serial_id, mem_stream_class, MemStreamData::offset, iso_stream::refcount, cut_out_stream::size, and MemStreamData::size.

Referenced by iso_patch_eltoritos().

◆ iso_msgs_submit()

int iso_msgs_submit ( int  error_code,
char  msg_text[],
int  os_errno,
char  severity[],
int  origin 
)

Submit a message to the libisofs queueing system. It will be queued or printed as if it was generated by libisofs itself.

Parameters
error_codeThe unique error code of your message. Submit 0 if you do not have reserved error codes within the libburnia project.
msg_textNot more than ISO_MSGS_MESSAGE_LEN characters of message text.
os_errnoEventual errno related to the message. Submit 0 if the message is not related to a operating system error.
severityOne of "ABORT", "FATAL", "FAILURE", "SORRY", "WARNING", "HINT", "NOTE", "UPDATE", "DEBUG". Defaults to "FATAL".
originSubmit 0 for now.
Returns
1 if message was delivered, <=0 if failure
Since
0.6.4

Definition at line 707 of file messages.c.

References libiso_msgr, libiso_msgs__text_to_sev(), LIBISO_MSGS_PRIO_HIGH, LIBISO_MSGS_SEV_ABORT, LIBISO_MSGS_SEV_ALL, LIBISO_MSGS_SEV_DEBUG, LIBISO_MSGS_SEV_FATAL, LIBISO_MSGS_SEV_HINT, LIBISO_MSGS_SEV_NOTE, LIBISO_MSGS_SEV_SORRY, LIBISO_MSGS_SEV_UPDATE, LIBISO_MSGS_SEV_WARNING, and libiso_msgs_submit().

Referenced by ecma119_writer_write_data(), gpt_tail_writer_write_data(), insert_apm_head(), iso_align_isohybrid(), iso_compute_append_partitions(), iso_image_filesystem_new(), iso_write_gpt_header_block(), iso_write_system_area(), isoburn_report_iso_error(), part_align_writer_compute_data_blocks(), rectify_apm(), tail_writer_compute_data_blocks(), and write_function().

◆ iso_new_find_conditions_and()

IsoFindCondition* iso_new_find_conditions_and ( IsoFindCondition a,
IsoFindCondition b 
)

Create a new condition that check if the two given conditions are valid.

Parameters
a
bIsoFindCondition to compare
Returns
The created IsoFindCondition, NULL on error.
Since
0.6.4

Definition at line 668 of file find.c.

References logical_binary_conditions::a, logical_binary_conditions::b, cond_logical_and_matches(), cond_logical_binary_free(), iso_find_condition::data, iso_find_condition::free, and iso_find_condition::matches.

◆ iso_new_find_conditions_atime()

IsoFindCondition* iso_new_find_conditions_atime ( time_t  time,
enum iso_find_comparisons  comparison 
)

Create a new condition that checks the time of last access.

Parameters
timeTime to compare against IsoNode atime.
comparisonComparison to be done between IsoNode atime and submitted time. Note that ISO_FIND_COND_GREATER, for example, is true if the node time is greater than the submitted time.
Returns
The created IsoFindCondition, NULL on error.
Since
0.6.4

Definition at line 533 of file find.c.

References cond_times::comparison, cond_time_free(), cond_time_matches(), iso_find_condition::data, iso_find_condition::free, iso_find_condition::matches, cond_times::time, and cond_times::what_time.

◆ iso_new_find_conditions_ctime()

IsoFindCondition* iso_new_find_conditions_ctime ( time_t  time,
enum iso_find_comparisons  comparison 
)

Create a new condition that checks the time of last status change.

Parameters
timeTime to compare against IsoNode ctime.
comparisonComparison to be done between IsoNode ctime and submitted time. Note that ISO_FIND_COND_GREATER, for example, is true if the node time is greater than the submitted time.
Returns
The created IsoFindCondition, NULL on error.
Since
0.6.4

Definition at line 607 of file find.c.

References cond_times::comparison, cond_time_free(), cond_time_matches(), iso_find_condition::data, iso_find_condition::free, iso_find_condition::matches, cond_times::time, and cond_times::what_time.

◆ iso_new_find_conditions_gid()

IsoFindCondition* iso_new_find_conditions_gid ( gid_t  gid)

Create a new condition that checks the node gid.

Parameters
gidDesired Group Id.
Returns
The created IsoFindCondition, NULL on error.
Since
0.6.4

Definition at line 411 of file find.c.

References find_iter_data::cond, cond_gid_free(), cond_gid_matches(), iso_find_condition::data, iso_find_condition::free, and iso_find_condition::matches.

◆ iso_new_find_conditions_mode()

IsoFindCondition* iso_new_find_conditions_mode ( mode_t  mask)

Create a new condition that checks the node mode against a mode mask. It can be used to check both file type and permissions.

For example:

iso_new_find_conditions_mode(S_IFREG) : search for regular files iso_new_find_conditions_mode(S_IFCHR | S_IWUSR) : search for character devices where owner has write permissions.

Parameters
maskMode mask to AND against node mode.
Returns
The created IsoFindCondition, NULL on error.
Since
0.6.4

Definition at line 366 of file find.c.

References find_iter_data::cond, cond_mode_free(), cond_mode_matches(), iso_find_condition::data, iso_find_condition::free, and iso_find_condition::matches.

◆ iso_new_find_conditions_mtime()

IsoFindCondition* iso_new_find_conditions_mtime ( time_t  time,
enum iso_find_comparisons  comparison 
)

Create a new condition that checks the time of last modification.

Parameters
timeTime to compare against IsoNode mtime.
comparisonComparison to be done between IsoNode mtime and submitted time. Note that ISO_FIND_COND_GREATER, for example, is true if the node time is greater than the submitted time.
Returns
The created IsoFindCondition, NULL on error.
Since
0.6.4

Definition at line 570 of file find.c.

References cond_times::comparison, cond_time_free(), cond_time_matches(), iso_find_condition::data, iso_find_condition::free, iso_find_condition::matches, cond_times::time, and cond_times::what_time.

◆ iso_new_find_conditions_name()

IsoFindCondition* iso_new_find_conditions_name ( const char *  wildcard)

Create a new condition that checks if the node name matches the given wildcard.

Parameters
wildcard
Returns
The created IsoFindCondition, NULL on error.
Since
0.6.4

Definition at line 318 of file find.c.

References find_iter_data::cond, cond_name_free(), cond_name_matches(), iso_find_condition::data, iso_find_condition::free, and iso_find_condition::matches.

◆ iso_new_find_conditions_not()

IsoFindCondition* iso_new_find_conditions_not ( IsoFindCondition negate)

Create a new condition that check if the given conditions is false.

Parameters
negate
Returns
The created IsoFindCondition, NULL on error.
Since
0.6.4

Definition at line 755 of file find.c.

References cond_not_free(), cond_not_matches(), iso_find_condition::data, iso_find_condition::free, and iso_find_condition::matches.

◆ iso_new_find_conditions_or()

IsoFindCondition* iso_new_find_conditions_or ( IsoFindCondition a,
IsoFindCondition b 
)

Create a new condition that check if at least one the two given conditions is valid.

Parameters
a
bIsoFindCondition to compare
Returns
The created IsoFindCondition, NULL on error.
Since
0.6.4

Definition at line 709 of file find.c.

References logical_binary_conditions::a, logical_binary_conditions::b, cond_logical_binary_free(), cond_logical_or_matches(), iso_find_condition::data, iso_find_condition::free, and iso_find_condition::matches.

◆ iso_new_find_conditions_uid()

IsoFindCondition* iso_new_find_conditions_uid ( uid_t  uid)

Create a new condition that checks the node uid.

Parameters
uidDesired User Id.
Returns
The created IsoFindCondition, NULL on error.
Since
0.6.4

Definition at line 456 of file find.c.

References find_iter_data::cond, cond_uid_free(), cond_uid_matches(), iso_find_condition::data, iso_find_condition::free, and iso_find_condition::matches.

◆ iso_node_add_xinfo()

int iso_node_add_xinfo ( IsoNode node,
iso_node_xinfo_func  proc,
void *  data 
)

Add extended information to the given node. Extended info allows applications (and libisofs itself) to add more information to an IsoNode. You can use this facilities to associate temporary information with a given node. This information is not written into the ISO 9660 image on media and thus does not persist longer than the node memory object.

Each node keeps a list of added extended info, meaning you can add several extended info data to each node. Each extended info you add is identified by the proc parameter, a pointer to a function that knows how to manage the external info data. Thus, in order to add several types of extended info, you need to define a "proc" function for each type.

Parameters
nodeThe node where to add the extended info
procA function pointer used to identify the type of the data, and that knows how to manage it
dataExtended info to add.
Returns
1 if success, 0 if the given node already has extended info of the type defined by the "proc" function, < 0 on error
Since
0.6.4

Add extended information to the given node. Extended info allows applications (and libisofs itself) to add more information to an IsoNode. You can use this facilities to associate new information with a given node.

Each node keeps a list of added extended info, meaning you can add several extended info data to each node. Each extended info you add is identified by the proc parameter, a pointer to a function that knows how to manage the external info data. Thus, in order to add several types of extended info, you need to define a "proc" function for each type.

Parameters
nodeThe node where to add the extended info
procA function pointer used to identify the type of the data, and that knows how to manage it
dataExtended info to add.
Returns
1 if success, 0 if the given node already has extended info of the type defined by the "proc" function, < 0 on error

Definition at line 136 of file node.c.

References iso_extended_info::data, ISO_NULL_POINTER, ISO_OUT_OF_MEM, ISO_SUCCESS, iso_extended_info::next, iso_extended_info::process, and Iso_Node::xinfo.

Referenced by checksum_prepare_nodes(), default_create_node(), iso_file_make_md5(), iso_file_zf_by_magic(), iso_node_clone_xinfo(), iso_node_set_attrs(), iso_node_set_ino_xinfo(), src_aa_to_node(), Xorriso_mark_update_merge(), and Xorriso_set_hfsplus_crtp().

◆ iso_node_cmp_ino()

int iso_node_cmp_ino ( IsoNode n1,
IsoNode n2,
int  flag 
)

Compare two nodes whether they are based on the same input and can be considered as hardlinks to the same file objects.

Parameters
n1The first node to compare.
n2The second node to compare.
Returns
-1 if n1 is smaller n2 , 0 if n1 matches n2 , 1 if n1 is larger n2
Parameters
flagBitfield for control purposes, unused yet, submit 0
Since
0.6.20

Definition at line 2879 of file node.c.

References iso_node_cmp_flag().

Referenced by Xorriso__findi_sorted_ino_cmp().

◆ iso_node_get_acl_text()

int iso_node_get_acl_text ( IsoNode node,
char **  access_text,
char **  default_text,
int  flag 
)

Get the eventual ACLs which are associated with the node. The result will be in "long" text form as of man acl and acl_to_text(). Call this function with flag bit15 to finally release the memory occupied by an ACL inquiry.

Parameters
nodeThe node that is to be inquired.
access_textWill return a pointer to the eventual "access" ACL text or NULL if it is not available and flag bit 4 is set.
default_textWill return a pointer to the eventual "default" ACL or NULL if it is not available. (GNU/Linux directories can have a "default" ACL which influences the permissions of newly created files.)
flagBitfield for control purposes bit4= if no "access" ACL is available: return *access_text == NULL else: produce ACL from stat(2) permissions bit15= free memory and return 1 (node may be NULL)
Returns
2 *access_text was produced from stat(2) permissions 1 *access_text was produced from ACL of node 0 if flag bit4 is set and no ACL is available < 0 on error
Since
0.6.14

Definition at line 2154 of file node.c.

References iso_attr_get_acl_text(), iso_node_get_attrs(), and iso_node_get_permissions().

Referenced by iso_node_get_perms_wo_acl(), iso_node_set_attrs(), Xorriso_getfacl(), and Xorriso_ls_filev().

◆ iso_node_get_atime()

time_t iso_node_get_atime ( const IsoNode node)

Get the time of last access to the file

Since
0.6.2

Get the time of last access to the file

Definition at line 537 of file node.c.

References Iso_Node::atime.

Referenced by Xorriso_fake_stbuf(), and Xorriso_restore_properties().

◆ iso_node_get_attrs()

int iso_node_get_attrs ( IsoNode node,
size_t *  num_attrs,
char ***  names,
size_t **  value_lengths,
char ***  values,
int  flag 
)

Get the list of xattr which is associated with the node. The resulting data may finally be disposed by a call to this function with flag bit15 set, or its components may be freed one-by-one. The following values are either NULL or malloc() memory: *names, *value_lengths, *values, (*names)[i], (*values)[i] with 0 <= i < *num_attrs. It is allowed to replace or reallocate those memory items in order to to manipulate the attribute list before submitting it to other calls.

If enabled by flag bit0, this list possibly includes the ACLs of the node. They are eventually encoded in a pair with empty name. It is not advisable to alter the value or name of that pair. One may decide to erase both ACLs by deleting this pair or to copy both ACLs by copying the content of this pair to an empty named pair of another node. For all other ACL purposes use iso_node_get_acl_text().

Parameters
nodeThe node that is to be inquired.
num_attrsWill return the number of name-value pairs
namesWill return an array of pointers to 0-terminated names
value_lengthsWill return an array with the lengths of values
valuesWill return an array of pointers to strings of 8-bit bytes
flagBitfield for control purposes bit0= obtain eventual ACLs as attribute with empty name bit2= with bit0: do not obtain attributes other than ACLs bit15= free memory (node may be NULL)
Returns
1 = ok (but *num_attrs may be 0) < 0 = error
Since
0.6.14

Definition at line 1776 of file node.c.

References aaip_xinfo_func(), iso_aa_get_attrs(), and iso_node_get_xinfo().

Referenced by iso_node_get_acl_text(), iso_node_merge_xattr(), iso_node_set_acl_text(), Xorriso_get_attrs(), and Xorriso_restore_properties().

◆ iso_node_get_ctime()

time_t iso_node_get_ctime ( const IsoNode node)

Get the time of last status change of the file

Since
0.6.2

Get the time of last status change of the file

Definition at line 553 of file node.c.

References Iso_Node::ctime.

Referenced by Xorriso_fake_stbuf().

◆ iso_node_get_gid()

gid_t iso_node_get_gid ( const IsoNode node)

Get the group id of the node.

Since
0.6.2

Get the group id of the node.

Definition at line 505 of file node.c.

References Iso_Node::gid.

Referenced by Xorriso_fake_stbuf(), Xorriso_getfacl(), and Xorriso_restore_properties().

◆ iso_node_get_hidden()

int iso_node_get_hidden ( IsoNode node)

Get the hide_attrs as eventually set by iso_node_set_hidden().

Parameters
nodeThe node to inquire.
Returns
Or-combination of values from enum IsoHideNodeFlag which are currently set for the node.
Since
0.6.34

Definition at line 566 of file node.c.

References Iso_Node::hidden.

Referenced by Exprtest_match(), and Xorriso_node_eff_hidden().

◆ iso_node_get_mode()

mode_t iso_node_get_mode ( const IsoNode node)

Get the mode of the node, both permissions and file type, as specified in 'man 2 stat'.

Since
0.6.2

Get the mode of the node, both permissions and file type, as specified in 'man 2 stat'.

Definition at line 471 of file node.c.

References Iso_Node::mode.

◆ iso_node_get_mtime()

time_t iso_node_get_mtime ( const IsoNode node)

Get the time of last modification of the file

Since
0.6.2

Get the time of last modification of the file

Definition at line 521 of file node.c.

References Iso_Node::mtime.

Referenced by Xorriso_fake_stbuf(), Xorriso_restore_properties(), and Xorriso_set_to_mtime().

◆ iso_node_get_name()

const char* iso_node_get_name ( const IsoNode node)

Get the name of a node. The returned string belongs to the node and must not be modified nor freed. Use strdup if you really need your own copy.

Up to version 1.4.2 inquiry of the root directory name returned NULL, which is a bug in the light of above description. Since 1.4.2 the return value is an empty string.

Since
0.6.2

Get the name of a node (in UTF-8). The returned string belongs to the node and should not be modified nor freed. Use strdup if you really need your own copy.

Definition at line 415 of file node.c.

References Iso_Node::name.

Referenced by make_mips_volume_header(), Xorriso__node_name_cmp(), Xorriso_clone_under(), Xorriso_findi(), Xorriso_identify_split(), Xorriso_ls(), Xorriso_obtain_pattern_files_i(), Xorriso_path_from_node(), Xorriso_rename(), Xorriso_rename_suffix(), Xorriso_restore_tree(), Xorriso_rmi(), Xorriso_rmx(), Xorriso_set_filter(), Xorriso_show_du_subs(), Xorriso_sorted_dir_i(), Xorriso_sorted_node_array(), Xorriso_test_outchar(), and Xorriso_truncate_uniquely().

◆ iso_node_get_next_xinfo()

int iso_node_get_next_xinfo ( IsoNode node,
void **  handle,
iso_node_xinfo_func proc,
void **  data 
)

Get the next pair of function pointer and data of an iteration of the list of extended information. Like: iso_node_xinfo_func proc; void *handle = NULL, *data; while (iso_node_get_next_xinfo(node, &handle, &proc, &data) == 1) { ... make use of proc and data ... } The iteration allocates no memory. So you may end it without any disposal action. IMPORTANT: Do not continue iterations after manipulating the extended information of a node. Memory corruption hazard !

Parameters
nodeThe node to inquire
handleThe opaque iteration handle. Initialize iteration by submitting a pointer to a void pointer with value NULL. Do not alter its content until iteration has ended.
procThe function pointer which serves as key
dataWill be filled with the extended info corresponding to the given proc function
Returns
1 on success 0 if iteration has ended (proc and data are invalid then) < 0 on error
Since
1.0.2

Definition at line 236 of file node.c.

References iso_extended_info::data, ISO_NULL_POINTER, ISO_SUCCESS, iso_extended_info::next, iso_extended_info::process, and Iso_Node::xinfo.

Referenced by iso_node_clone_xinfo().

◆ iso_node_get_old_image_lba()

int iso_node_get_old_image_lba ( IsoNode node,
uint32_t *  lba,
int  flag 
)

Definition at line 1227 of file node.c.

References iso_file_get_old_image_lba(), ISO_NODE_IS_FILE, and ISO_NULL_POINTER.

Referenced by dir_update_size().

◆ iso_node_get_parent()

◆ iso_node_get_permissions()

mode_t iso_node_get_permissions ( const IsoNode node)

Get the permissions for the node

Since
0.6.2

Get the permissions for the node

Definition at line 462 of file node.c.

References Iso_Node::mode.

Referenced by iso_node_get_acl_text(), iso_node_get_perms_wo_acl(), iso_node_set_acl_text(), Xorriso_fake_stbuf(), Xorriso_mkisofs_lower_r(), Xorriso_restore_properties(), and Xorriso_set_st_mode().

◆ iso_node_get_perms_wo_acl()

mode_t iso_node_get_perms_wo_acl ( const IsoNode node)

Like iso_node_get_permissions but reflecting ACL entry "group::" in S_IRWXG rather than ACL entry "mask::". This is necessary if the permissions of a node with ACL shall be restored to a filesystem without restoring the ACL. The same mapping happens internally when the ACL of a node is deleted. If the node has no ACL then the result is iso_node_get_permissions(node).

Parameters
nodeThe node that is to be inquired.
Returns
Permission bits as of stat(2)
Since
0.6.14

Definition at line 2390 of file node.c.

References aaip_cleanout_st_mode(), iso_node_get_acl_text(), and iso_node_get_permissions().

Referenced by Xorriso_fake_stbuf(), and Xorriso_restore_properties().

◆ iso_node_get_type()

enum IsoNodeType iso_node_get_type ( IsoNode node)

Get the type of an IsoNode.

Since
0.6.2

Get the type of an IsoNode.

Definition at line 286 of file node.c.

Referenced by add_zf_field(), hppa_palo_get_filepar(), hppa_palo_set_path(), img_collect_inos(), img_make_inos(), img_update_ino(), iso_analyze_alpha_boot(), iso_dir_zisofs_discard_bpt(), and Xorriso_test_outchar().

◆ iso_node_get_uid()

uid_t iso_node_get_uid ( const IsoNode node)

Get the user id of the node.

Since
0.6.2

Get the user id of the node.

Definition at line 488 of file node.c.

References Iso_Node::uid.

Referenced by Xorriso_fake_stbuf(), Xorriso_getfacl(), and Xorriso_restore_properties().

◆ iso_node_get_xinfo()

int iso_node_get_xinfo ( IsoNode node,
iso_node_xinfo_func  proc,
void **  data 
)

Get the given extended info (defined by the proc function) from the given node.

Parameters
nodeThe node to inquire
procThe function pointer which serves as key
dataWill after successful call point to the xinfo data corresponding to the given proc. This is a pointer, not a feeable data copy.
Returns
1 on success, 0 if node does not have extended info of the requested type, < 0 on error
Since
0.6.4

Get the given extended info (defined by the proc function) from the given node.

Parameters
dataWill be filled with the extended info corresponding to the given proc function
Returns
1 on success, 0 if node does not have extended info of the requested type, < 0 on error

Definition at line 213 of file node.c.

References iso_extended_info::data, ISO_NULL_POINTER, ISO_SUCCESS, iso_extended_info::next, iso_extended_info::process, and Iso_Node::xinfo.

Referenced by add_aa_string(), add_zf_field(), checksum_copy_old_nodes(), checksum_prepare_nodes(), Exprtest_match(), hfsplus_writer_write_data(), iso_file_get_md5(), iso_file_src_create(), iso_file_zf_by_magic(), iso_node_cmp_flag(), iso_node_get_attrs(), iso_node_get_id(), iso_node_lookup_attr(), iso_node_set_ino(), process_preserved_cx(), susp_calc_nm_sl_al(), Xorriso_findi_action(), and Xorriso_mark_update_merge().

◆ iso_node_lookup_attr()

int iso_node_lookup_attr ( IsoNode node,
char *  name,
size_t *  value_length,
char **  value,
int  flag 
)

Obtain the value of a particular xattr name. Eventually make a copy of that value and add a trailing 0 byte for caller convenience.

Parameters
nodeThe node that is to be inquired.
nameThe xattr name that shall be looked up.
value_lengthWill return the length of value
valueWill return a string of 8-bit bytes. free() it when no longer needed.
flagBitfield for control purposes, unused yet, submit 0
Returns
1= name found , 0= name not found , <0 indicates error
Since
0.6.18

Definition at line 1757 of file node.c.

References aaip_xinfo_func(), iso_aa_lookup_attr(), and iso_node_get_xinfo().

Referenced by checksum_copy_old_nodes(), checksum_prepare_nodes(), ecma119_writer_write_dirs(), iso_file_get_md5(), iso_root_get_isofsca(), iso_root_get_isofsnt(), Xorriso__get_di(), and Xorriso_grasp_loaded_aaip().

◆ iso_node_ref()

◆ iso_node_remove()

int iso_node_remove ( IsoNode node)

Removes a child from a directory and free (unref) it. If you want to keep the child alive, you need to iso_node_ref() it before this call, but in that case iso_node_take() is a better alternative.

Returns
1 on success, < 0 error
Since
0.6.2

Removes a child from a directory and free (unref) it. If you want to keep the child alive, you need to iso_node_ref() it before this call, but in that case iso_node_take() is a better alternative.

Returns
1 on success, < 0 error

Definition at line 850 of file node.c.

References iso_node_take(), iso_node_unref(), and ISO_SUCCESS.

Referenced by find_iter_remove(), iso_node_remove_tree(), and Xorriso_rmi().

◆ iso_node_remove_all_xinfo()

int iso_node_remove_all_xinfo ( IsoNode node,
int  flag 
)

Remove all extended information from the given node.

Parameters
nodeThe node where to remove all extended info
flagBitfield for control purposes, unused yet, submit 0
Returns
1 on success, < 0 on error
Since
1.0.2

Definition at line 258 of file node.c.

References iso_extended_info::data, ISO_SUCCESS, iso_extended_info::next, iso_extended_info::process, and Iso_Node::xinfo.

Referenced by iso_node_clone_xinfo().

◆ iso_node_remove_tree()

int iso_node_remove_tree ( IsoNode node,
IsoDirIter boss_iter 
)

Removes a node by iso_node_remove() or iso_dir_iter_remove(). If the node is a directory then the whole tree of nodes underneath is removed too.

Parameters
nodeThe node to be removed.
boss_iterIf not NULL, then the node will be removed by iso_dir_iter_remove(boss_iter) else it will be removed by iso_node_remove(node).
Returns
1 is success, <0 indicates error
Since
1.0.2

Definition at line 861 of file node.c.

References iso_dir_get_children(), iso_dir_iter_free(), iso_dir_iter_next(), iso_dir_iter_remove(), iso_node_remove(), iso_node_remove_tree(), iso_node_unref(), LIBISO_DIR, and Iso_Node::type.

Referenced by iso_node_remove_tree(), and iso_tree_clone_dir().

◆ iso_node_remove_xinfo()

int iso_node_remove_xinfo ( IsoNode node,
iso_node_xinfo_func  proc 
)

Remove the given extended info (defined by the proc function) from the given node.

Returns
1 on success, 0 if node does not have extended info of the requested type, < 0 on error
Since
0.6.4

Remove the given extended info (defined by the proc function) from the given node.

Returns
1 on success, 0 if node does not have extended info of the requested type, < 0 on error

Definition at line 172 of file node.c.

References iso_extended_info::data, ISO_NULL_POINTER, ISO_SUCCESS, iso_extended_info::next, iso_extended_info::process, and Iso_Node::xinfo.

Referenced by checksum_copy_old_nodes(), iso_file_make_md5(), iso_file_zf_by_magic(), iso_node_set_attrs(), iso_node_set_ino_xinfo(), iso_node_zf_by_magic(), process_preserved_cx(), Xorriso_mark_update_merge(), and Xorriso_remove_hfsplus_crtp().

◆ iso_node_set_acl_text()

int iso_node_set_acl_text ( IsoNode node,