X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fyaffsfs.h;h=b863901fba5b78111e4967100c84fdf0fe6d25db;hp=3196f0c6a691b3b17f2d652e075971329ac1d977;hb=cabb7b51f48a784fbd8bd04ea8878abe2196167a;hpb=878880321c4fa7ab0e431d22a3dd156a9a272c68 diff --git a/direct/yaffsfs.h b/direct/yaffsfs.h index 3196f0c..b863901 100644 --- a/direct/yaffsfs.h +++ b/direct/yaffsfs.h @@ -34,6 +34,12 @@ ( (sizeof(Y_LOFF_T) < 8) ? YAFFS_MAX_FILE_SIZE_32 : (0x800000000LL - 1) ) +#ifdef __cplusplus +extern "C" +{ +#endif + + struct yaffs_dirent { long d_ino; /* inode number */ off_t d_off; /* offset to this dirent */ @@ -165,6 +171,10 @@ int yaffs_unmount(const YCHAR *path) ; int yaffs_unmount2(const YCHAR *path, int force); int yaffs_remount(const YCHAR *path, int force, int read_only); +int yaffs_format(const YCHAR *path, + int unmount_flag, + int force_unmount_flag, + int remount_flag); int yaffs_sync(const YCHAR *path) ; @@ -207,4 +217,11 @@ int yaffs_set_error(int error); /* Trace control functions */ unsigned yaffs_set_trace(unsigned tm); unsigned yaffs_get_trace(void); + + +#ifdef __cplusplus +} +#endif + + #endif