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)  

lib_mgt.c File Reference
#include <ctype.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <time.h>
#include <errno.h>
#include <pthread.h>
#include <iconv.h>
#include <langinfo.h>
#include "xorriso.h"
#include "xorriso_private.h"
#include "xorrisoburn.h"
#include "lib_mgt.h"
#include "iso_manip.h"
Include dependency graph for lib_mgt.c:

Go to the source code of this file.

Macros

#define Isoburn_libisoburn_dot_h_too_olD   1
 

Functions

int Xorriso_abort (struct XorrisO *xorriso, int flag)
 
int Xorriso_set_signal_handling (struct XorrisO *xorriso, int flag)
 
int Xorriso_startup_libraries (struct XorrisO *xorriso, int flag)
 
int Xorriso_detach_libraries (struct XorrisO *xorriso, int flag)
 
int Xorriso_set_image_severities (struct XorrisO *xorriso, int flag)
 
int Xorriso_set_abort_severity (struct XorrisO *xorriso, int flag)
 
int Xorriso_report_lib_versions (struct XorrisO *xorriso, int flag)
 
int Xorriso__sev_to_text (int severity, char **severity_name, int flag)
 
int Xorriso__text_to_sev (char *severity_name, int *severity_number, int flag)
 
int Xorriso__severity_cmp (char *sev1, char *sev2)
 
char * Xorriso__severity_list (int flag)
 
int Xorriso_report_iso_error (struct XorrisO *xorriso, char *victim, int iso_error_code, char msg_text[], int os_errno, char min_severity[], int flag)
 
int Xorriso_get_local_charset (struct XorrisO *xorriso, char **name, int flag)
 
int Xorriso_set_local_charset (struct XorrisO *xorriso, char *name, int flag)
 
int Xorriso_process_msg_queues (struct XorrisO *xorriso, int flag)
 
int Xorriso_md5_start (struct XorrisO *xorriso, void **ctx, int flag)
 
int Xorriso_md5_compute (struct XorrisO *xorriso, void *ctx, char *data, int datalen, int flag)
 
int Xorriso_md5_end (struct XorrisO *xorriso, void **ctx, char md5[16], int flag)
 
int Xorriso_preparer_string (struct XorrisO *xorriso, char xorriso_id[129], int flag)
 
int Xorriso_jigdo_interpreter (struct XorrisO *xorriso, char *aspect, char *arg, int flag)
 
int Xorriso_list_extras_result (struct XorrisO *xorriso, char *mode, char *what, int flag)
 
int Xorriso_list_extras (struct XorrisO *xorriso, char *mode, int flag)
 
int Xorriso_set_data_cache (struct XorrisO *xorriso, void *o, int num_tiles, int tile_blocks, int flag)
 
int Xorriso_format_guid (struct XorrisO *xorriso, uint8_t guid[16], char *line, int flag)
 
int Xorriso_make_guid (struct XorrisO *xorriso, char *line, int flag)
 
int Xorriso_set_libisofs_now (struct XorrisO *xorriso, int flag)
 

Macro Definition Documentation

◆ Isoburn_libisoburn_dot_h_too_olD

#define Isoburn_libisoburn_dot_h_too_olD   1

Function Documentation

◆ Xorriso__sev_to_text()

int Xorriso__sev_to_text ( int  severity,
char **  severity_name,
int  flag 
)

◆ Xorriso__severity_cmp()

int Xorriso__severity_cmp ( char *  sev1,
char *  sev2 
)

Compare two severity texts for their severeness. Unknown severity texts get defaulted to "FATAL".

Since
1.2.6
Parameters
sev1First severity text to compare
sev2Second severity text to compare
Returns
-1 sev1 is less severe than sev2 0 sev1 is equally severe to sev2 1 sev1 is more severe than sev2

Definition at line 401 of file lib_mgt.c.

References Xorriso__text_to_sev().

Referenced by Xorriso_option_commit(), and Xorriso_option_msg_op().

◆ Xorriso__severity_list()

char* Xorriso__severity_list ( int  flag)

Return a blank separated list of severity names. Sorted from low to high severity.

Since
1.2.6
Parameters
flagBitfield for control purposes (unused yet, submit 0)
Returns
A constant string with the severity names

Definition at line 420 of file lib_mgt.c.

References burn_list_sev_texts().

Referenced by Xorriso_option_msg_op().

◆ Xorriso__text_to_sev()

◆ Xorriso_abort()

int Xorriso_abort ( struct XorrisO xorriso,
int  flag 
)

◆ Xorriso_detach_libraries()

◆ Xorriso_format_guid()

int Xorriso_format_guid ( struct XorrisO xorriso,
uint8_t  guid[16],
char *  line,
int  flag 
)

Definition at line 1009 of file lib_mgt.c.

References Xorriso__format_guid().

Referenced by Xorriso_make_guid(), and Xorriso_report_system_area().

◆ Xorriso_get_local_charset()

int Xorriso_get_local_charset ( struct XorrisO xorriso,
char **  name,
int  flag 
)

◆ Xorriso_jigdo_interpreter()

◆ Xorriso_list_extras()

int Xorriso_list_extras ( struct XorrisO xorriso,
char *  mode,
int  flag 
)

◆ Xorriso_list_extras_result()

int Xorriso_list_extras_result ( struct XorrisO xorriso,
char *  mode,
char *  what,
int  flag 
)

Definition at line 892 of file lib_mgt.c.

References Xorriso_result().

Referenced by Xorriso_list_extras().

◆ Xorriso_make_guid()

int Xorriso_make_guid ( struct XorrisO xorriso,
char *  line,
int  flag 
)

Definition at line 1020 of file lib_mgt.c.

References iso_generate_gpt_guid(), and Xorriso_format_guid().

Referenced by Xorriso_report_system_area().

◆ Xorriso_md5_compute()

int Xorriso_md5_compute ( struct XorrisO xorriso,
void *  ctx,
char *  data,
int  datalen,
int  flag 
)

Definition at line 660 of file lib_mgt.c.

References iso_md5_compute().

Referenced by Xorriso_compare_2_contents(), and Xorriso_tree_restore_node().

◆ Xorriso_md5_end()

int Xorriso_md5_end ( struct XorrisO xorriso,
void **  ctx,
char  md5[16],
int  flag 
)

Definition at line 668 of file lib_mgt.c.

References iso_md5_end(), and Xorriso_process_msg_queues().

Referenced by Xorriso_compare_2_contents(), and Xorriso_tree_restore_node().

◆ Xorriso_md5_start()

int Xorriso_md5_start ( struct XorrisO xorriso,
void **  ctx,
int  flag 
)

Definition at line 648 of file lib_mgt.c.

References iso_md5_start(), and Xorriso_no_malloc_memory().

Referenced by Xorriso_compare_2_contents(), and Xorriso_tree_restore_node().

◆ Xorriso_preparer_string()

◆ Xorriso_process_msg_queues()

int Xorriso_process_msg_queues ( struct XorrisO xorriso,
int  flag 
)

Forward any pending messages from the library message queues to the xorriso message system which puts out on info channel. This registers the severity of the library events like the severity of a message submitted via Xorriso_msgs_submit(). xorriso sets the message queues of the libraries to queuing "ALL". Many inner functions of xorriso call Xorriso_process_msg_queues() on their own because they expect library output pending. Nevertheless, a loop of xorriso option calls should either call Xorriso_eval_problem_status() or Xorriso_process_msg_queues() with each cycle.

Parameters
xorrisoThe environment handle
flagUnused yet. Submit 0.
Returns
1 on success, <=0 if failure

Definition at line 519 of file lib_mgt.c.

References burn_msgs_obtain(), XorrisO::info_text, iso_obtain_msgs(), XorrisO::lib_msg_queue_lock, libjte_get_next_message(), XorrisO::library_msg_direct_print, XorrisO::libs_are_started, Xorriso_alloc_meM, Xorriso_free_meM, Xorriso_info(), and Xorriso_msgs_submit().

Referenced by Exprtest_match(), main(), Xoriso_handle_collision(), Xorriso__read_pacifier(), Xorriso_add_mips_boot_file(), Xorriso_add_symlink(), Xorriso_add_tree(), Xorriso_adjust_session_size(), Xorriso_aquire_drive(), Xorriso_assert_volid(), Xorriso_attach_boot_image(), Xorriso_auto_driveadr(), Xorriso_blank_media(), Xorriso_boot_image_status(), Xorriso_boot_status_non_mbr(), Xorriso_burn_track(), Xorriso_cannot_create_iter(), Xorriso_check_interval(), Xorriso_check_md5(), Xorriso_check_md5_range(), Xorriso_check_media(), Xorriso_check_session_md5(), Xorriso_clone_tree(), Xorriso_clone_under(), Xorriso_close_damaged(), Xorriso_create_empty_iso(), Xorriso_drive_snooze(), Xorriso_eval_problem_status(), Xorriso_expand_pattern(), Xorriso_fake_stbuf(), Xorriso_fetch_outlists(), Xorriso_file_eval_damage(), Xorriso_findi(), Xorriso_findi_action(), Xorriso_format_media(), Xorriso_get_attrs(), Xorriso_get_blessing(), Xorriso_get_drive_handles(), Xorriso_get_md5(), Xorriso_get_volume(), Xorriso_give_up_drive(), Xorriso_graft_in(), Xorriso_handle_collision(), Xorriso_hfsplus_bless(), Xorriso_image_has_md5(), Xorriso_iso_file_close(), Xorriso_iso_file_open(), Xorriso_iso_file_read(), Xorriso_jigdo_interpreter(), Xorriso_local_getfacl(), Xorriso_ls(), Xorriso_make_iso_write_opts(), Xorriso_make_md5(), Xorriso_make_write_options(), Xorriso_mark_update_merge(), Xorriso_md5_end(), Xorriso_media_product(), Xorriso_mount(), Xorriso_msgs_submit(), Xorriso_msinfo(), Xorriso_node_from_path(), Xorriso_overwrite_iso_head(), Xorriso_pacifier_loop(), Xorriso_pretend_full_disc(), Xorriso_read_file_data(), Xorriso_refresh_sb_tag(), Xorriso_refresh_ts_tags(), Xorriso_remove_hfsplus_crtp(), Xorriso_rename(), Xorriso_rename_suffix(), Xorriso_report_lba(), Xorriso_restore(), Xorriso_restore_is_identical(), Xorriso_restore_overwrite(), Xorriso_restore_properties(), Xorriso_restore_tree(), Xorriso_rmi(), Xorriso_sanitize_image_size(), Xorriso_set_filter(), Xorriso_set_gid(), Xorriso_set_hfsplus_crtp(), Xorriso_set_isolinux_options(), Xorriso_set_speed(), Xorriso_set_st_mode(), Xorriso_set_system_area(), Xorriso_set_system_area_path(), Xorriso_set_time(), Xorriso_set_uid(), Xorriso_set_volid(), Xorriso_set_zisofs_params(), Xorriso_setfacl(), Xorriso_setfattr(), Xorriso_show_boot_info(), Xorriso_show_devices(), Xorriso_show_du_subs(), Xorriso_show_stream(), Xorriso_startup_libraries(), Xorriso_tell_media_space(), Xorriso_test_outchar(), Xorriso_toc(), Xorriso_transfer_properties(), Xorriso_tree_graft_node(), Xorriso_tree_restore_node(), Xorriso_truncate_overwritable(), Xorriso_truncate_path_comps(), Xorriso_truncate_uniquely(), Xorriso_update_iso_lba0(), Xorriso_use_immed_bit(), Xorriso_verify_sb_tag(), and Xorriso_write_session().

◆ Xorriso_report_iso_error()

◆ Xorriso_report_lib_versions()

◆ Xorriso_set_abort_severity()

int Xorriso_set_abort_severity ( struct XorrisO xorriso,
int  flag 
)

◆ Xorriso_set_data_cache()

int Xorriso_set_data_cache ( struct XorrisO xorriso,
void *  o,
int  num_tiles,
int  tile_blocks,
int  flag 
)

◆ Xorriso_set_image_severities()

int Xorriso_set_image_severities ( struct XorrisO xorriso,
int  flag 
)

◆ Xorriso_set_libisofs_now()

int Xorriso_set_libisofs_now ( struct XorrisO xorriso,
int  flag 
)

◆ Xorriso_set_local_charset()

int Xorriso_set_local_charset ( struct XorrisO xorriso,
char *  name,
int  flag 
)

◆ Xorriso_set_signal_handling()

◆ Xorriso_startup_libraries()

int Xorriso_startup_libraries ( struct XorrisO xorriso,
int  flag 
)

Definition at line 119 of file lib_mgt.c.

References iso_zisofs_ctrl::block_number_target, iso_zisofs_ctrl::block_size_log2, iso_zisofs_ctrl::bpt_discard_free_ratio, burn_msgs_set_severities(), burn_scsi_transport_id(), iso_zisofs_ctrl::compression_level, XorrisO::info_text, iso_node_xinfo_make_clonable(), iso_set_msgs_severities(), iso_zisofs_ctrl_susp_z2(), iso_zisofs_get_params(), isoburn_header_version_major, isoburn_header_version_micro, isoburn_header_version_minor, isoburn_initialize(), isoburn_is_compatible(), isoburn_set_msgs_submit(), isoburn_version(), XorrisO::library_msg_direct_print, XorrisO::libs_are_started, iso_zisofs_ctrl::max_file_blocks, iso_zisofs_ctrl::max_total_blocks, XorrisO::preparer_id, XorrisO::report_about_text, iso_zisofs_ctrl::v2_block_size_log2, iso_zisofs_ctrl::v2_enabled, iso_zisofs_ctrl::version, Xorriso__mark_update_cloner(), Xorriso__mark_update_xinfo(), Xorriso_msgs_submit(), Xorriso_msgs_submit_void(), Xorriso_preparer_string(), Xorriso_process_msg_queues(), Xorriso_set_signal_handling(), XorrisO::zisofs_block_number_target, XorrisO::zisofs_block_size, XorrisO::zisofs_block_size_default, XorrisO::zisofs_bpt_discard_free_ratio, XorrisO::zisofs_bpt_discard_free_ratio_default, XorrisO::zisofs_max_file_blocks, XorrisO::zisofs_max_file_blocks_default, XorrisO::zisofs_max_total_blocks, XorrisO::zisofs_max_total_blocks_default, XorrisO::zisofs_susp_z2, XorrisO::zisofs_susp_z2_default, XorrisO::zisofs_v2_block_size, XorrisO::zisofs_v2_block_size_default, XorrisO::zisofs_v2_enabled, XorrisO::zlib_level, and XorrisO::zlib_level_default.

Referenced by main().