summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/efi/efi_path.h
diff options
context:
space:
mode:
authorMichael Brown2022-12-22 14:33:38 +0100
committerMichael Brown2022-12-22 14:34:28 +0100
commit099e4d39b355a10b0bc7d23bb0e96615bf06470b (patch)
tree0d92cb14109fe07f6055d5c67b256646629bfcc0 /src/include/ipxe/efi/efi_path.h
parent[efi] Allow passing a NULL device path to path utility functions (diff)
downloadipxe-099e4d39b355a10b0bc7d23bb0e96615bf06470b.tar.gz
ipxe-099e4d39b355a10b0bc7d23bb0e96615bf06470b.tar.xz
ipxe-099e4d39b355a10b0bc7d23bb0e96615bf06470b.zip
[efi] Expose efi_path_next() utility function
Provide a single central implementation of the logic for stepping through elements of an EFI device path. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi/efi_path.h')
-rw-r--r--src/include/ipxe/efi/efi_path.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/ipxe/efi/efi_path.h b/src/include/ipxe/efi/efi_path.h
index 76ded728..18810a75 100644
--- a/src/include/ipxe/efi/efi_path.h
+++ b/src/include/ipxe/efi/efi_path.h
@@ -22,6 +22,8 @@ struct ib_srp_device;
struct usb_function;
extern EFI_DEVICE_PATH_PROTOCOL *
+efi_path_next ( EFI_DEVICE_PATH_PROTOCOL *path );
+extern EFI_DEVICE_PATH_PROTOCOL *
efi_path_end ( EFI_DEVICE_PATH_PROTOCOL *path );
extern size_t efi_path_len ( EFI_DEVICE_PATH_PROTOCOL *path );
extern EFI_DEVICE_PATH_PROTOCOL * efi_paths ( EFI_DEVICE_PATH_PROTOCOL *first,