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)  

messages.c File Reference
#include <stdlib.h>
#include <sys/types.h>
#include <string.h>
#include <stdio.h>
#include <stdarg.h>
#include "libiso_msgs.h"
#include "libisofs.h"
#include "messages.h"
#include "util.h"
#include "node.h"
#include "stream.h"
Include dependency graph for messages.c:

Go to the source code of this file.

Data Structures

struct  iso_xinfo_cloner_assoc
 

Macros

#define ISO_ERR_SEV(e)   (e & 0x7F000000)
 
#define ISO_ERR_PRIO(e)   ((e & 0x00700000) << 8)
 
#define ISO_ERR_CODE(e)   ((e & 0x0000FFFF) | 0x00030000)
 
#define MAX_MSG_LEN   4096
 

Functions

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)
 
static int iso_node_xinfo_dispose_cloners (int flag)
 
int iso_init_with_flag (int flag)
 
int iso_init ()
 
void iso_finish ()
 
int iso_set_abort_severity (char *severity)
 
void iso_msg_debug (int imgid, const char *fmt,...)
 
const char * iso_error_to_msg (int errcode)
 
int iso_msg_is_abort (int errcode)
 
int iso_msg_submit (int imgid, int errcode, int causedby, const char *fmt,...)
 
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 *sevno)
 
int iso_sev_to_text (int severity_number, char **severity_name)
 
void * iso_get_messenger ()
 
int iso_error_get_severity (int e)
 
int iso_error_get_priority (int e)
 
int iso_error_get_code (int e)
 
int iso_report_errfile (char *path, int error_code, int os_errno, int flag)
 
int iso_libjte_forward_msgs (void *libjte_handle, int imgid, int errcode, int flag)
 

Variables

int iso_message_id = 0x100000
 
int abort_threshold = 0x68000000
 
struct libiso_msgs * libiso_msgr = NULL
 
struct iso_xinfo_cloner_associso_xinfo_cloner_list = NULL
 

Macro Definition Documentation

◆ ISO_ERR_CODE

#define ISO_ERR_CODE (   e)    ((e & 0x0000FFFF) | 0x00030000)

Definition at line 71 of file messages.c.

◆ ISO_ERR_PRIO

#define ISO_ERR_PRIO (   e)    ((e & 0x00700000) << 8)

Definition at line 70 of file messages.c.

◆ ISO_ERR_SEV

#define ISO_ERR_SEV (   e)    (e & 0x7F000000)

Definition at line 69 of file messages.c.

◆ MAX_MSG_LEN

#define MAX_MSG_LEN   4096

Definition at line 80 of file messages.c.

Function Documentation

◆ 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_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_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

Definition at line 762 of file messages.c.

References libiso_msgr.

◆ 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_libjte_forward_msgs()

int iso_libjte_forward_msgs ( void *  libjte_handle,
int  imgid,
int  errcode,
int  flag 
)

◆ iso_msg_debug()

◆ iso_msg_is_abort()

int iso_msg_is_abort ( int  errcode)

Inquire whether the given error code triggers the abort threshold

Definition at line 571 of file messages.c.

References abort_threshold, and ISO_ERR_SEV.

Referenced by iso_msg_submit(), and iso_rr_msg_submit().

◆ iso_msg_submit()

int iso_msg_submit ( int  imgid,
int  errcode,
int  causedby,
const char *  fmt,
  ... 
)
Parameters
errcodeThe error code.
causedbyError that was caused the errcode. If this error is a FATAL error, < 0 will be returned in any case. Use 0 if there is no previous cause for the error.
Returns
0 on success, < 0 if function must abort asap.

Definition at line 579 of file messages.c.

References ISO_CANCELED, ISO_ERR_CODE, ISO_ERR_PRIO, ISO_ERR_SEV, iso_error_to_msg(), iso_msg_is_abort(), libiso_msgr, LIBISO_MSGS_PRIO_LOW, LIBISO_MSGS_SEV_FATAL, LIBISO_MSGS_SEV_NOTE, libiso_msgs_submit(), and MAX_MSG_LEN.

Referenced by aaip_encode_acl_text(), boot_nodes_from_iso_path(), bs_read(), create_file_src(), create_image(), create_node(), create_tree(), dir_update_size(), ecma119_image_new(), ecma119_writer_compute_data_blocks(), eltorito_writer_create(), filesrc_block_and_size(), filesrc_writer_pre_compute(), fill_apm_gaps(), get_iso1999_name(), get_name(), get_relaxed_vol_id(), hfsplus_writer_create(), hppa_palo_get_filepar(), hppa_palo_set_path(), image_builder_create_node(), iso_add_dir_src_rec(), iso_alloc_mem(), iso_file_source_new_ifs(), iso_filesrc_write_data(), iso_get_ecma119_name(), iso_get_joliet_name(), iso_get_rr_name(), iso_image_filesystem_new(), iso_image_import(), iso_image_set_boot_image(), iso_interval_reader_new(), iso_interval_reader_read(), iso_ivr_parse(), iso_ivr_parse_interval(), iso_ivr_read_number(), iso_libjte_forward_msgs(), iso_md5_write_tag(), iso_node_zf_by_magic(), iso_patch_eltoritos(), iso_read_mipsel_elf(), iso_rr_msg_submit(), iso_src_check_sb_tree(), iso_truncate_rr_name(), iso_util_eval_md5_tag(), iso_write(), iso_write_gpt(), iso_write_system_area(), issue_collision_warning_summary(), issue_ucs2_warning_summary(), joliet_writer_compute_data_blocks(), make_hppa_palo_sector(), make_isolinux_mbr(), make_node_array(), mangle_single_dir(), patch_boot_info_table(), patch_grub2_boot_image(), read_el_torito_boot_catalog(), read_root_susp_entries(), rrip_calc_len(), rrip_get_susp_fields(), susp_iter_next(), susp_update_CE_sizes(), write_function(), write_section_entry(), and ziso_block_pointer_mgt().

◆ 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_node_xinfo_dispose_cloners()

static int iso_node_xinfo_dispose_cloners ( int  flag)
static

Definition at line 135 of file messages.c.

References iso_xinfo_cloner_list, and iso_xinfo_cloner_assoc::next.

Referenced by iso_finish().

◆ iso_node_xinfo_get_cloner()

int iso_node_xinfo_get_cloner ( iso_node_xinfo_func  proc,
iso_node_xinfo_cloner cloner,
int  flag 
)

Inquire the registered cloner function for a particular class of extended information.

Parameters
procThe key and disposal function which identifies the particular extended information class.
clonerWill return the cloner function which is associated with proc, or NULL.
flagUnused yet, submit 0
Returns
1 success, 0 no cloner registered for proc, < 0 error
Since
1.0.2

Definition at line 119 of file messages.c.

References iso_xinfo_cloner_assoc::cloner, iso_xinfo_cloner_list, iso_xinfo_cloner_assoc::next, and iso_xinfo_cloner_assoc::proc.

Referenced by iso_node_clone_xinfo().

◆ iso_node_xinfo_make_clonable()

int iso_node_xinfo_make_clonable ( iso_node_xinfo_func  proc,
iso_node_xinfo_cloner  cloner,
int  flag 
)

Associate a iso_node_xinfo_cloner to a particular class of extended information in order to make it clonable.

Parameters
procThe key and disposal function which identifies the particular extended information class.
clonerThe cloner function which shall be associated with proc.
flagUnused yet, submit 0
Returns
1 success, < 0 error
Since
1.0.2

Definition at line 96 of file messages.c.

References iso_xinfo_cloner_assoc::cloner, ISO_OUT_OF_MEM, ISO_SUCCESS, iso_xinfo_cloner_list, iso_xinfo_cloner_assoc::next, and iso_xinfo_cloner_assoc::proc.

Referenced by iso_init_with_flag(), and Xorriso_startup_libraries().

◆ iso_obtain_msgs()

int iso_obtain_msgs ( char *  minimum_severity,
int *  error_code,
int *  imgid,
char  msg_text[],
char  severity[] 
)

Obtain the oldest pending libisofs message from the queue which has at least the given minimum_severity. This message and any older message of lower severity will get discarded from the queue and is then lost forever.

Severity may be one of "NEVER", "FATAL", "SORRY", "WARNING", "HINT", "NOTE", "UPDATE", "DEBUG", "ALL". To call with minimum_severity "NEVER" will discard the whole queue.

Parameters
error_codeWill become a unique error code as listed in messages.h
imgidId of the image that was issued the message.
msg_textMust provide at least ISO_MSGS_MESSAGE_LEN bytes.
severityWill become the severity related to the message and should provide at least 80 bytes.
Returns
1 if a matching item was found, 0 if not, <0 for severe errors

Definition at line 664 of file messages.c.

References ISO_MSGS_MESSAGE_LEN, libiso_msgr, libiso_msgs__sev_to_text(), libiso_msgs__text_to_sev(), libiso_msgs_destroy_item(), libiso_msgs_item_get_msg(), libiso_msgs_item_get_origin(), libiso_msgs_item_get_rank(), libiso_msgs_obtain(), and LIBISO_MSGS_PRIO_ZERO.

Referenced by Xorriso__get_di(), and Xorriso_process_msg_queues().

◆ iso_report_errfile()

int iso_report_errfile ( char *  path,
int  error_code,
int  os_errno,
int  flag 
)

◆ iso_set_abort_severity()

int iso_set_abort_severity ( char *  severity)

Set the minimum error severity that causes a libisofs operation to be aborted as soon as possible.

Parameters
severityone of "FAILURE", "MISHAP", "SORRY", "WARNING", "HINT", "NOTE". Severities greater or equal than FAILURE always cause program to abort. Severities under NOTE won't never cause function abort.
Returns
Previous abort priority on success, < 0 on error.
Since
0.6.2

Definition at line 239 of file messages.c.

References abort_threshold, ISO_WRONG_ARG_VALUE, libiso_msgs__text_to_sev(), LIBISO_MSGS_SEV_FAILURE, and LIBISO_MSGS_SEV_NOTE.

Referenced by Xorriso_aquire_drive(), and Xorriso_set_abort_severity().

◆ iso_set_msgs_severities()

int iso_set_msgs_severities ( char *  queue_severity,
char *  print_severity,
char *  print_id 
)

Control queueing and stderr printing of messages from libisofs. Severity may be one of "NEVER", "FATAL", "SORRY", "WARNING", "HINT", "NOTE", "UPDATE", "DEBUG", "ALL".

Parameters
queue_severityGives the minimum limit for messages to be queued. Default: "NEVER". If you queue messages then you must consume them by iso_msgs_obtain().
print_severityDoes the same for messages to be printed directly to stderr.
print_idA text prefix to be printed before the message.
Returns
>0 for success, <=0 for error

Definition at line 630 of file messages.c.

References libiso_msgr, libiso_msgs__text_to_sev(), and libiso_msgs_set_severities().

Referenced by Xorriso_set_image_severities(), and Xorriso_startup_libraries().

◆ iso_sev_to_text()

int iso_sev_to_text ( int  severity_number,
char **  severity_name 
)

Convert a severity number into a severity name

Parameters
severity_numberThe rank number: the higher, the more severe.
severity_nameA name as with iso_msgs_submit(), e.g. "SORRY".
Since
0.6.4

Definition at line 745 of file messages.c.

References libiso_msgs__sev_to_text().

Referenced by isoburn__sev_to_text(), and Xorriso__sev_to_text().

◆ iso_text_to_sev()

int iso_text_to_sev ( char *  severity_name,
int *  severity_number 
)

Convert a severity name into a severity number, which gives the severity rank of the name.

Parameters
severity_nameA name as with iso_msgs_submit(), e.g. "SORRY".
severity_numberThe rank number: the higher, the more severe.
Returns
>0 success, <=0 failure
Since
0.6.4

Definition at line 734 of file messages.c.

References libiso_msgs__text_to_sev(), and LIBISO_MSGS_SEV_FATAL.

Referenced by isoburn__text_to_sev(), and Xorriso__text_to_sev().

Variable Documentation

◆ abort_threshold

int abort_threshold = 0x68000000

Threshold for aborting.

Definition at line 78 of file messages.c.

Referenced by iso_msg_is_abort(), and iso_set_abort_severity().

◆ iso_message_id

int iso_message_id = 0x100000

Take and increment this variable to get a valid identifier for message origin.

Definition at line 73 of file messages.c.

Referenced by iso_image_new().

◆ iso_xinfo_cloner_list

struct iso_xinfo_cloner_assoc* iso_xinfo_cloner_list = NULL

◆ libiso_msgr