2 #ifndef __YAFFS_TESTER_H__
3 #define __YAFFS_TESTER_H__
8 #include "yaffsfs.h" /* it is in "yaffs2/direct/" link it in the Makefile */
9 #include "message_buffer.h"
10 #include "error_handler.h"
13 #define MAX_FILE_NAME_SIZE 51
15 void init(char *yaffs_test_dir,char *yaffs_mount_dir); /*sets up yaffs and mounts yaffs */
16 void test(char *yaffs_test_dir); /*contains the test code*/
17 void generate_random_string(char *ptr); /*generates a random string of letters to be used for a name*/
18 void join_paths(char *path1,char *path2,char *newpath );
19 void copy_array(char *from,char *to, unsigned int from_offset,unsigned int to_offset);