summaryrefslogtreecommitdiff
path: root/src/shared/bootspec.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-03-24 17:15:50 +0100
committerLennart Poettering <lennart@poettering.net>2022-03-28 16:02:15 +0200
commitaf9ae7502614741601565ba94569570363d9ac39 (patch)
tree5b883f4d614f01ada38e3ad09e5c2d8f315d6325 /src/shared/bootspec.h
parent3f8e42c03828ff2da0392111b394fac6f5d3c3da (diff)
downloadsystemd-af9ae7502614741601565ba94569570363d9ac39.tar.gz
bootspec: normalize function names/parameter lists
This normalizes naming of functions operating on BootConfig objects. Let's always call them boot_config_xyz(), like our usual way to name stuff. moreover, move the BootConfig parameter to the beginning, as it's not a return value (which we typically move to the end of the parameter list), but simply an object, that even happens to be initialized already. With these changes the functions are more like our usual way to call things, and less surprises are good.
Diffstat (limited to 'src/shared/bootspec.h')
-rw-r--r--src/shared/bootspec.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/bootspec.h b/src/shared/bootspec.h
index 02ccd90aee..99bc5f69a4 100644
--- a/src/shared/bootspec.h
+++ b/src/shared/bootspec.h
@@ -83,9 +83,9 @@ static inline BootEntry* boot_config_default_entry(BootConfig *config) {
void boot_config_free(BootConfig *config);
-int boot_entries_load_config(const char *esp_path, const char *xbootldr_path, BootConfig *config);
-int boot_entries_load_config_auto(const char *override_esp_path, const char *override_xbootldr_path, BootConfig *config);
-int boot_entries_augment_from_loader(BootConfig *config, char **list, bool only_auto);
+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);
+int boot_config_augment_from_loader(BootConfig *config, char **list, bool only_auto);
int boot_config_select_special_entries(BootConfig *config);