X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fyaffs_tester.h;h=6ca547fcb9a0224902d53021dd8f31afad1c7bb1;hp=1f96591ea4fc72a565646bab1d99a60b4911c21d;hb=b708f76c6a03f86058236dbd529e8c3623571325;hpb=e3344eda11a9656644f9c7fe345f1283cdd46b20 diff --git a/direct/timothy_tests/yaffs_tester.h b/direct/timothy_tests/yaffs_tester.h index 1f96591..6ca547f 100644 --- a/direct/timothy_tests/yaffs_tester.h +++ b/direct/timothy_tests/yaffs_tester.h @@ -2,24 +2,19 @@ #ifndef __YAFFS_TESTER_H__ #define __YAFFS_TESTER_H__ - #include +#include +#include - #include "yaffsfs.h" /* it is in "yaffs2/direct/" link it in the Makefile */ +#include "yaffsfs.h" /* it is in "yaffs2/direct/" link it in the Makefile */ +#include "message_buffer.h" +#include "error_handler.h" - #define MAX_FILE_NAME_SIZE 51 - #define BUFFER_MESSAGE_LENGTH 50 /*number of char in message*/ - #define BUFFER_SIZE 50 /*number of messages in buffer*/ - typedef struct buffer_template - { - char message[BUFFER_SIZE][BUFFER_MESSAGE_LENGTH]; - char head; - char tail; - }buffer; +#define MAX_FILE_NAME_SIZE 51 - void init(char yaffs_test_dir[],char yaffs_mount_dir[]); /*sets up yaffs and mounts yaffs */ - void test(char yaffs_test_dir[]); /*contains the test code*/ - void generate_random_string(char *ptr); /*generates a random string of letters to be used for a name*/ - void add_to_buffer(buffer *p_Buffer, char message[]); /*code for buffer*/ - void print_buffer(buffer *p_Buffer); /*print all of the messages in the buffer*/ +void init(char *yaffs_test_dir,char *yaffs_mount_dir); /*sets up yaffs and mounts yaffs */ +void test(char *yaffs_test_dir); /*contains the test code*/ +void generate_random_string(char *ptr); /*generates a random string of letters to be used for a name*/ +void join_paths(char *path1,char *path2,char *newpath ); +void copy_array(char *from,char *to, unsigned int from_offset,unsigned int to_offset); #endif