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.
This commit is contained in:
Lennart Poettering
2023-07-05 17:54:59 +02:00
parent 3a59c55f67
commit e987d54baf
+4 -3
View File
@@ -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;