Change ph_flags to ph_refctr in block device interface
[lwext4.git] / lwext4 / ext4_blockdev.h
index e55f42e46e104a2de8810f571177455a9180575c..51e4335067e4fc4d69332795628fabffadcade23 100644 (file)
@@ -47,9 +47,6 @@ extern "C" {
 #include <stdbool.h>
 #include <stdint.h>
 
-/**@brief   Initialization status flag*/
-#define EXT4_BDEV_INITIALIZED (1 << 0)
-
 struct ext4_blockdev_iface {
        /**@brief   Open device function
         * @param   bdev block device.*/
@@ -83,8 +80,8 @@ struct ext4_blockdev_iface {
        /**@brief   Block size buffer: physical*/
        uint8_t *ph_bbuf;
 
-       /**@brief   Flags of block device*/
-       uint32_t ph_flags;
+       /**@brief   Reference counter to block device interface*/
+       uint32_t ph_refctr;
 };
 
 /**@brief   Definition of the simple block device.*/