Name refactiring inside file_windows module
[lwext4.git] / fs_test / lwext4_mkfs.c
index ac6b4fa099ae459ae0c039ac108babb2b071a6e2..781e8dcd340471d168a15877d13e69584fa6315c 100644 (file)
@@ -39,8 +39,8 @@
 
 #include <ext4.h>
 #include <ext4_mkfs.h>
-#include "../blockdev/linux/ext4_filedev.h"
-#include "../blockdev/windows/io_raw.h"
+#include "../blockdev/linux/file_dev.h"
+#include "../blockdev/windows/file_windows.h"
 
 /**@brief   Input stream name.*/
 const char *input_name = NULL;
@@ -75,8 +75,8 @@ Usage:                                                          \n\
 
 static bool open_linux(void)
 {
-       ext4_filedev_filename(input_name);
-       bd = ext4_filedev_get();
+       file_dev_name_set(input_name);
+       bd = file_dev_get();
        if (!bd) {
                printf("open_filedev: fail\n");
                return false;
@@ -87,8 +87,8 @@ static bool open_linux(void)
 static bool open_windows(void)
 {
 #ifdef WIN32
-       ext4_io_raw_filename(input_name);
-       bd = ext4_io_raw_dev_get();
+       file_windows_name_set(input_name);
+       bd = file_windows_dev_get();
        if (!bd) {
                printf("open_winpartition: fail\n");
                return false;