Effective base of libisoburn+xorriso 0.1.1 2008.02.22.124732

This commit is contained in:
2008-02-23 10:01:07 +00:00
parent c16264cabb
commit 3ccc42f0c0
102 changed files with 38150 additions and 0 deletions

View File

@ -0,0 +1,31 @@
/*
* Mocked objects to simulate an input filesystem.
*/
#ifndef MOCKED_FSRC_H_
#define MOCKED_FSRC_H_
struct mock_file {
IsoFilesystem *fs;
struct mock_file *parent;
struct stat atts;
char *name;
/* for links, link dest. For dirs, children */
void *content;
};
/**
* A mocked fs.
*/
int test_mocked_filesystem_new(IsoFilesystem **fs);
struct mock_file *test_mocked_fs_get_root(IsoFilesystem *fs);
int test_mocked_fs_add_dir(const char *name, struct mock_file *parent,
struct stat atts, struct mock_file **dir);
int test_mocked_fs_add_symlink(const char *name, struct mock_file *p,
struct stat atts, const char *dest, struct mock_file **node);
#endif /*MOCKED_FSRC_H_*/