efi-loader: split efi-api.[ch] from efi-loader.[ch]

Some refactoring: split efi-loader.[ch] in two: isolate the calls that
implement out boot loader interface spec, and those which implement
access to upstream UEFI firmware features.

They are quite different in nature and behaviour, and even semantically
it makes to keep these two separate. At the very least because the
previous name "efi-loader.[ch]" suggests all was about loader-specific
APIs, but much of it is generic uefi stuff...

While we are at it, I renamed a bunch of return parameters to follow our
usual ret_xyz naming. But besides renaming no real code changes.
This commit is contained in:
Lennart Poettering
2022-03-24 15:21:09 +01:00
parent 8fc5c44426
commit 7be4b23649
10 changed files with 653 additions and 620 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
#include "cryptsetup-tpm2.h"
#include "cryptsetup-util.h"
#include "device-util.h"
#include "efi-loader.h"
#include "efi-api.h"
#include "env-util.h"
#include "escape.h"
#include "fileio.h"