Make iso_read_image_features private. Add getters for its properties.

This commit is contained in:
Vreixo Formoso
2008-02-02 16:05:03 +01:00
parent e6deb92553
commit e88b361b5f
3 changed files with 138 additions and 35 deletions

View File

@@ -32,7 +32,7 @@ int main(int argc, char **argv)
unsigned char buf[32 * 2048];
IsoWriteOpts *opts;
int ret = 0;
struct iso_read_image_features *features;
IsoReadImageFeatures *features;
uint32_t ms_block;
IsoReadOpts *ropts;
@@ -126,12 +126,12 @@ int main(int argc, char **argv)
}
/* round up to 32kb aligment = 16 block */
ms_block = ((features->size + 15) / 16 ) * 16;
ms_block = ((iso_read_image_features_get_size(features) + 15) / 16 ) * 16;
iso_write_opts_set_ms_block(opts, ms_block);
iso_write_opts_set_appendable(opts, 1);
iso_write_opts_set_overwrite_buf(opts, buf);
free(features);
iso_read_image_features_destroy(features);
result = iso_image_create_burn_source(image, opts, &burn_src);
if (result < 0) {