summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2021-07-02 14:22:55 -0400
committerPeter Jones <pjones@redhat.com>2021-07-20 09:44:25 -0400
commit9e4f38abe61b600826360c14729cc54ea3ec7c3c (patch)
tree8cfcaaf805ac14ef56b3b848a5a355878d359f6b /include
parentcedfa69e6afe381a074d22bdf1e6f2d9e6731038 (diff)
downloadefi-boot-shim-9e4f38abe61b600826360c14729cc54ea3ec7c3c.tar.gz
efi-boot-shim-9e4f38abe61b600826360c14729cc54ea3ec7c3c.zip
shim: move the bulk of set_second_stage() to its own file
This moves set_second_stage() and some of the helper functions it uses out of shim.c, so that it's easier to write test cases for. Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/load-options.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/load-options.h b/include/load-options.h
new file mode 100644
index 00000000..d2bee3bb
--- /dev/null
+++ b/include/load-options.h
@@ -0,0 +1,20 @@
+// SPDX-License-Identifier: BSD-2-Clause-Patent
+/*
+ * load-options.h - all the stuff we need to parse the load options
+ */
+
+#ifndef SHIM_ARGV_H_
+#define SHIM_ARGV_H_
+
+EFI_STATUS generate_path_from_image_path(EFI_LOADED_IMAGE *li,
+ CHAR16 *ImagePath,
+ CHAR16 **PathName);
+
+EFI_STATUS parse_load_options(EFI_LOADED_IMAGE *li);
+
+extern CHAR16 *second_stage;
+extern void *load_options;
+extern UINT32 load_options_size;
+
+#endif /* !SHIM_ARGV_H_ */
+// vim:fenc=utf-8:tw=75:noet