libisofs/test/mocked_fsrc.h

24 lines
650 B
C
Raw Normal View History

/*
* Mocked objects to simulate an input filesystem.
*/
#ifndef MOCKED_FSRC_H_
#define MOCKED_FSRC_H_
/**
* A mocked fs with a registry of files, that you can add via
* test_mocked_fs_add_fsrc().
*/
int test_mocked_filesystem_new(IsoFilesystem **fs);
int test_mocked_fs_add_file(IsoFilesystem *fs, const char *path,
struct stat info);
int test_mocked_fs_add_dir(IsoFilesystem *fs, const char *path,
struct stat info);
int test_mocked_fs_add_symlink(IsoFilesystem *fs, const char *path,
2007-12-07 21:20:14 +00:00
struct stat info, const char *dest);
#endif /*MOCKED_FSRC_H_*/