Fix copyright
[yaffs2.git] / direct / test-framework / timothy_tests / yaffs_and_linux_mirror_tests / lib.h
1 /*
2  * YAFFS: Yet another Flash File System . A NAND-flash specific file system. 
3  *
4  * Copyright (C) 2002-2018 Aleph One Ltd.
5  *
6  * Created by Timothy Manning <timothy@yaffs.net>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License version 2.1 as
10  * published by the Free Software Foundation.
11  *
12  * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
13  */
14
15 #ifndef _lib_h__
16 #define _lib_h__
17
18 #include <stdio.h>
19 #include <string.h>
20 #include "yaffsfs.h"
21 #include <errno.h>
22
23 typedef struct arg_temp2{
24         char char1;
25         char char2;
26         char string1[100];
27         char string2[100];
28         int int1;
29         int int2;
30 } arg_temp;
31
32
33 typedef struct test_dir_temp
34 {
35         int type_of_test; //used to tell if it is LINUX of YAFFS
36         char root_path[200];
37 } test_dir;
38 test_dir yaffs_struct,linux_struct;
39
40
41
42 void generate_random_string(char *ptr,int length_of_str);
43 void join_paths(char *path1,char *path2,char *new_path );
44 void print_message(char print_level, char *message);
45 void set_print_level(int new_level);
46 int get_print_level(void);
47 void set_exit_on_error(int num);
48 int get_exit_on_error(void);
49 void display_error(void);
50 void get_error_yaffs(void);
51 void get_error_linux(void);
52 #endif