[SETUPLIB][USETUP] Introduce a 'SetupLib' library. CORE-13544
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Wed, 17 May 2017 23:37:41 +0000 (23:37 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 27 May 2018 18:18:50 +0000 (20:18 +0200)
commit3a19ee6a9613e5408691f4b43028c4fd11e6c92d
tree2e8cc3b4ec8877032fec97ea1290e646cb31d470
parent739e72b6ed9ea008fdd473552f4ea28bbaf19281
[SETUPLIB][USETUP] Introduce a 'SetupLib' library. CORE-13544

- Create the beginnings of a "setuplib" library, whose aim is to be shared between the (currently existing) 1st-stage text-mode installer, and the (future) 1st-stage GUI installer.
- Finish to split the GenList and PartList codes into their UI part, which remain in usetup, and their algorithmic part, which go into setuplib.
- Move SetMountedDeviceValue into the PartList module.
- Split the FileSystem list code into its UI and the algorithmic part (which goes into setuplib under the name fsutil.c).
  * The algo part is meant to be able to manage the filesystems available on the running system, similarly to what is mostly done (in scattered form) in fmifs, format, chkdsk / autochk codes...
    It also manages the partition filesystem recognition, using OS routines.
  * The UI part manages the FS list as it appears on screen, showing only the possible FSes that can be used to format the selected partition (a bit similar to what we do in the shell32's drive.c, etc...).
- Adapt the calling code to these changes.
- Remove some "host" code that was dating back from the dark old times.

svn path=/branches/setup_improvements/; revision=74570
svn path=/branches/setup_improvements/; revision=74659
28 files changed:
base/setup/CMakeLists.txt
base/setup/lib/CMakeLists.txt [new file with mode: 0644]
base/setup/lib/errorcode.h [new file with mode: 0644]
base/setup/lib/fsutil.c [new file with mode: 0644]
base/setup/lib/fsutil.h [new file with mode: 0644]
base/setup/lib/genlist.c [new file with mode: 0644]
base/setup/lib/genlist.h [new file with mode: 0644]
base/setup/lib/linklist.h [new file with mode: 0644]
base/setup/lib/partlist.c [new file with mode: 0644]
base/setup/lib/partlist.h [new file with mode: 0644]
base/setup/lib/precomp.h [new file with mode: 0644]
base/setup/lib/setuplib.h [new file with mode: 0644]
base/setup/usetup/CMakeLists.txt
base/setup/usetup/bootsup.c
base/setup/usetup/chkdsk.c
base/setup/usetup/chkdsk.h
base/setup/usetup/format.c
base/setup/usetup/format.h
base/setup/usetup/fslist.c
base/setup/usetup/fslist.h
base/setup/usetup/genlist.c
base/setup/usetup/genlist.h
base/setup/usetup/partlist.c
base/setup/usetup/partlist.h
base/setup/usetup/registry.c
base/setup/usetup/registry.h
base/setup/usetup/usetup.c
base/setup/usetup/usetup.h