Changed name of freshly introduce API call iso_write_opts_set_high_empty_address

to iso_write_opts_set_old_empty, reverted the meaning and the default.
This commit is contained in:
2011-01-26 19:38:50 +01:00
parent 200697898d
commit 74c68224c7
5 changed files with 25 additions and 28 deletions

View File

@ -384,7 +384,7 @@ void write_one_dir_record(Ecma119Image *t, Ecma119Node *node, int file_id,
* the content block address to a dummy value.
*/
len = 0;
if (t->high_empty_address)
if (! t->old_empty)
block = t->empty_file_block;
else
block = 0;
@ -1580,7 +1580,7 @@ int ecma119_image_new(IsoImage *src, IsoWriteOpts *opts, Ecma119Image **img)
target->hardlinks = opts->hardlinks;
target->aaip = opts->aaip;
target->always_gmt = opts->always_gmt;
target->high_empty_address = opts->high_empty_address;
target->old_empty = opts->old_empty;
target->untranslated_name_len = opts->untranslated_name_len;
target->allow_dir_id_ext = opts->allow_dir_id_ext;
target->omit_version_numbers = opts->omit_version_numbers
@ -1933,7 +1933,7 @@ int ecma119_image_new(IsoImage *src, IsoWriteOpts *opts, Ecma119Image **img)
will account resp. write this single block.
*/
if (i == file_src_writer_index) {
if (target->high_empty_address)
if (! target->old_empty)
target->empty_file_block = target->curblock;
opts->data_start_lba = target->curblock;
}
@ -2379,7 +2379,7 @@ int iso_write_opts_new(IsoWriteOpts **opts, int profile)
wopts->ascii_disc_label[0] = 0;
wopts->will_cancel = 0;
wopts->allow_dir_id_ext = 0;
wopts->high_empty_address = 0;
wopts->old_empty = 0;
wopts->untranslated_name_len = 0;
*opts = wopts;
@ -2469,12 +2469,12 @@ int iso_write_opts_set_aaip(IsoWriteOpts *opts, int enable)
return ISO_SUCCESS;
}
int iso_write_opts_set_high_empty_address(IsoWriteOpts *opts, int enable)
int iso_write_opts_set_old_empty(IsoWriteOpts *opts, int enable)
{
if (opts == NULL) {
return ISO_NULL_POINTER;
}
opts->high_empty_address = enable ? 1 : 0;
opts->old_empty = enable ? 1 : 0;
return ISO_SUCCESS;
}