1584b1a76cbb7e5a05ebc72988f1a34940ff272c
[yaffs2.git] / direct / timothy_tests / yaffs_tester.h
1 /*
2  * YAFFS: Yet another FFS. A NAND-flash specific file system.
3  *
4  * Copyright (C) 2002-2010 Aleph One Ltd.
5  *   for Toby Churchill Ltd and Brightstar Engineering
6  *
7  * Created by Timothy Manning timothy@yaffs.net
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License version 2 as
11  * published by the Free Software Foundation.
12  *
13  */
14
15 #ifndef __YAFFS_TESTER_H__
16         #define __YAFFS_TESTER_H__
17
18 #include <string.h>
19 #include <stdio.h>
20         
21 #include "yaffsfs.h"    /* it is in "yaffs2/direct/" link it in the Makefile */
22 #include "message_buffer.h"
23 #include "error_handler.h"
24         
25
26 #define MAX_FILE_NAME_SIZE 51
27
28 void init(char *yaffs_test_dir,char *yaffs_mount_dir);  /*sets up yaffs and mounts yaffs */
29 void test(char *yaffs_test_dir);                                /*contains the test code*/
30 void generate_random_string(char *ptr);                         /*generates a random string of letters to be used for a name*/
31 void join_paths(char *path1,char *path2,char *newpath );
32 void copy_array(char *from,char *to, unsigned int from_offset,unsigned int to_offset);
33 #endif