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)  

burn_wrap.c File Reference
#include <stdio.h>
#include <ctype.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <time.h>
#include <regex.h>
#include <libburn/libburn.h>
#include <libisofs/libisofs.h>
#include "libisoburn.h"
#include "isoburn.h"
Include dependency graph for burn_wrap.c:

Go to the source code of this file.

Macros

#define Isoburn_libburn_dot_h_too_olD   1
 

Functions

static int isoburn_emulate_toc (struct burn_drive *d, int flag)
 
int isoburn_initialize (char msg[1024], int flag)
 
int isoburn_libisofs_req (int *major, int *minor, int *micro)
 
int isoburn_libburn_req (int *major, int *minor, int *micro)
 
int isoburn_libjte_req (int *major, int *minor, int *micro)
 
int isoburn_set_msgs_submit (int(*msgs_submit)(void *handle, int error_code, char msg_text[], int os_errno, char severity[], int flag), void *submit_handle, int submit_flag, int flag)
 
int isoburn_is_intermediate_dvd_rw (struct burn_drive *d, int flag)
 
static int isoburn_welcome_media (struct isoburn **o, struct burn_drive *d, int flag)
 
int isoburn_drive_aquire (struct burn_drive_info *drive_infos[], char *adr, int flag)
 
int isoburn_drive_scan_and_grab (struct burn_drive_info *drive_infos[], char *adr, int load)
 
int isoburn_drive_grab (struct burn_drive *drive, int load)
 
int isoburn_find_emulator (struct isoburn **pt, struct burn_drive *drive, int flag)
 
enum burn_disc_status isoburn_disc_get_status (struct burn_drive *drive)
 
int isoburn_disc_pretend_full_uncond (struct burn_drive *drive)
 
int isoburn_disc_erasable (struct burn_drive *d)
 
static int isoburn_is_overwritable (struct burn_drive *drive, int flag)
 
void isoburn_disc_erase (struct burn_drive *drive, int fast)
 
off_t isoburn_disc_available_space (struct burn_drive *d, struct burn_write_opts *opts)
 
int isoburn_disc_get_msc1 (struct burn_drive *d, int *start_lba)
 
int isoburn_disc_track_lba_nwa (struct burn_drive *d, struct burn_write_opts *opts, int trackno, int *lba, int *nwa)
 
int isoburn_get_msc2 (struct isoburn *o, struct burn_write_opts *opts, int *msc2, int flag)
 
int isoburn_set_truncate (struct burn_drive *drive, int flag)
 
void isoburn_disc_write (struct burn_write_opts *opts, struct burn_disc *disc)
 
void isoburn_drive_release (struct burn_drive *drive, int eject)
 
void isoburn_finish (void)
 
int isoburn_needs_emulation (struct burn_drive *drive)
 
int isoburn_set_start_byte (struct isoburn *o, off_t value, int flag)
 
int isoburn_get_min_start_byte (struct burn_drive *d, off_t *start_byte, int flag)
 
int isoburn_drive_wrote_well (struct burn_drive *d)
 
int isoburn_get_fifo_status (struct burn_drive *d, int *size, int *free_bytes, char **status_text)
 
int isoburn__sev_to_text (int severity, char **severity_name, int flag)
 
int isoburn__text_to_sev (char *severity_name, int *severity_number, int flag)
 
int isoburn_report_iso_error (int iso_error_code, char msg_text[], int os_errno, char min_severity[], int flag)
 
int isoburn_read_iso_head_parse (unsigned char *data, int *image_blocks, char *info, int flag)
 
int isoburn_read_iso_head (struct burn_drive *d, int lba, int *image_blocks, char *info, int flag)
 
int isoburn_make_toc_entry (struct isoburn *o, int *session_count, int lba, int track_blocks, char *volid, int flag)
 
int isoburn_toc_new_arrays (struct isoburn_toc_disc *o, int session_count, int track_count, int flag)
 
int isoburn_toc_destroy_arrays (struct isoburn_toc_disc *o, int flag)
 
struct isoburn_toc_discisoburn_toc_drive_get_disc (struct burn_drive *d)
 
int isoburn_toc_disc_get_sectors (struct isoburn_toc_disc *disc)
 
struct isoburn_toc_session ** isoburn_toc_disc_get_sessions (struct isoburn_toc_disc *disc, int *num)
 
int isoburn_toc_disc_get_incmpl_sess (struct isoburn_toc_disc *disc)
 
int isoburn_toc_session_get_sectors (struct isoburn_toc_session *s)
 
int isoburn_toc_entry_finish (struct burn_toc_entry *entry, int session_no, int track_no, int flag)
 
void isoburn_toc_session_get_leadout_entry (struct isoburn_toc_session *s, struct burn_toc_entry *entry)
 
struct isoburn_toc_track ** isoburn_toc_session_get_tracks (struct isoburn_toc_session *s, int *num)
 
void isoburn_toc_track_get_entry (struct isoburn_toc_track *t, struct burn_toc_entry *entry)
 
int isoburn_toc_track_get_emul (struct isoburn_toc_track *t, int *start_lba, int *image_blocks, char volid[33], int flag)
 
void isoburn_toc_disc_free (struct isoburn_toc_disc *d)
 
int isoburn_get_track_lba (struct isoburn_toc_track *track, int *lba, int flag)
 
int isoburn_drive_set_msgs_submit (struct burn_drive *d, int(*msgs_submit)(void *handle, int error_code, char msg_text[], int os_errno, char severity[], int flag), void *submit_handle, int submit_flag, int flag)
 
int isoburn_set_msc1 (struct burn_drive *d, int adr_mode, char *adr_value, int flag)
 
int isoburn_get_mount_params (struct burn_drive *d, int adr_mode, char *adr_value, int *lba, int *track, int *session, char volid[33], int flag)
 

Variables

struct isoburnisoburn_list_start
 
int(* libisoburn_default_msgs_submit )(void *handle, int error_code, char msg_text[], int os_errno, char severity[], int flag)
 
void * libisoburn_default_msgs_submit_handle
 
int libisoburn_default_msgs_submit_flag
 

Macro Definition Documentation

◆ Isoburn_libburn_dot_h_too_olD

#define Isoburn_libburn_dot_h_too_olD   1

Function Documentation

◆ isoburn__sev_to_text()

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

Definition at line 1196 of file burn_wrap.c.

References burn_sev_to_text(), and iso_sev_to_text().

Referenced by isoburn_report_iso_error().

◆ isoburn__text_to_sev()

int isoburn__text_to_sev ( char *  severity_name,
int *  severity_number,
int  flag 
)

Definition at line 1209 of file burn_wrap.c.

References burn_text_to_sev(), and iso_text_to_sev().

Referenced by isoburn_report_iso_error().

◆ isoburn_disc_available_space()

off_t isoburn_disc_available_space ( struct burn_drive d,
struct burn_write_opts o 
)

Return the best possible estimation of the currently available capacity of the medium. This might depend on particular write option settings and on drive state. An eventual start address for emulated multi-session will be subtracted from the capacity estimation given by burn_disc_available_space(). Negative results get defaulted to 0. Wrapper for: burn_disc_available_space()

Since
0.1.0
Parameters
dThe drive to query.
oIf not NULL: write parameters to be set on drive before query
Returns
number of most probably available free bytes

Definition at line 771 of file burn_wrap.c.

References burn_disc_available_space(), BURN_DISC_FULL, burn_write_opts_free(), burn_write_opts_new(), burn_write_opts_set_start_byte(), isoburn::emulation_mode, isoburn_disc_get_status(), isoburn_find_emulator(), and isoburn::nwa.

Referenced by Xorriso_sanitize_image_size(), Xorriso_tell_media_space(), and Xorriso_toc().

◆ isoburn_disc_erasable()

int isoburn_disc_erasable ( struct burn_drive d)

Tells whether the medium can be treated by isoburn_disc_erase(). Wrapper for: burn_disc_erasable()

Since
0.1.0
Parameters
dThe drive to inquire.
Returns
0=not erasable , else erasable

Definition at line 682 of file burn_wrap.c.

References burn_disc_erasable(), isoburn::emulation_mode, and isoburn_find_emulator().

Referenced by Xorriso_blank_media().

◆ isoburn_disc_erase()

void isoburn_disc_erase ( struct burn_drive drive,
int  fast 
)

Mark the medium as blank. With multi-session media this will call burn_disc_erase(). With random access media, an eventual ISO-9660 filesystem will get invalidated by altering its start blocks on the medium. In case of success, the medium is in status BURN_DISC_BLANK afterwards. Wrapper for: burn_disc_erase()

Since
0.1.0
Parameters
driveThe drive with the medium to erase.
fast1=fast erase, 0=thorough erase With DVD-RW, fast erase yields media incapable of multi-session.

Definition at line 710 of file burn_wrap.c.

References burn_disc_erase(), burn_disc_free_multi_caps(), BURN_DISC_FULL, burn_disc_get_multi_caps(), burn_disc_get_status(), burn_drive_cancel(), burn_drive_get_drive_role(), burn_random_access_write(), BURN_WRITE_NONE, isoburn::emulation_mode, isoburn::fabricated_disc_status, isoburn_disc_get_status(), isoburn_find_emulator(), isoburn_invalidate_iso(), isoburn_is_overwritable(), Libisoburn_target_head_sizE, isoburn::nwa, burn_multi_caps::start_adr, and isoburn::zero_nwa.

Referenced by Xorriso_blank_media().

◆ isoburn_disc_get_msc1()

int isoburn_disc_get_msc1 ( struct burn_drive d,
int *  start_lba 
)

Obtain the start block number of the most recent session on the medium. In case of random access media this will normally be 0. Successful return is not a guarantee that there is a ISO-9660 image at all. The call will fail, nevertheless,if isoburn_disc_get_status() returns not BURN_DISC_APPENDABLE or BURN_DISC_FULL. Note: The result of this call may be fabricated by a previous call of isoburn_set_msc1() which can override the rule to load the most recent session. Wrapper for: burn_disc_get_msc1()

Since
0.1.0
Parameters
dThe drive to inquire
start_lbaContains on success the start address in 2048 byte blocks
Returns
<=0 error , 1 = success

Definition at line 799 of file burn_wrap.c.

References BURN_DISC_APPENDABLE, BURN_DISC_FULL, burn_disc_get_msc1(), isoburn::emulation_mode, isoburn::fabricated_msc1, isoburn_disc_get_status(), isoburn_find_emulator(), and isoburn_msgs_submit().

Referenced by isoburn_read_image(), Xorriso_aquire_drive(), Xorriso_msinfo(), Xorriso_set_system_area(), and Xorriso_update_iso_lba0().

◆ isoburn_disc_get_status()

enum burn_disc_status isoburn_disc_get_status ( struct burn_drive drive)

Inquire the medium status. Expect the whole spectrum of libburn BURN_DISC_* with multi-session media. Emulated states with random access media are BURN_DISC_BLANK and BURN_DISC_APPENDABLE. Wrapper for: burn_disc_get_status()

Since
0.1.0
Parameters
driveThe drive to inquire.
Returns
The status of the drive, or what kind of disc is in it. Note: BURN_DISC_UNGRABBED indicates wrong API usage

Definition at line 627 of file burn_wrap.c.

References isoburn::drive, isoburn_find_by_drive(), and isoburn_msgs_submit().

Referenced by isoburn_disc_available_space(), isoburn_disc_erase(), isoburn_disc_get_msc1(), isoburn_disc_track_lba_nwa(), isoburn_is_intermediate_dvd_rw(), isoburn_needs_emulation(), isoburn_prepare_disc_aux(), isoburn_read_image(), isoburn_set_msc1(), Xorriso_aquire_drive(), Xorriso_blank_as_needed(), Xorriso_blank_media(), Xorriso_burn_track(), Xorriso_check_media(), Xorriso_format_media(), Xorriso_make_write_options(), Xorriso_msinfo(), Xorriso_obtain_indev_readsize(), Xorriso_sanitize_image_size(), Xorriso_set_system_area(), Xorriso_toc(), and Xorriso_write_session().

◆ isoburn_disc_pretend_full_uncond()

int isoburn_disc_pretend_full_uncond ( struct burn_drive drive)

Sets the medium status to BURN_DISC_FULL unconditionally.

Since
1.3.8
Parameters
driveThe drive with the medium to be handled as if it was closed. @

Definition at line 669 of file burn_wrap.c.

References BURN_DISC_FULL, burn_disc_pretend_full_uncond(), isoburn::drive, isoburn::fabricated_disc_status, and isoburn_find_emulator().

Referenced by Xorriso_pretend_full_disc().

◆ isoburn_disc_track_lba_nwa()

int isoburn_disc_track_lba_nwa ( struct burn_drive d,
struct burn_write_opts o,
int  trackno,
int *  lba,
int *  nwa 
)

Use this with trackno==0 to obtain the predicted start block number of the new session. The interesting number is returned in parameter nwa. Wrapper for: burn_disc_track_lba_nwa()

Since
0.1.0
Parameters
dThe drive to inquire
oIf not NULL: write parameters to be set on drive before query
tracknoSubmit 0.
lbareturn value: start lba
nwareturn value: Next Writeable Address
Returns
1=nwa is valid , 0=nwa is not valid , -1=error

Definition at line 831 of file burn_wrap.c.

References BURN_DISC_BLANK, burn_disc_track_lba_nwa(), burn_drive_get_drive_role(), isoburn::emulation_mode, isoburn_disc_get_status(), isoburn_find_emulator(), and isoburn::nwa.

Referenced by isoburn_get_msc2(), isoburn_make_iso_write_opts(), Xorriso_burn_track(), Xorriso_msinfo(), Xorriso_sanitize_image_size(), and Xorriso_toc().

◆ isoburn_disc_write()

void isoburn_disc_write ( struct burn_write_opts o,
struct burn_disc disc 
)

◆ isoburn_drive_aquire()

int isoburn_drive_aquire ( struct burn_drive_info drive_infos[],
char *  adr,
int  flag 
)
Parameters
flagbit0= load bit1= regard overwritable media as blank bit2= if the drive is a regular disk file: truncate it to the write start address bit3= if the drive reports a -ROM profile then try to read table of content by scanning for ISO image headers. (depending on media type and drive state this might help or it might make the resulting toc even worse) bit4= do not emulate TOC on overwritable media bit5= ignore ACL from external filesystems bit6= ignore POSIX Extended Attributes from external filesystems bit7= pretend -ROM profile and scan for table of content bit8= re-assess (*drive_infos)[0] rather than acquiring adr bit9= when scanning for ISO 9660 sessions on overwritable media: Do not demand a valid superblock at LBA 0 and scan until end of medium. bit10= if not bit6: accept all xattr namespaces from external filesystems, not only "user.".

Definition at line 545 of file burn_wrap.c.

References BURN_DRIVE_ADR_LEN, burn_drive_convert_fs_adr(), burn_drive_re_assess(), burn_drive_release(), burn_drive_scan_and_grab(), isoburn::drive, isoburn_destroy(), isoburn_find_emulator(), isoburn_welcome_media(), and isoburn::truncate.

Referenced by isoburn_drive_scan_and_grab(), Xorriso_aquire_drive(), and Xorriso_mount().

◆ isoburn_drive_grab()

int isoburn_drive_grab ( struct burn_drive drive,
int  load 
)

Acquire a drive from the burn_drive_info[] array which was obtained by a previous call of burn_drive_scan(). Wrapper for: burn_drive_grab()

Since
0.1.0
Parameters
driveThe drive to grab. E.g. drive_infos[1].drive . Call isoburn_drive_release(drive) when it it no longer needed.
load1 attempt to load the disc tray. 0 no attempt, rather failure.
Returns
1 success, <=0 failure

Definition at line 604 of file burn_wrap.c.

References burn_drive_grab(), isoburn::drive, isoburn_destroy(), and isoburn_welcome_media().

◆ isoburn_drive_release()

void isoburn_drive_release ( struct burn_drive drive,
int  eject 
)

Release an acquired drive. Wrapper for: burn_drive_release()

Since
0.1.0
Parameters
driveThe drive to be released
eject1= eject medium from drive , 0= do not eject

Definition at line 1039 of file burn_wrap.c.

References burn_drive_release(), isoburn::drive, isoburn_destroy(), and isoburn_find_emulator().

Referenced by Xorriso_give_up_drive(), and Xorriso_mount().

◆ isoburn_drive_scan_and_grab()

int isoburn_drive_scan_and_grab ( struct burn_drive_info drive_infos[],
char *  adr,
int  load 
)

Acquire a target drive by its filesystem path or libburn persistent address. Wrapper for: burn_drive_scan_and_grab()

Since
0.1.0
Parameters
drive_infosOn success returns a one element array with the drive (cdrom/burner). Thus use with driveno 0 only. On failure the array has no valid elements at all. The returned array should be freed via burn_drive_info_free() when the drive is no longer needed. But before this is done one has to call isoburn_drive_release(drive_infos[0].drive).
adrThe persistent address of the desired drive or the path to a file object.
load1 attempt to load the disc tray. 0 no attempt,rather failure.
Returns
1 = success , 0 = drive not found , <0 = other error

Definition at line 594 of file burn_wrap.c.

References isoburn_drive_aquire().

◆ isoburn_drive_set_msgs_submit()

int isoburn_drive_set_msgs_submit ( struct burn_drive d,
int(*)(void *handle, int error_code, char msg_text[], int os_errno, char severity[], int flag)  msgs_submit,
void *  submit_handle,
int  submit_flag,
int  flag 
)

Attach to a drive an application provided method for immediate delivery of messages. If no method is set or if the method is set to NULL then libisoburn delivers messages of the drive through the global msgs_submit() method set by isoburn_set_msgs_submiti() or by the message queue of libburn.

Since
0.2.0
Parameters
dThe drive to which this function, handle and flag shall apply
msgs_submitThe function call which implements the method
submit_handleHandle to be used as first argument of msgs_submit
submit_flagFlag to be used as last argument of msgs_submit
flagUnused yet, submit 0

Definition at line 1915 of file burn_wrap.c.

References isoburn_find_emulator(), isoburn::msgs_submit, isoburn::msgs_submit_flag, and isoburn::msgs_submit_handle.

◆ isoburn_drive_wrote_well()

int isoburn_drive_wrote_well ( struct burn_drive d)

Inquire whether the most recent write run was successful. Wrapper for: burn_drive_wrote_well()

Since
0.1.0
Parameters
dThe drive to inquire
Returns
1=burn seems to have went well, 0=burn failed

Definition at line 1132 of file burn_wrap.c.

References burn_drive_wrote_well(), isoburn_find_emulator(), and isoburn::wrote_well.

Referenced by Xorriso_write_session().

◆ isoburn_emulate_toc()

◆ isoburn_find_emulator()

◆ isoburn_finish()

void isoburn_finish ( void  )

Shutdown all three libraries. Wrapper for : iso_finish() and burn_finish().

Since
0.1.0

Definition at line 1054 of file burn_wrap.c.

References burn_finish(), iso_finish(), isoburn_destroy_all(), and isoburn_list_start.

Referenced by Xorriso_detach_libraries().

◆ isoburn_get_fifo_status()

int isoburn_get_fifo_status ( struct burn_drive d,
int *  size,
int *  free_bytes,
char **  status_text 
)

Inquire state and fill parameters of the fifo which is attached to the emerging track. This should be done in the pacifier loop while isoburn_disc_write() or burn_disc_write() are active. This works only with drives obtained by isoburn_drive_scan_and_grab() or isoburn_drive_grab(). If isoburn_prepare_new_image() was used, then parameter out_drive must have announced the track output drive. Hint: If only burn_write_opts and not burn_drive is known, then the drive can be obtained by burn_write_opts_get_drive().

Since
0.1.0
Parameters
dThe drive to which the track with the fifo gets burned.
sizeThe total size of the fifo
free_bytesThe current free capacity of the fifo
status_textReturns a pointer to a constant text, see below
Returns
<0 reply invalid, >=0 fifo status code: bit0+1=input status, bit2=consumption status, i.e: 0="standby" : data processing not started yet 1="active" : input and consumption are active 2="ending" : input has ended without error 3="failing" : input had error and ended, 4="unused" : ( consumption has ended before processing start ) 5="abandoned" : consumption has ended prematurely 6="ended" : consumption has ended without input error 7="aborted" : consumption has ended after input error

Definition at line 1148 of file burn_wrap.c.

References iso_ring_buffer_get_status(), isoburn::iso_source, and isoburn_find_emulator().

Referenced by Xorriso_pacifier_loop().

◆ isoburn_get_min_start_byte()

int isoburn_get_min_start_byte ( struct burn_drive d,
off_t *  start_byte,
int  flag 
)

Obtain the size which was attributed to an emulated appendable on actually overwritable media. This value is supposed to be <= 2048 * nwa as of isoburn_disc_track_lba_nwa().

Since
0.1.0
Parameters
dThe drive holding the medium.
start_byteThe reply value counted in bytes, not in sectors.
flagUnused yet. Submit 0.
Returns
1=stat_byte is valid, 0=not an emulated appendable, -1=error

Definition at line 1114 of file burn_wrap.c.

References isoburn_find_emulator(), and isoburn::min_start_byte.

Referenced by Xorriso_toc().

◆ isoburn_get_mount_params()

int isoburn_get_mount_params ( struct burn_drive d,
int  adr_mode,
char *  adr_value,
int *  lba,
int *  track,
int *  session,
char  volid[33],
int  flag 
)

Try to convert the given entity address into various entity addresses which would describe it. Note: Sessions and tracks are counted beginning with 1, not with 0.

Since
0.3.2
Parameters
dThe drive where msc1 is to be set
adr_modeDetermines how to interpret the input adr_value. If adr_value shall represent a number then decimal ASCII digits are expected. 0= start lba of last session in TOC, ignore adr_value 1= start lba of session number given by adr_value 2= start lba of track given number by adr_value 3= adr_value itself is the lba to be used 4= start lba of last session with volume id given by adr_value
adr_valueA string describing the value to be eventually used.
lbareturns the block address of the entity, -1 means invalid
trackreturns the track number of the entity, -1 means invalid
sessionreturns the session number of the entity, -1 means invalid
volidreturns the volume id of the entity if it is a ISO session
flagBitfield for control purposes. bit2= with adr_mode 4: use adr_value as regular expression
Returns
<=0 error , 1 ok, ISO session, 2 ok, not an ISO session

Definition at line 2105 of file burn_wrap.c.

References isoburn_toc_disc::disc, isoburn::fabricated_msc1, isoburn_find_emulator(), isoburn_get_track_lba(), isoburn_read_iso_head(), isoburn_set_msc1(), isoburn_toc_disc_free(), isoburn_toc_disc_get_sessions(), isoburn_toc_drive_get_disc(), isoburn_toc_session_get_tracks(), and isoburn_toc_track::track.

Referenced by Xorriso_aquire_drive(), Xorriso_mount(), and Xorriso_truncate_overwritable().

◆ isoburn_get_msc2()

int isoburn_get_msc2 ( struct isoburn o,
struct burn_write_opts opts,
int *  msc2,
int  flag 
)

Obtains the image address offset to be used with image generation. This is either the (emulated) drive nwa or a value set by isoburn_prepare_blind_grow(). In any case this is the address to tell to iso_write_opts_set_ms_block().

Parameters
oThe isoburn object to be inquired
optsIf not NULL: write parameters to be set on drive before query
msc2The value to be used with iso_write_opts_set_ms_block()
flagunused yet
Returns
<=0 is failure , >0 success

Definition at line 865 of file burn_wrap.c.

References isoburn::drive, isoburn::fabricated_msc2, isoburn_disc_track_lba_nwa(), and isoburn::nwa.

Referenced by isoburn_make_iso_write_opts().

◆ isoburn_get_track_lba()

◆ isoburn_initialize()

int isoburn_initialize ( char  msg[1024],
int  flag 
)

Overview

libisoburn is a frontend for libraries libburn and libisofs which enables creation and expansion of ISO-9660 filesystems on all CD/DVD/BD media supported by libburn. This includes media like DVD+RW, which do not support multi-session management on media level and even plain disk files or block devices.

The price for that is thorough specialization on data files in ISO-9660 filesystem images. So libisoburn is not suitable for audio (CD-DA) or any other CD layout which does not entirely consist of ISO-9660 sessions.

Note that there is a higher level of API: xorriso.h. One should not mix it with the API calls of libisoburn.h, libisofs.h, and libburn.h.

                      Connector functions

libisofs and libburn do not depend on each other but share some interfaces by which they can cooperate. libisoburn establishes the connection between both modules by creating the necessary interface objects and attaching them to the right places.

                      Wrapper functions 

The principle of this frontend is that you may use any call of libisofs or libburn unless it has a isoburn_*() wrapper listed in the following function documentation.

E.g. call isoburn_initialize() rather than iso_init(); burn_initialize(); and call isoburn_drive_scan_and_grab() rather than burn_drive_scan_and_grab(). But you may call burn_disc_get_profile() directly if you want to display the media type.

The wrappers will transparently provide the necessary emulations which are appropriate for particular target drives and media states. To learn about them you have to read both API descriptions: the one of the wrapper and the one of the underlying libburn or libisofs call.

Macros BURN_* and functions burn_*() are documented in <libburn/libburn.h> Macros ISO_* and functions iso_*() are documented in <libisofs/libisofs.h>

                         Usage model

There may be an input drive and an output drive. Either of them may be missing with the consequence that no reading or no writing is possible. Both drive roles can be fulfilled by the same drive.

Input can be a random access readable libburn drive: optical media, regular files, block devices. Output can be any writeable libburn drive: writeable optical media in burner, writeable file objects (no directories).

libburn demands rw-permissions to drive device file or file object.

If the input drive provides a suitable ISO RockRidge image, then its tree may be loaded into memory and can then be manipulated by libisofs API calls. The loading is done by isoburn_read_image() under control of struct isoburn_read_opts which the application obtains from libisoburn and manipulates by the family of isoburn_ropt_set_*() functions.

Writing of result images is controlled by libisofs related parameters in a struct isoburn_imgen_opts which the application obtains from libisoburn and manipulates by the family of isoburn_igopt_set_*() functions.

All multi-session aspects are handled by libisoburn according to these settings. The application does not have to analyze media state and write job parameters. It rather states its desires which libisoburn tries to fulfill, or else will refuse to start the write run.

          Setup for Growing, Modifying or Blind Growing

The connector function family offers alternative API calls for performing the setup for several alternative image generation strategies.

Growing: If input and output drive are the same, then isoburn_prepare_disc() is to be used. It will lead to an add-on session on appendable or overwritable media with existing ISO image. With blank media it will produce a first session.

Modifying: If the output drive is not the input drive, and if it bears blank media or overwritable without a valid ISO image, then one may produce a consolidated image with old and new data. This will copy file data from an eventual input drive with valid image, add any newly introduced data from the local filesystem, and produce a first session on output media. To prepare for such an image generation run, use isoburn_prepare_new_image().

Blind Growing: This method reads the old image from one drive and writes the add-on session to a different drive. That output drive is nevertheless supposed to finally lead to the same medium from where the session was loaded. Usually it will be stdio:/dev/fd/1 (i.e. stdout) being piped into some burn program like with this classic gesture: mkisofs -M $dev -C $msc1,$nwa | cdrecord -waiti dev=$dev Blind growing is prepared by the call isoburn_prepare_blind_grow(). The input drive should be released immediately after this call in order to allow the consumer of the output stream to access that drive for writing.

After either of these setups, some peripheral libburn drive parameter settings like burn_write_opts_set_simulate(), burn_write_opts_set_multi(), burn_drive_set_speed(), burn_write_opts_set_underrun_proof() should be made. Do not set the write mode. It will be chosen by libisoburn so it matches job and media state.

                       Writing the image

Then one may start image generation and write threads by isoburn_disc_write(). Progress may be watched at the output drive by burn_drive_get_status() and isoburn_get_fifo_status().

At some time, the output drive will be BURN_DRIVE_IDLE indicating that writing has ended. One should inquire isoburn_drive_wrote_well() to learn about overall success.

Finally one must call isoburn_activate_session() which will complete any eventual multi-session emulation.

                     Application Constraints

Applications shall include libisofs/libisofs.h , libburn/libburn.h and this file itself: libisoburn/libisoburn.h . They shall link with -lisofs -lburn -lisoburn or with the .o files emerging from building those libraries from their sources.

Applications must use 64 bit off_t. E.g. on 32-bit GNU/Linux by defining #define _LARGEFILE_SOURCE #define _FILE_OFFSET_BITS 64 The minimum requirement is to interface with the library by 64 bit signed integers where libisofs.h or libisoburn.h prescribe off_t. Failure to do so may result in surprising malfunction or memory faults.

Application files which include libisofs/libisofs.h or libisoburn/libisoburn.h must provide definitions for uint32_t and uint8_t. This can be achieved either:

  • by using autotools which will define HAVE_STDINT_H or HAVE_INTTYPES_H according to its ./configure tests,
  • or by defining the macros HAVE_STDINT_H or HAVE_INTTYPES_H according to the local situation,
  • or by appropriately defining uint32_t and uint8_t by other means, e.g. by including inttypes.h before including libisofs.h and libisoburn.h Initialize libisoburn, libisofs and libburn. Wrapper for : iso_init() and burn_initialize()
    Since
    0.1.0
    Parameters
    msgA character array for eventual messages (e.g. with errors)
    flagBitfield for control purposes (unused yet, submit 0)
    Returns
    1 indicates success, 0 is failure

Definition at line 74 of file burn_wrap.c.

References burn_header_version_major, burn_header_version_micro, burn_header_version_minor, burn_initialize(), burn_version(), iso_init(), iso_lib_header_version_major, iso_lib_header_version_micro, iso_lib_header_version_minor, iso_lib_is_compatible(), iso_lib_version(), isoburn_destroy_all(), isoburn_libisofs_req_major, isoburn_libisofs_req_micro, isoburn_libisofs_req_minor, isoburn_list_start, isoburn_version(), libjte__is_compatible(), libjte__version(), LIBJTE_VERSION_MAJOR, LIBJTE_VERSION_MICRO, and LIBJTE_VERSION_MINOR.

Referenced by Xorriso_startup_libraries().

◆ isoburn_is_intermediate_dvd_rw()

int isoburn_is_intermediate_dvd_rw ( struct burn_drive d,
int  flag 
)

◆ isoburn_is_overwritable()

static int isoburn_is_overwritable ( struct burn_drive drive,
int  flag 
)
static

Definition at line 695 of file burn_wrap.c.

References burn_disc_get_profile(), and isoburn::drive.

Referenced by isoburn_disc_erase().

◆ isoburn_libburn_req()

int isoburn_libburn_req ( int *  major,
int *  minor,
int *  micro 
)

The minimum version of libburn to be used with this version of libisoburn at runtime. This is checked already in isoburn_initialize() which will refuse on outdated version. So this call is for information purposes after successful startup only.

Since
0.1.0
Parameters
majorisoburn_libburn_req_major as seen at build time
minoras seen at build time
microas seen at build time
Returns
1 success, <=0 might in future become an error indication

Definition at line 280 of file burn_wrap.c.

References burn_header_version_major, burn_header_version_micro, and burn_header_version_minor.

Referenced by Xorriso_report_lib_versions().

◆ isoburn_libisofs_req()

int isoburn_libisofs_req ( int *  major,
int *  minor,
int *  micro 
)

The minimum compile time requirements of libisoburn towards libjte are the same as of a suitable libisofs towards libjte. So use these macros from libisofs.h : iso_libjte_req_major iso_libjte_req_minor iso_libjte_req_micro

Since
0.6.4 The minimum version of libisofs to be used with this version of libisoburn at runtime. This is checked already in isoburn_initialize() which will refuse on outdated version. So this call is for information purposes after successful startup only.
0.1.0
Parameters
majorisoburn_libisofs_req_major as seen at build time
minoras seen at build time
microas seen at build time
Returns
1 success, <=0 might in future become an error indication

Definition at line 270 of file burn_wrap.c.

References iso_lib_header_version_major, iso_lib_header_version_micro, and iso_lib_header_version_minor.

Referenced by Xorriso_report_lib_versions().

◆ isoburn_libjte_req()

int isoburn_libjte_req ( int *  major,
int *  minor,
int *  micro 
)

The minimum version of libjte to be used with this version of libisoburn at runtime. The use of libjte is optional and depends on configure tests. It can be prevented by ./configure option –disable-libjte . This is checked already in isoburn_initialize() which will refuse on outdated version. So this call is for information purposes after successful startup only.

Since
0.6.4

Definition at line 290 of file burn_wrap.c.

References LIBJTE_VERSION_MAJOR, LIBJTE_VERSION_MICRO, and LIBJTE_VERSION_MINOR.

Referenced by Xorriso_report_lib_versions().

◆ isoburn_make_toc_entry()

int isoburn_make_toc_entry ( struct isoburn o,
int *  session_count,
int  lba,
int  track_blocks,
char *  volid,
int  flag 
)

◆ isoburn_needs_emulation()

int isoburn_needs_emulation ( struct burn_drive d)

Inquire whether the medium needs emulation or would be suitable for generic multi-session via libburn.

Since
0.1.0
Parameters
dThe drive to inquire
Returns
0 is generic multi-session 1 is emulated multi-session -1 is not suitable for isoburn

Definition at line 1062 of file burn_wrap.c.

References BURN_DISC_APPENDABLE, BURN_DISC_BLANK, isoburn::drive, isoburn::emulation_mode, isoburn_disc_get_status(), and isoburn_find_emulator().

Referenced by Xorriso_burn_track(), and Xorriso_sanitize_image_size().

◆ isoburn_read_iso_head()

int isoburn_read_iso_head ( struct burn_drive d,
int  lba,
int *  image_blocks,
char *  info,
int  flag 
)

Try whether the data at the given address look like a ISO 9660 image header and obtain its alleged size. Depending on the info mode one other string of text information can be retrieved too.

Since
0.1.6
Parameters
dThe drive with the medium to inspect
lbaThe block number from where to read
image_blocksReturns the number of 2048 bytes blocks in the session
infoCaller provided memory, enough to take possible info reply
flagbit0-7: info return mode 0= do not return anything in info (do not even touch it) 1= copy volume id to info (info needs 33 bytes) 2=
Since
0.2.2 : copy 64 kB header to info (needs 65536 bytes) bit13=
0.2.2: Do not read head from medium but use first 64 kB from info. In this case it is permissible to submit d == NULL. bit14= check both half buffers (not only second) return 2 if found in first block bit15= return -1 on read error
Returns
>0 seems to be a valid ISO image, 0 format not recognized, <0 error

Definition at line 1301 of file burn_wrap.c.

References burn_drive_get_drive_role(), burn_get_read_capacity(), burn_read_data(), isoburn_find_emulator(), isoburn_read_iso_head_parse(), and isoburn::media_read_error.

Referenced by isoburn_emulate_toc(), isoburn_get_mount_params(), isoburn_read_image(), isoburn_set_msc1(), Xorriso_adjust_relocated_sb(), Xorriso_assert_volid(), Xorriso_burn_track(), Xorriso_check_media(), Xorriso_set_system_area(), Xorriso_toc(), Xorriso_truncate_overwritable(), and Xorriso_update_iso_lba0().

◆ isoburn_read_iso_head_parse()

int isoburn_read_iso_head_parse ( unsigned char *  data,
int *  image_blocks,
char *  info,
int  flag 
)

Definition at line 1253 of file burn_wrap.c.

References isoburn_msgs_submit().

Referenced by isoburn_read_iso_head().

◆ isoburn_report_iso_error()

int isoburn_report_iso_error ( int  iso_error_code,
char  msg_text[],
int  os_errno,
char  min_severity[],
int  flag 
)

◆ isoburn_set_msc1()

int isoburn_set_msc1 ( struct burn_drive d,
int  adr_mode,
char *  adr_value,
int  flag 
)

Set up isoburn_disc_get_msc1() to return a fabricated value. This makes only sense between acquiring the drive and reading the image. After isoburn_read_image() it will confuse the coordination of libisoburn and libisofs. Note: Sessions and tracks are counted beginning with 1, not with 0.

Since
0.1.6
Parameters
dThe drive where msc1 is to be set
adr_modeDetermines how to interpret adr_value and to set msc1. If adr_value shall represent a number then decimal ASCII digits are expected. 0= start lba of last session in TOC, ignore adr_value 1= start lba of session number given by adr_value 2= start lba of track number given by adr_value 3= adr_value itself is the lba to be used 4= start lba of last session with volume id given by adr_value
adr_valueA string describing the value to be eventually used.
flagBitfield for control purposes. bit0=
Since
0.2.2 with adr_mode 3: adr_value might be 16 blocks too high (e.g. -C stemming from growisofs). Probe for ISO head at adr_value-16 and eventually adjust setting. bit1= insist in seeing a disc object with at least one session bit2= with adr_mode 4: use adr_value as regular expression

Definition at line 1938 of file burn_wrap.c.

References BURN_DISC_APPENDABLE, BURN_DISC_FULL, isoburn_toc_disc::disc, isoburn::fabricated_msc1, isoburn_disc_get_status(), isoburn_find_emulator(), isoburn_get_track_lba(), isoburn_msgs_submit(), isoburn_read_iso_head(), isoburn_toc_disc_free(), isoburn_toc_disc_get_sessions(), isoburn_toc_drive_get_disc(), isoburn_toc_session_get_tracks(), and isoburn_toc_track_get_emul().

Referenced by isoburn_get_mount_params(), and Xorriso_aquire_drive().

◆ isoburn_set_msgs_submit()

int isoburn_set_msgs_submit ( int(*)(void *handle, int error_code, char msg_text[], int os_errno, char severity[], int flag)  msgs_submit,
void *  submit_handle,
int  submit_flag,
int  flag 
)

Note: Above version numbers are also recorded in configure.ac because libtool wants them as parameters at build time. For the library compatibility check, ISOBURN_*_VERSION in configure.ac are not decisive. Only the three numbers here do matter. Usage discussion:

Some developers of the libburnia project have differing opinions how to ensure the compatibility of libraries and applications.

It is about whether to use at compile time and at runtime the version numbers isoburn_header_version_* provided here. Thomas Schmitt advises to use them. Vreixo Formoso advises to use other means.

At compile time:

Vreixo Formoso advises to leave proper version matching to properly programmed checks in the the application's build system, which will eventually refuse compilation.

Thomas Schmitt advises to use the macros defined here for comparison with the application's requirements of library revisions and to eventually break compilation.

Both advises are combinable. I.e. be master of your build system and have #if checks in the source code of your application, nevertheless.

At runtime (via *_is_compatible()):

Vreixo Formoso advises to compare the application's requirements of library revisions with the runtime library. This is to allow runtime libraries which are young enough for the application but too old for the lib*.h files seen at compile time.

Thomas Schmitt advises to compare the header revisions defined here with the runtime library. This is to enforce a strictly monotonous chain of revisions from app to header to library, at the cost of excluding some older libraries.

These two advises are mutually exclusive.


For an implementation of the Thomas Schmitt approach, see libisoburn/burn_wrap.c : isoburn_initialize() This connects libisoburn as "application" with libisofs as "library".

The compatible part of Vreixo Formoso's approach is implemented in configure.ac LIBBURN_REQUIRED, LIBISOFS_REQUIRED. In isoburn_initialize() it would rather test by iso_lib_is_compatible(isoburn_libisofs_req_major,... than by iso_lib_is_compatible(iso_lib_header_version_major,... and would leave out the ugly compile time traps. Announce to the library an application provided method for immediate delivery of messages. It is used when no drive is affected directly or if the drive has no own msgs_submit() method attached by isoburn_drive_set_msgs_submit. If no method is preset or if the method is set to NULL then libisoburn delivers its messages through the message queue of libburn.

Parameters
msgs_submitThe function call which implements the method
submit_handleHandle to be used as first argument of msgs_submit
submit_flagFlag to be used as last argument of msgs_submit
flagUnused yet, submit 0
Since
0.2.0

Definition at line 303 of file burn_wrap.c.

References libisoburn_default_msgs_submit, libisoburn_default_msgs_submit_flag, libisoburn_default_msgs_submit_handle, and isoburn::msgs_submit.

Referenced by Xorriso_startup_libraries().

◆ isoburn_set_start_byte()

int isoburn_set_start_byte ( struct isoburn o,
off_t  value,
int  flag 
)

Set the start address for an emulated add-on session. The value will be rounded up to the alignment necessary for the medium. The aligned value will be divided by 2048 and then put into o->nwa .

Parameters
oThe isoburn object to be programmed.
valueThe start address in bytes
flagunused yet
Returns
<=0 is failure , >0 success

Definition at line 1081 of file burn_wrap.c.

References burn_disc_free_multi_caps(), burn_disc_get_multi_caps(), BURN_WRITE_NONE, isoburn::drive, isoburn_msgs_submit(), Libisoburn_nwa_alignemenT, isoburn::min_start_byte, isoburn::nwa, burn_multi_caps::start_adr, burn_multi_caps::start_alignment, and isoburn::zero_nwa.

Referenced by isoburn_start_emulation().

◆ isoburn_set_truncate()

int isoburn_set_truncate ( struct burn_drive drive,
int  flag 
)

Override the truncation setting that was made with flag bit2 during the call of isoburn_drive_aquire. This applies only to stdio pseudo drives.

Since
0.1.6
Parameters
driveThe drive which was acquired and shall be used for writing.
flagBitfield controlling the setting: bit0= truncate (else do not truncate) bit1= do not warn if call is inappropriate to drive bit2= only set if truncation is currently enabled do not warn if call is inappropriate to drive
Returns
1 success, 0 inappropriate drive, <0 severe error

Definition at line 885 of file burn_wrap.c.

References isoburn::drive, isoburn_find_emulator(), isoburn_msgs_submit(), and isoburn::truncate.

Referenced by Xorriso_write_session().

◆ isoburn_toc_destroy_arrays()

int isoburn_toc_destroy_arrays ( struct isoburn_toc_disc o,
int  flag 
)

◆ isoburn_toc_disc_free()

void isoburn_toc_disc_free ( struct isoburn_toc_disc disc)

Release the memory associated with a master handle of a medium. The handle is invalid afterwards and may not be used any more. Wrapper for: burn_disc_free()

Since
0.1.6
Parameters
discThe master handle of the medium

Definition at line 1893 of file burn_wrap.c.

References burn_disc_free(), isoburn_toc_disc::disc, and isoburn_toc_destroy_arrays().

Referenced by isoburn_get_mount_params(), isoburn_set_msc1(), isoburn_welcome_media(), Xorriso_check_media(), and Xorriso_toc().

◆ isoburn_toc_disc_get_incmpl_sess()

int isoburn_toc_disc_get_incmpl_sess ( struct isoburn_toc_disc disc)

Obtain the number of incomplete sessions which are recorded in the result array of isoburn_toc_disc_get_sessions() after the complete sessions. See above.

Since
1.2.8
Parameters
discThe master handle of the medium
Returns
the number of incomplete sessions

Definition at line 1782 of file burn_wrap.c.

References isoburn_toc_disc::incomplete_session_count.

Referenced by Xorriso_toc().

◆ isoburn_toc_disc_get_sectors()

int isoburn_toc_disc_get_sectors ( struct isoburn_toc_disc disc)

Tell the number of 2048 byte blocks covered by the table of content. This number includes the eventual gaps between sessions and tracks. So this call is not really a wrapper for burn_disc_get_sectors().

Since
0.1.6
Parameters
discThe master handle of the medium
Returns
Number of blocks, <=0 indicates unknown or unreadable state

Definition at line 1728 of file burn_wrap.c.

References burn_disc_get_incomplete_sessions(), burn_disc_get_sessions(), burn_session_get_tracks(), burn_track_get_entry(), isoburn_toc_disc::disc, burn_toc_entry::extensions_valid, isoburn_toc_entry::next, burn_toc_entry::start_lba, isoburn_toc_entry::start_lba, isoburn_toc_disc::toc, burn_toc_entry::track_blocks, and isoburn_toc_entry::track_blocks.

Referenced by Xorriso_check_media().

◆ isoburn_toc_disc_get_sessions()

struct isoburn_toc_session** isoburn_toc_disc_get_sessions ( struct isoburn_toc_disc disc,
int *  num 
)

Get the array of session handles and the number of complete sessions from the table of content. The result array contains *num + isoburn_toc_disc_get_incmpl_sess() elements. All above *num are incomplete sessions. Typically there is at most one incomplete session with no track. Wrapper for: burn_disc_get_sessions()

Since
0.1.6
Parameters
discThe master handle of the medium
numreturns the number of sessions in the array
Returns
the address of the array of session handles

Definition at line 1774 of file burn_wrap.c.

References isoburn_toc_disc::session_count, and isoburn_toc_disc::session_pointers.

Referenced by isoburn_get_mount_params(), isoburn_set_msc1(), isoburn_welcome_media(), Xorriso_check_media(), and Xorriso_toc().

◆ isoburn_toc_drive_get_disc()

◆ isoburn_toc_entry_finish()

◆ isoburn_toc_new_arrays()

◆ isoburn_toc_session_get_leadout_entry()

void isoburn_toc_session_get_leadout_entry ( struct isoburn_toc_session s,
struct burn_toc_entry entry 
)

Obtain a copy of the entry which describes the end of a particular session. Wrapper for: burn_session_get_leadout_entry()

Since
0.1.6
Parameters
sThe session handle
entryA pointer to memory provided by the caller. It will be filled with info according to struct burn_toc_entry as defined in libburn.h

Definition at line 1831 of file burn_wrap.c.

References burn_session_get_leadout_entry(), isoburn_toc_entry_finish(), isoburn_toc_entry::session, isoburn_toc_session::session, burn_toc_entry::start_lba, isoburn_toc_entry::start_lba, isoburn_toc_track::toc_entry, isoburn_toc_session::toc_entry, burn_toc_entry::track_blocks, isoburn_toc_entry::track_blocks, isoburn_toc_session::track_count, isoburn_toc_entry::track_no, and isoburn_toc_session::track_pointers.

Referenced by Xorriso_toc().

◆ isoburn_toc_session_get_sectors()

int isoburn_toc_session_get_sectors ( struct isoburn_toc_session s)

Tell the number of 2048 byte blocks covered by a particular session. Wrapper for: burn_session_get_sectors()

Since
0.1.6
Parameters
sThe session handle
Returns
number of blocks, <=0 indicates unknown or unreadable state

Definition at line 1788 of file burn_wrap.c.

References burn_session_get_sectors(), isoburn_toc_entry::next, isoburn_toc_session::session, isoburn_toc_session::toc_entry, isoburn_toc_entry::track_blocks, and isoburn_toc_session::track_count.

◆ isoburn_toc_session_get_tracks()

struct isoburn_toc_track** isoburn_toc_session_get_tracks ( struct isoburn_toc_session s,
int *  num 
)

Get the array of track handles from a particular session. Wrapper for: burn_session_get_tracks()

Since
0.1.6
Parameters
sThe session handle
numreturns the number of tracks in the array
Returns
the address of the array of track handles, NULL if no tracks are registered with session s

Definition at line 1852 of file burn_wrap.c.

References isoburn_toc_session::track_count, and isoburn_toc_session::track_pointers.

Referenced by isoburn_get_mount_params(), isoburn_set_msc1(), isoburn_welcome_media(), Xorriso_check_media(), and Xorriso_toc().

◆ isoburn_toc_track_get_emul()

int isoburn_toc_track_get_emul ( struct isoburn_toc_track t,
int *  start_lba,
int *  image_blocks,
char  volid[33],
int  flag 
)

Obtain eventual ISO image parameters of an emulated track. This info was gained with much effort and thus gets cached in the track object. If this call returns 1 then one can save a call of isoburn_read_iso_head() with return mode 1 which could cause an expensive read operation.

Since
0.4.0
Parameters
tThe track handle
start_lbaReturns the start address of the ISO session
image_blocksReturns the number of 2048 bytes blocks
volidCaller provided memory for the volume id
flagunused yet, submit 0
Returns
0= not an emulated ISO session , 1= reply is valid

Definition at line 1878 of file burn_wrap.c.

References isoburn_toc_entry::start_lba, isoburn_toc_track::toc_entry, isoburn_toc_entry::track_blocks, and isoburn_toc_entry::volid.

Referenced by isoburn_set_msc1(), and Xorriso_toc().

◆ isoburn_toc_track_get_entry()

void isoburn_toc_track_get_entry ( struct isoburn_toc_track t,
struct burn_toc_entry entry 
)

Obtain a copy of the entry which describes a particular track. Wrapper for: burn_track_get_entry()

Since
0.1.6
Parameters
tThe track handle
entryA pointer to memory provided by the caller. It will be filled with info according to struct burn_toc_entry as defined in libburn.h

Definition at line 1860 of file burn_wrap.c.

References burn_track_get_entry(), isoburn_toc_entry_finish(), isoburn_toc_entry::session, burn_toc_entry::start_lba, isoburn_toc_entry::start_lba, isoburn_toc_track::toc_entry, isoburn_toc_track::track, burn_toc_entry::track_blocks, isoburn_toc_entry::track_blocks, and isoburn_toc_entry::track_no.

Referenced by isoburn_get_track_lba(), Xorriso_check_media(), and Xorriso_toc().

◆ isoburn_welcome_media()

static int isoburn_welcome_media ( struct isoburn **  o,
struct burn_drive d,
int  flag 
)
static

Examines the medium and sets appropriate emulation if needed.

Parameters
flagbit0= pretent blank on overwritable media bit3= if the drive reports a -ROM profile then try to read table of content by scanning for ISO image headers. bit4= do not emulate TOC on overwritable media bit5= ignore ACL from external filesystems bit6= ignore POSIX Extended Attributes from external filesystems bit7= pretend -ROM and scan for table of content bit9= when scanning for ISO 9660 sessions on overwritable media: Do not demand a valid superblock at LBA 0 and scan until end of medium. bit10= if not bit6: accept all xattr namespaces from external filesystems, not only "user.".

Definition at line 349 of file burn_wrap.c.

References BURN_DISC_APPENDABLE, BURN_DISC_BLANK, BURN_DISC_EMPTY, burn_disc_free_multi_caps(), BURN_DISC_FULL, burn_disc_get_multi_caps(), burn_disc_get_profile(), burn_disc_get_status(), burn_disc_track_lba_nwa(), burn_drive_get_drive_role(), BURN_WRITE_NONE, isoburn_toc_disc::disc, iso_image_set_ignore_aclea(), isoburn_destroy(), isoburn_emulate_toc(), isoburn_find_emulator(), isoburn_is_intermediate_dvd_rw(), isoburn_msgs_submit(), isoburn_new(), isoburn_start_emulation(), isoburn_toc_disc_free(), isoburn_toc_disc_get_sessions(), isoburn_toc_drive_get_disc(), isoburn_toc_session_get_tracks(), libisoburn_default_msgs_submit, libisoburn_default_msgs_submit_flag, libisoburn_default_msgs_submit_handle, isoburn_toc_entry::next, burn_multi_caps::start_adr, and isoburn_toc_entry::start_lba.

Referenced by isoburn_drive_aquire(), and isoburn_drive_grab().

Variable Documentation

◆ isoburn_list_start

struct isoburn* isoburn_list_start
extern

◆ libisoburn_default_msgs_submit

int(* libisoburn_default_msgs_submit) (void *handle, int error_code, char msg_text[], int os_errno, char severity[], int flag) ( void *  handle,
int  error_code,
char  msg_text[],
int  os_errno,
char  severity[],
int  flag 
)
extern

Definition at line 50 of file isoburn.c.

Referenced by isoburn_msgs_submit(), isoburn_set_msgs_submit(), and isoburn_welcome_media().

◆ libisoburn_default_msgs_submit_flag

int libisoburn_default_msgs_submit_flag
extern

Definition at line 54 of file isoburn.c.

Referenced by isoburn_msgs_submit(), isoburn_set_msgs_submit(), and isoburn_welcome_media().

◆ libisoburn_default_msgs_submit_handle

void* libisoburn_default_msgs_submit_handle
extern

Definition at line 53 of file isoburn.c.

Referenced by isoburn_msgs_submit(), isoburn_set_msgs_submit(), and isoburn_welcome_media().