Rename function to create burn_source.

This commit is contained in:
Vreixo Formoso 2008-01-05 00:42:32 +01:00
parent ee78419935
commit e471333b0b
5 changed files with 18 additions and 9 deletions

View File

@ -79,7 +79,7 @@ int main(int argc, char **argv)
return 1; return 1;
} }
result = iso_image_create(image, &opts, &burn_src); result = iso_image_create_burn_source(image, &opts, &burn_src);
if (result < 0) { if (result < 0) {
printf ("Cant create image, error %d\n", result); printf ("Cant create image, error %d\n", result);
return 1; return 1;

View File

@ -101,7 +101,7 @@ int main(int argc, char **argv)
} }
/* generate a new image with both previous and added contents */ /* generate a new image with both previous and added contents */
result = iso_image_create(image, &opts, &burn_src); result = iso_image_create_burn_source(image, &opts, &burn_src);
if (result < 0) { if (result < 0) {
printf ("Cant create image, error %d\n", result); printf ("Cant create image, error %d\n", result);
return 1; return 1;

View File

@ -104,7 +104,7 @@ int main(int argc, char **argv)
/* generate a multisession image with new contents */ /* generate a multisession image with new contents */
opts.ms_block = atoi(argv[2]); opts.ms_block = atoi(argv[2]);
opts.appendable = 1; opts.appendable = 1;
result = iso_image_create(image, &opts, &burn_src); result = iso_image_create_burn_source(image, &opts, &burn_src);
if (result < 0) { if (result < 0) {
printf ("Cant create image, error %d\n", result); printf ("Cant create image, error %d\n", result);
return 1; return 1;

View File

@ -926,7 +926,7 @@ int bs_set_size(struct burn_source *bs, off_t size)
return 1; return 1;
} }
int iso_image_create(IsoImage *image, Ecma119WriteOpts *opts, int iso_image_create_burn_source(IsoImage *image, Ecma119WriteOpts *opts,
struct burn_source **burn_src) struct burn_source **burn_src)
{ {
int ret; int ret;

View File

@ -316,10 +316,19 @@ struct iso_read_image_features
int iso_image_new(const char *name, IsoImage **image); int iso_image_new(const char *name, IsoImage **image);
/** /**
* TODO we should have two "create" methods, one for grow images, another * Create a burn_source to actually write the image. That burn_source can be
* for images from scratch. Or we can just have a flag in Ecma119WriteOpts. * used with libburn as a data source for a track.
*
* @param image
* The image to write.
* @param opts
* The options for image generation.
* @param burn_src
* Location where the pointer to the burn_source will be stored
* @return
* 1 on success, < 0 on error
*/ */
int iso_image_create(IsoImage *image, Ecma119WriteOpts *opts, int iso_image_create_burn_source(IsoImage *image, Ecma119WriteOpts *opts,
struct burn_source **burn_src); struct burn_source **burn_src);
/** /**