712563f3c9c2eb504d9f0f9ecabaaf27489e8940
[yaffs2.git] / direct / timothy_tests / yaffs_tester.h
1 /*yaffs_tester.h */
2 #ifndef __YAFFS_TESTER_H__
3         #define __YAFFS_TESTER_H__
4
5 #include <string.h>
6 #include <stdio.h>
7         
8 #include "yaffsfs.h"    /* it is in "yaffs2/direct/" link it in the Makefile */
9 #include "message_buffer.h"
10 #include "error_handler.h"
11         
12
13 #define MAX_FILE_NAME_SIZE 51
14
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);
20 #endif