From 1508ece179267943bad5851010eba8c00570c0ed Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Fri, 17 Jan 2025 14:13:46 -0500 Subject: Move is_removable_media_path() to a shared location. We need to use is_removable_media_path(), and potentially other helpers, from Mok as well as shim. This moves it to a file just for Device Path utility functions to make that simpler. Signed-off-by: Peter Jones --- include/dp.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 include/dp.h (limited to 'include/dp.h') diff --git a/include/dp.h b/include/dp.h new file mode 100644 index 00000000..884c1460 --- /dev/null +++ b/include/dp.h @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: BSD-2-Clause-Patent +/* + * dp.h - device path helper functions + * Copyright Peter Jones + */ + +#ifndef DP_H_ +#define DP_H_ + +int +is_removable_media_path(EFI_LOADED_IMAGE *li); + +#endif /* !DP_H_ */ +// vim:fenc=utf-8:tw=75:noet -- cgit v1.2.3