For API stablility reasons, make Ecma119WriteOpts private.
This commit is contained in:
@ -27,36 +27,7 @@ int main(int argc, char **argv)
|
||||
struct burn_source *burn_src;
|
||||
unsigned char buf[2048];
|
||||
FILE *fd;
|
||||
Ecma119WriteOpts opts = {
|
||||
1, /* level */
|
||||
1, /* rockridge */
|
||||
0, /* joliet */
|
||||
0, /* iso1999 */
|
||||
0, /* omit_version_numbers */
|
||||
0, /* allow_deep_paths */
|
||||
0, /* allow_longer_paths */
|
||||
0, /* max_37_char_filenames */
|
||||
0, /* no_force_dots */
|
||||
0, /* allow_lowercase */
|
||||
0, /* allow_full_ascii */
|
||||
0, /* joliet_longer_paths */
|
||||
1, /* sort files */
|
||||
0, /* replace_dir_mode */
|
||||
0, /* replace_file_mode */
|
||||
0, /* replace_uid */
|
||||
0, /* replace_gid */
|
||||
0, /* dir_mode */
|
||||
0, /* file_mode */
|
||||
0, /* uid */
|
||||
0, /* gid */
|
||||
0, /* replace_timestamps */
|
||||
0, /* timestamp */
|
||||
NULL, /* output charset */
|
||||
0, /* appendable */
|
||||
0, /* ms_block */
|
||||
NULL, /* overwrite */
|
||||
1024 /* fifo_size */
|
||||
};
|
||||
IsoWriteOpts *opts;
|
||||
struct iso_read_opts ropts = {
|
||||
0, /* block */
|
||||
0, /* norock */
|
||||
@ -114,12 +85,20 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
/* generate a new image with both previous and added contents */
|
||||
result = iso_image_create_burn_source(image, &opts, &burn_src);
|
||||
result = iso_write_opts_new(&opts, 1);
|
||||
if (result < 0) {
|
||||
printf("Cant create write opts, error %d\n", result);
|
||||
return 1;
|
||||
}
|
||||
|
||||
result = iso_image_create_burn_source(image, opts, &burn_src);
|
||||
if (result < 0) {
|
||||
printf ("Cant create image, error %d\n", result);
|
||||
return 1;
|
||||
}
|
||||
|
||||
iso_write_opts_free(opts);
|
||||
|
||||
while (burn_src->read_xt(burn_src, buf, 2048) == 2048) {
|
||||
fwrite(buf, 1, 2048, fd);
|
||||
}
|
||||
|
Reference in New Issue
Block a user