Huge cleanup of type warnings etc.
[yaffs2.git] / direct / yaffsfs.h
index e10fe84c075a44886cbfc58db0877a8148875a9a..641f68346365684b41851b523601a6364df33406 100644 (file)
@@ -46,7 +46,7 @@ struct yaffs_dirent {
        unsigned short d_reclen;        /* length of this dirent */
        YUCHAR d_type;                  /* type of this record */
        YCHAR d_name[NAME_MAX+1];       /* file name (null-terminated) */
-       unsigned d_dont_use;            /* debug: not for public consumption */
+       void *d_dont_use;                       /* debug pointer used by test harness */
 };
 
 typedef struct opaque_structure yaffs_DIR;
@@ -54,7 +54,7 @@ typedef struct opaque_structure yaffs_DIR;
 
 
 struct yaffs_stat {
-       int             st_dev;         /* device */
+       int             st_dev;         /* device - unused*/
        int             st_ino;         /* inode */
        unsigned        st_mode;        /* protection */
        int             st_nlink;       /* number of hard links */
@@ -258,6 +258,12 @@ int yaffs_mknod_reldev(struct yaffs_dev *dev, const YCHAR *pathname,
 Y_LOFF_T yaffs_freespace_reldev(struct yaffs_dev *dev);
 Y_LOFF_T yaffs_totalspace_reldev(struct yaffs_dev *dev);
 
+int yaffs_sync_reldev(struct yaffs_dev *dev);
+int yaffs_unmount_reldev(struct yaffs_dev *dev);
+int yaffs_unmount2_reldev(struct yaffs_dev *dev, int force);
+int yaffs_remount_reldev(struct yaffs_dev *dev, int force, int read_only);
+
+
 /* Some non-standard functions to use fds to access directories */
 struct yaffs_dirent *yaffs_readdir_fd(int fd);
 void yaffs_rewinddir_fd(int fd);