diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-03-26 09:33:43 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-03-27 09:51:18 +0200 |
commit | 9e43296fd2c4959f045859d248a4e78fcfcceae6 (patch) | |
tree | 6eec450ebe932e55056b64ac7a6c4965c1c48ad1 /src/boot/bootctl.h | |
parent | Define $KERNEL_INSTALL_UKI_GENERATOR (diff) | |
download | systemd-9e43296fd2c4959f045859d248a4e78fcfcceae6.tar.xz systemd-9e43296fd2c4959f045859d248a4e78fcfcceae6.zip |
bootctl: split-out entry token related definitions into boot-entry.[ch]
No functional change, just preparation for later commits.
These can be used in kernel-install later.
Note, unlike the our usual coding style, the arguments for
boot_entry_token_ensure() and parse_boot_entry_token_type() are
referenced, updated, and may freed, hence, always pass initialized
values. That's why they are not named as 'ret_xyz'.
Diffstat (limited to 'src/boot/bootctl.h')
-rw-r--r-- | src/boot/bootctl.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/boot/bootctl.h b/src/boot/bootctl.h index 9012bf932b..c87d43694f 100644 --- a/src/boot/bootctl.h +++ b/src/boot/bootctl.h @@ -3,17 +3,10 @@ #include "sd-id128.h" +#include "boot-entry.h" #include "json.h" #include "pager.h" -typedef enum EntryTokenType { - ARG_ENTRY_TOKEN_MACHINE_ID, - ARG_ENTRY_TOKEN_OS_IMAGE_ID, - ARG_ENTRY_TOKEN_OS_ID, - ARG_ENTRY_TOKEN_LITERAL, - ARG_ENTRY_TOKEN_AUTO, -} EntryTokenType; - typedef enum InstallSource { ARG_INSTALL_SOURCE_IMAGE, ARG_INSTALL_SOURCE_HOST, @@ -32,7 +25,7 @@ extern bool arg_quiet; extern int arg_make_entry_directory; /* tri-state: < 0 for automatic logic */ extern sd_id128_t arg_machine_id; extern char *arg_install_layout; -extern EntryTokenType arg_entry_token_type; +extern BootEntryTokenType arg_entry_token_type; extern char *arg_entry_token; extern JsonFormatFlags arg_json_format_flags; extern bool arg_arch_all; |