Little demo program that outputs a read iso image.

This commit is contained in:
Vreixo Formoso
2008-01-03 00:19:39 +01:00
parent 42cd599d2d
commit b273290415
2 changed files with 110 additions and 1 deletions

View File

@ -406,7 +406,11 @@ int ifs_close(IsoFileSource *src)
}
if (data->opened == 2) {
/* close a dir, free all pending pre-allocated children */
/*
* close a dir, free all pending pre-allocated children.
* not that we don't need to close the filesystem, it was already
* closed
*/
child_list_free((struct child_list*) data->data.content);
data->data.content = NULL;
data->opened = 0;
@ -1214,6 +1218,7 @@ int iso_image_filesystem_new(IsoDataSource *src, struct iso_read_opts *opts,
ifs->close = ifs_fs_close;
ifs->fs.data = data;
ifs->fs.refcount = 1;
ifs->fs.get_root = ifs_get_root;
ifs->fs.get_by_path = ifs_get_by_path;
ifs->fs.free = ifs_fs_free;