Macro for length of rejection reasons string (old size is still safe)
This commit is contained in:
parent
9f2c4b303d
commit
64ae333863
@ -4359,7 +4359,7 @@ int Cdrskin_activate_write_mode(struct CdrskiN *skin,
|
||||
int flag)
|
||||
{
|
||||
int profile_number= -1, current_is_cd= 1, ret, was_still_default= 0;
|
||||
char profile_name[80], reasons[1024];
|
||||
char profile_name[80], reasons[BURN_REASONS_LEN];
|
||||
enum burn_disc_status s= BURN_DISC_UNGRABBED;
|
||||
enum burn_write_types wt;
|
||||
|
||||
|
@ -1 +1 @@
|
||||
#define Cdrskin_timestamP "2007.02.22.073157"
|
||||
#define Cdrskin_timestamP "2007.02.22.094939"
|
||||
|
@ -333,7 +333,7 @@ static void *write_disc_worker_func(struct w_list *w)
|
||||
void burn_disc_write(struct burn_write_opts *opts, struct burn_disc *disc)
|
||||
{
|
||||
struct write_opts o;
|
||||
char reasons[1024+80];
|
||||
char reasons[BURN_REASONS_LEN+80];
|
||||
#ifndef Libburn_precheck_write_ruleS
|
||||
int i, j, mode, mixed_mode = 0;
|
||||
#endif
|
||||
|
@ -998,6 +998,14 @@ int burn_disc_get_format_descr(struct burn_drive *drive, int index,
|
||||
void burn_disc_read(struct burn_drive *drive, const struct burn_read_opts *o);
|
||||
|
||||
|
||||
|
||||
/* ts A70222 */
|
||||
/** The length of a rejection reasons string for burn_precheck_write() and
|
||||
burn_write_opts_auto_write_type() .
|
||||
*/
|
||||
#define BURN_REASONS_LEN 4096
|
||||
|
||||
|
||||
/* ts A70219 */
|
||||
/** Examines a completed setup for burn_disc_write() wether it is permissible
|
||||
with drive and media. This function is called by burn_disc_write() but
|
||||
@ -1009,7 +1017,7 @@ void burn_disc_read(struct burn_drive *drive, const struct burn_read_opts *o);
|
||||
@return 1 ok, -1= no recordable media detected, 0= other failure
|
||||
*/
|
||||
int burn_precheck_write(struct burn_write_opts *o, struct burn_disc *disc,
|
||||
char reasons[1024], int silent);
|
||||
char reasons[BURN_REASONS_LEN], int silent);
|
||||
|
||||
/* <<< enabling switch for internal usage and trust in this function */
|
||||
#define Libburn_precheck_write_ruleS 1
|
||||
@ -1266,6 +1274,7 @@ int burn_write_opts_set_write_type(struct burn_write_opts *opts,
|
||||
enum burn_write_types write_type,
|
||||
int block_type);
|
||||
|
||||
|
||||
/* ts A70207 */
|
||||
/** As an alternative to burn_write_opts_set_write_type() this function tries
|
||||
to find a suitable write type and block type for a given write job
|
||||
@ -1282,7 +1291,7 @@ int burn_write_opts_set_write_type(struct burn_write_opts *opts,
|
||||
*/
|
||||
enum burn_write_types burn_write_opts_auto_write_type(
|
||||
struct burn_write_opts *opts, struct burn_disc *disc,
|
||||
char reasons[1024], int flag);
|
||||
char reasons[BURN_REASONS_LEN], int flag);
|
||||
|
||||
|
||||
/** Supplies toc entries for writing - not normally required for cd mastering
|
||||
|
@ -179,7 +179,7 @@ void burn_write_opts_set_start_byte(struct burn_write_opts *opts, off_t value)
|
||||
*/
|
||||
enum burn_write_types burn_write_opts_auto_write_type(
|
||||
struct burn_write_opts *opts, struct burn_disc *disc,
|
||||
char reasons[1024], int flag)
|
||||
char reasons[BURN_REASONS_LEN], int flag)
|
||||
{
|
||||
struct burn_multi_caps *caps = NULL;
|
||||
struct burn_drive *d = opts->drive;
|
||||
|
@ -1252,7 +1252,7 @@ int burn_disc_setup_dvd_minus_r(struct burn_write_opts *o,
|
||||
|
||||
/* ts A70219 : API */
|
||||
int burn_precheck_write(struct burn_write_opts *o, struct burn_disc *disc,
|
||||
char reasons[1024], int silent)
|
||||
char reasons[BURN_REASONS_LEN], int silent)
|
||||
{
|
||||
enum burn_write_types wt;
|
||||
struct burn_drive *d = o->drive;
|
||||
|
@ -373,7 +373,7 @@ int libburner_payload(struct burn_drive *drive,
|
||||
time_t start_time;
|
||||
int last_sector = 0, padding = 0, trackno, unpredicted_size = 0, fd;
|
||||
off_t fixed_size;
|
||||
char *adr, reasons[1024];
|
||||
char *adr, reasons[BURN_REASONS_LEN];
|
||||
struct stat stbuf;
|
||||
|
||||
if (all_tracks_type != BURN_AUDIO) {
|
||||
|
Loading…
Reference in New Issue
Block a user