2007-12-07 16:29:27 +00:00
|
|
|
/*
|
|
|
|
* 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);
|
2007-12-07 16:29:27 +00:00
|
|
|
|
|
|
|
#endif /*MOCKED_FSRC_H_*/
|