diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-05-06 14:44:05 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-05-08 17:57:57 +0200 |
commit | a847b539de828bf7e877cf0f8a014a8360d32a79 (patch) | |
tree | 4fec75f2e69e2439cc593ab484329b74572c55a8 /src/shared/bootspec.h | |
parent | 5ba1550fd8a80466693275e62e4b1e152e477cf8 (diff) | |
download | systemd-a847b539de828bf7e877cf0f8a014a8360d32a79.tar.gz |
shared/bootspec: also export boot_config_load_type1()
The reallocation of memory and counter incrementation is moved from
the only caller to the function. This way the callers can remain oblivious
of the BootConfig internals.
Diffstat (limited to 'src/shared/bootspec.h')
-rw-r--r-- | src/shared/bootspec.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shared/bootspec.h b/src/shared/bootspec.h index 3ff593a23f..ff54cc2e84 100644 --- a/src/shared/bootspec.h +++ b/src/shared/bootspec.h @@ -88,6 +88,13 @@ void boot_config_free(BootConfig *config); int boot_loader_read_conf(BootConfig *config, FILE *file, const char *path); +int boot_config_load_type1( + BootConfig *config, + FILE *f, + const char *root, + const char *dir, + const char *id); + int boot_config_finalize(BootConfig *config); int boot_config_load(BootConfig *config, const char *esp_path, const char *xbootldr_path); int boot_config_load_auto(BootConfig *config, const char *override_esp_path, const char *override_xbootldr_path); |