X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=direct%2Fbasic-test%2Fyaffscfg.h;fp=direct%2Fbasic-test%2Fyaffscfg.h;h=a14797f4a70677ef90b3deaff2e5dd69dadf7b1b;hb=4a700fe570d217c2c5df87070db7c2652bc0eaaf;hp=0000000000000000000000000000000000000000;hpb=25f6e492e7010f585367a4f6abf4d2e17c5c0e1a;p=yaffs2.git diff --git a/direct/basic-test/yaffscfg.h b/direct/basic-test/yaffscfg.h new file mode 100644 index 0000000..a14797f --- /dev/null +++ b/direct/basic-test/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 +