Add open() and close() operations to IsoFilesystem.

This commit is contained in:
Vreixo Formoso
2008-01-19 16:56:46 +01:00
parent 52d1e911ac
commit 0c1ea8cc7e
5 changed files with 102 additions and 66 deletions

View File

@ -592,6 +592,20 @@ unsigned int lfs_get_id(IsoFilesystem *fs)
return ISO_LOCAL_FS_ID;
}
static
int lfs_fs_open(IsoFilesystem *fs)
{
/* open() operation is not needed */
return ISO_SUCCESS;
}
static
int lfs_fs_close(IsoFilesystem *fs)
{
/* close() operation is not needed */
return ISO_SUCCESS;
}
static
void lfs_fs_free(IsoFilesystem *fs)
{
@ -620,6 +634,8 @@ int iso_local_filesystem_new(IsoFilesystem **fs)
lfs->get_root = lfs_get_root;
lfs->get_by_path = lfs_get_by_path;
lfs->get_id = lfs_get_id;
lfs->open = lfs_fs_open;
lfs->close = lfs_fs_close;
lfs->free = lfs_fs_free;
}
*fs = lfs;