X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=lib%2Ftypes%2Ftypes.c;h=95a3a48cb4fca9571fa9a6eac54449b9c2378c2e;hp=059e52a803db88eff5ed81477eba8c228b8d4937;hb=b9af039e99527159aad905c3395fa974b9621f8e;hpb=893cfce3e9ea91a68e678829fb8e7e37102e2b41 diff --git a/lib/types/types.c b/lib/types/types.c index 059e52a..95a3a48 100644 --- a/lib/types/types.c +++ b/lib/types/types.c @@ -2,6 +2,26 @@ #include #include +const char *ipmi_bootdev_display_name(enum ipmi_bootdev bootdev) +{ + switch (bootdev) { + case IPMI_BOOTDEV_NONE: + return _("None"); + case IPMI_BOOTDEV_NETWORK: + return _("Network"); + case IPMI_BOOTDEV_DISK: + return _("Disk"); + case IPMI_BOOTDEV_SAFE: + return _("Safe Mode"); + case IPMI_BOOTDEV_CDROM: + return _("Optical"); + case IPMI_BOOTDEV_SETUP: + return _("Setup Mode"); + default: + return _("Unknown"); + } +} + const char *device_type_display_name(enum device_type type) { switch (type) {