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