yaffsfs.c: Fix NULL dereference in yaffs_unmount2_reldev()
[yaffs2.git] / direct / test-framework / yaffs_flexible_file_sim.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 Charles Manning <charles@aleph1.co.uk>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11  */
12
13 /*
14  * Flexible simple file based NAND Simulator for testing YAFFS
15  */
16
17
18 #ifndef __YAFFS_FLEXZIBLE_FILE_SIM_H__
19 #define __YAFFS_FLEXZIBLE_FILE_SIM_H__
20
21 #include <stdint.h>
22
23 struct yaffs_dev;
24
25 struct yaffs_dev *yaffs_flexible_file_sim_create(
26                                 const char *name,
27                                 const char *sim_file_name,
28                                 uint32_t n_blocks,
29                                 uint32_t start_block, uint32_t end_block,
30                                 uint32_t chunks_per_block,
31                                 uint32_t bytes_per_chunk,
32                                 uint32_t bytes_per_spare) ;
33 #endif