yaffs Working on mirror_tests
[yaffs2.git] / direct / timothy_tests / mirror_tests / lib.h
1 /*
2  * YAFFS: Yet another Flash File System . 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 Lesser General Public License version 2.1 as
11  * published by the Free Software Foundation.
12  *
13  * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
14  */
15
16 #ifndef _lib_h__
17 #define _lib_h__
18
19 #include <stdio.h>
20 #include <string.h>
21 #include "yaffsfs.h"
22
23
24 typedef struct arg_temp2{
25         char char1;
26         char char2;
27         char string1[100];
28         char string2[100];
29         int int1;
30         int int2;
31 } arg_temp;
32
33
34 typedef struct test_dir_temp
35 {
36         int type_of_test; //used to tell if it is LINUX of YAFFS
37         char root_path[200];
38 } test_dir;
39 test_dir yaffs_struct,linux_struct;
40
41
42
43 void generate_random_string(char *ptr,int length_of_str);
44 void join_paths(char *path1,char *path2,char *new_path );
45 void print_message(char print_level, char *message);
46 void set_print_level(int new_level);
47 void set_exit_on_error(int num);
48 int get_exit_on_error(void);
49 void display_error(void);
50
51 #endif