2 #ifndef __YAFFS_TESTER_H__
3 #define __YAFFS_TESTER_H__
7 #include "yaffsfs.h" /* it is in "yaffs2/direct/" link it in the Makefile */
10 #define MAX_FILE_NAME_SIZE 51
11 #define BUFFER_MESSAGE_LENGTH 50 /*number of char in message*/
12 #define BUFFER_SIZE 50 /*number of messages in buffer*/
13 typedef struct buffer_template
15 char message[BUFFER_SIZE][BUFFER_MESSAGE_LENGTH];
20 void init(char yaffs_test_dir[],char yaffs_mount_dir[]); /*sets up yaffs and mounts yaffs */
21 void test(char yaffs_test_dir[]); /*contains the test code*/
22 void generate_random_string(char *ptr); /*generates a random string of letters to be used for a name*/
23 void add_to_buffer(buffer *p_Buffer, char message[]); /*code for buffer*/
24 void print_buffer(buffer *p_Buffer); /*print all of the messages in the buffer*/