diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-07-05 15:42:30 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-07-05 17:54:59 +0200 |
commit | e987d54baf7071da8a4b51cf5daf56663ad88d87 (patch) | |
tree | f2ca98850184415d426625a8a9771cdfbfa34dfa /src | |
parent | boot: rename entry_count → n_entries (diff) | |
download | systemd-e987d54baf7071da8a4b51cf5daf56663ad88d87.tar.xz systemd-e987d54baf7071da8a4b51cf5daf56663ad88d87.zip |
boot: make LoaderType enum less special
Usually (but not always) we use uppercase type naming, and do a typedef
for enums like this. Do so here too.
Diffstat (limited to '')
-rw-r--r-- | src/boot/efi/boot.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index f90f0891a8..1321658a01 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -34,14 +34,15 @@ _used_ _section_(".osrel") static const char osrel[] = "VERSION=\"" GIT_VERSION "\"\n" "NAME=\"systemd-boot " GIT_VERSION "\"\n"; -enum loader_type { +typedef enum LoaderType { LOADER_UNDEFINED, LOADER_AUTO, LOADER_EFI, LOADER_LINUX, /* Boot loader spec type #1 entries */ LOADER_UNIFIED_LINUX, /* Boot loader spec type #2 entries */ LOADER_SECURE_BOOT_KEYS, -}; + _LOADER_TYPE_MAX, +} LoaderType; typedef struct { char16_t *id; /* The unique identifier for this entry (typically the filename of the file defining the entry) */ @@ -51,7 +52,7 @@ typedef struct { char16_t *version; /* The raw (human readable) version string of the entry */ char16_t *machine_id; EFI_HANDLE *device; - enum loader_type type; + LoaderType type; char16_t *loader; char16_t *devicetree; char16_t *options; |