X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=fs%2Fbattfs.h;h=59d8fece34fe164b470996e19ef7778cb3b6cb54;hb=e5523f6098d2f4d51c838459ce83423152cc8692;hp=0456fcfb6a841388d16a37dc7d83a45343cd030a;hpb=cb475c2071d6be7048f8c5c06485b3cd8530708c;p=bertos.git diff --git a/fs/battfs.h b/fs/battfs.h index 0456fcfb..59d8fece 100644 --- a/fs/battfs.h +++ b/fs/battfs.h @@ -207,7 +207,7 @@ typedef struct BattFsSuper disk_size_t disk_size; ///< Size of the disk, in bytes (page_count * page_size). disk_size_t free_bytes; ///< Free space on the disk. - + List file_opened_list; ///< List used to keep trace of open files. /* TODO add other fields. */ } BattFsSuper; @@ -238,6 +238,11 @@ typedef struct KFileBattFs pgcnt_t *start; ///< Pointer to page_array file start position. } KFileBattFs; +/** + * Id for battfs file descriptors. + */ +#define KFT_BATTFS MAKE_ID('B', 'T', 'F', 'S') + /** * Macro used to cast a KFile to a KFileBattFs. * Also perform dynamic type check.