X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fyaffscfg.h;fp=direct%2Fyaffscfg.h;h=a14797f4a70677ef90b3deaff2e5dd69dadf7b1b;hp=0000000000000000000000000000000000000000;hb=227cbf526a2c0228495ff2405c866a93c4cd576b;hpb=f792554ed6d0b514dfb040097033417d8e41f420 diff --git a/direct/yaffscfg.h b/direct/yaffscfg.h new file mode 100644 index 0000000..a14797f --- /dev/null +++ b/direct/yaffscfg.h @@ -0,0 +1,46 @@ +/* + * YAFFS: Yet another Flash File System . A NAND-flash specific file system. + * + * Copyright (C) 2002-2010 Aleph One Ltd. + * for Toby Churchill Ltd and Brightstar Engineering + * + * Created by Charles Manning + * + * 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. + */ + +/* + * Header file for using yaffs in an application via + * a direct interface. + */ + + +#ifndef __YAFFSCFG_H__ +#define __YAFFSCFG_H__ + + +#include "yportenv.h" +#include "devextras.h" + +#define YAFFSFS_N_HANDLES 100 + + +typedef struct yaffsfs_DeviceConfigurationStruct { + const YCHAR *prefix; + struct yaffs_DeviceStruct *dev; +} yaffsfs_DeviceConfiguration; + + +void yaffsfs_Lock(void); +void yaffsfs_Unlock(void); + +__u32 yaffsfs_CurrentTime(void); + +void yaffsfs_SetError(int err); + +#endif +