X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_guts.h;h=f9b5ac192424b50a7ecda2509f35a14f05da867b;hp=b7e2f4bcc569e087069f1f6398f6008712273730;hb=1cbf86620c7070821b8790ae38bd5b578e7125c0;hpb=4a700fe570d217c2c5df87070db7c2652bc0eaaf diff --git a/yaffs_guts.h b/yaffs_guts.h index b7e2f4b..f9b5ac1 100644 --- a/yaffs_guts.h +++ b/yaffs_guts.h @@ -517,7 +517,7 @@ typedef struct { struct yaffs_DeviceParamStruct { - const char *name; + const YCHAR *name; /* * Entry parameters set up way early. Yaffs sets up the rest. @@ -696,6 +696,7 @@ struct yaffs_DeviceStruct { /* Garbage collection control */ __u32 *gcCleanupList; /* objects to delete at the end of a GC. */ + __u32 nCleanups; unsigned hasPendingPrioritisedGCs; /* We think this device might have pending prioritised gcs */ unsigned gcDisable; @@ -758,6 +759,7 @@ struct yaffs_DeviceStruct { __u32 allGCs; __u32 passiveGCs; __u32 oldestDirtyGCs; + __u32 nGCBlocks; __u32 backgroundGCs; __u32 nRetriedWrites; __u32 nRetiredBlocks; @@ -822,7 +824,7 @@ struct yaffs_ShadowFixerStruct { /* Structure for doing xattr modifications */ typedef struct { int set; /* If 0 then this is a deletion */ - const char *name; + const YCHAR *name; const void *data; int size; int flags; @@ -896,10 +898,10 @@ yaffs_Object *yaffs_MknodSpecial(yaffs_Object *parent, const YCHAR *name, __u32 mode, __u32 uid, __u32 gid, __u32 rdev); -int yaffs_SetXAttribute(yaffs_Object *obj, const char *name, const void * value, int size, int flags); -int yaffs_GetXAttribute(yaffs_Object *obj, const char *name, void *value, int size); +int yaffs_SetXAttribute(yaffs_Object *obj, const YCHAR *name, const void * value, int size, int flags); +int yaffs_GetXAttribute(yaffs_Object *obj, const YCHAR *name, void *value, int size); int yaffs_ListXAttributes(yaffs_Object *obj, char *buffer, int size); -int yaffs_RemoveXAttribute(yaffs_Object *obj, const char *name); +int yaffs_RemoveXAttribute(yaffs_Object *obj, const YCHAR *name); /* Special directories */ yaffs_Object *yaffs_Root(yaffs_Device *dev);