Introduced inner API iso_apm_partition_request for definition of

Apple Partition Map entries by hfsplus.c.
This commit is contained in:
2012-05-26 23:04:42 +02:00
parent 6fc6a09040
commit 8770148cad
6 changed files with 300 additions and 1 deletions

View File

@ -122,6 +122,9 @@ void ecma119_image_free(Ecma119Image *t)
for (i = 0; i < ISO_HFSPLUS_BLESS_MAX; i++)
if (t->hfsplus_blessed[i] != NULL)
iso_node_unref(t->hfsplus_blessed[i]);
for (i = 0; (int) i < t->apm_req_count; i++)
if (t->apm_req[i] != NULL)
free(t->apm_req[i]);
free(t);
}
@ -1876,6 +1879,13 @@ int ecma119_image_new(IsoImage *src, IsoWriteOpts *opts, Ecma119Image **img)
if (target->hfsplus_blessed[i] != NULL)
iso_node_ref(target->hfsplus_blessed[i]);
}
target->apm_block_size = 512;
for (i = 0; i < ISO_APM_ENTRIES_MAX; i++)
target->apm_req[i] = NULL;
/* Set apm_block_size to 2048, if desired, before pthread_create()
at the end of this function.
Register any Apple Partition Map entries before pthread_create().
*/
/*
* 2. Based on those options, create needed writers: iso, joliet...