[UFFS]
authorPierre Schweitzer <pierre@reactos.org>
Fri, 27 May 2016 12:05:40 +0000 (12:05 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Fri, 27 May 2016 12:05:40 +0000 (12:05 +0000)
Add the FFS DLL

CORE-11040

svn path=/trunk/; revision=71424

reactos/dll/win32/CMakeLists.txt
reactos/dll/win32/uffs/CMakeLists.txt [new file with mode: 0644]
reactos/dll/win32/uffs/uffs.c [new file with mode: 0644]
reactos/dll/win32/uffs/uffs.rc [new file with mode: 0644]
reactos/dll/win32/uffs/uffs.spec [new file with mode: 0644]

index f9350e2..4806fda 100644 (file)
@@ -212,6 +212,7 @@ add_subdirectory(ubtrfs)
 add_subdirectory(uext2)
 add_subdirectory(ufat)
 add_subdirectory(ufatx)
 add_subdirectory(uext2)
 add_subdirectory(ufat)
 add_subdirectory(ufatx)
+add_subdirectory(uffs)
 add_subdirectory(untfs)
 add_subdirectory(updspapi)
 add_subdirectory(ureiserfs)
 add_subdirectory(untfs)
 add_subdirectory(updspapi)
 add_subdirectory(ureiserfs)
diff --git a/reactos/dll/win32/uffs/CMakeLists.txt b/reactos/dll/win32/uffs/CMakeLists.txt
new file mode 100644 (file)
index 0000000..63eeee9
--- /dev/null
@@ -0,0 +1,13 @@
+
+spec2def(uffs.dll uffs.spec)
+
+list(APPEND SOURCE
+    uffs.c
+    uffs.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/uffs.def)
+
+add_library(uffs SHARED ${SOURCE})
+set_module_type(uffs nativedll)
+target_link_libraries(uffs ffslib)
+add_importlibs(uffs ntdll)
+add_cd_file(TARGET uffs DESTINATION reactos/system32 FOR all)
diff --git a/reactos/dll/win32/uffs/uffs.c b/reactos/dll/win32/uffs/uffs.c
new file mode 100644 (file)
index 0000000..e21370a
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+ * COPYRIGHT:       See COPYING in the top level directory
+ * PROJECT:         FFS File System Management
+ * FILE:            dll/win32/uffs/uffs.c
+ * PURPOSE:         uffs DLL initialisation
+ *
+ * PROGRAMMERS:     Pierre Schweitzer
+ */
+
+#include <windef.h>
+
+INT WINAPI
+DllMain(
+       IN HINSTANCE hinstDLL,
+       IN DWORD     dwReason,
+       IN LPVOID    lpvReserved)
+{
+       UNREFERENCED_PARAMETER(hinstDLL);
+       UNREFERENCED_PARAMETER(dwReason);
+       UNREFERENCED_PARAMETER(lpvReserved);
+
+       return TRUE;
+}
diff --git a/reactos/dll/win32/uffs/uffs.rc b/reactos/dll/win32/uffs/uffs.rc
new file mode 100644 (file)
index 0000000..f2ec4ce
--- /dev/null
@@ -0,0 +1,5 @@
+#define REACTOS_VERSION_DLL
+#define REACTOS_STR_FILE_DESCRIPTION  "FFS File System Management"
+#define REACTOS_STR_INTERNAL_NAME     "uffs"
+#define REACTOS_STR_ORIGINAL_FILENAME "uffs.dll"
+#include <reactos/version.rc>
diff --git a/reactos/dll/win32/uffs/uffs.spec b/reactos/dll/win32/uffs/uffs.spec
new file mode 100644 (file)
index 0000000..8c5627a
--- /dev/null
@@ -0,0 +1,2 @@
+@ stdcall ChkdskEx(ptr long long long long ptr) FfsChkdsk
+@ stdcall FormatEx(ptr long ptr long long ptr) FfsFormat