diff options
Diffstat (limited to 'src/shared/uki-util.h')
-rw-r--r-- | src/shared/uki-util.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/shared/uki-util.h b/src/shared/uki-util.h new file mode 100644 index 0000000000..e579f46259 --- /dev/null +++ b/src/shared/uki-util.h @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once + +#include <errno.h> + +#include "macro.h" + +typedef enum KernelType { + KERNEL_TYPE_UNKNOWN, + KERNEL_TYPE_UKI, + KERNEL_TYPE_PE, + _KERNEL_TYPE_MAX, + _KERNEL_TYPE_INVALID = -EINVAL, +} KernelType; + +const char* kernel_type_to_string(KernelType t) _const_; + +int inspect_kernel( + const char *filename, + KernelType *ret_type, + char **ret_cmdline, + char **ret_uname, + char **ret_pretty_name); |