burn_precheck_write

Function burn_precheck_write 

Source
pub unsafe extern "C" fn burn_precheck_write(
    o: *mut burn_write_opts,
    disc: *mut burn_disc,
    reasons: *mut c_char,
    silent: c_int,
) -> c_int
Expand description

Examines a completed setup for burn_disc_write() whether it is permissible with drive and media. This function is called by burn_disc_write() but an application might be interested in this check in advance.

@param o The options for the writing operation.

@param disc The description of the disc to be created

@param reasons Eventually returns a list of rejection reason statements

@param silent 1= do not issue error messages , 0= report problems

@return 1 ok, -1= no recordable media detected, 0= other failure

@since 0.3.4