diff options
author | Jan Janssen <medhefgo@web.de> | 2023-01-07 11:58:14 +0100 |
---|---|---|
committer | Jan Janssen <medhefgo@web.de> | 2023-02-22 21:54:11 +0100 |
commit | 0b9266282176a969a2e8178570b7876751aa65b9 (patch) | |
tree | 54c5181b0bea3618b4438fe5832dea2c8ffbbe4f /src/boot/efi/proto | |
parent | d755ac62149110ee716f6a9f5da3161144c293af (diff) | |
download | systemd-0b9266282176a969a2e8178570b7876751aa65b9.tar.gz |
boot: Move more device path helpers to device-path-util.c
This also renames them to stay consistent with our naming style.
Diffstat (limited to 'src/boot/efi/proto')
-rw-r--r-- | src/boot/efi/proto/device-path.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/boot/efi/proto/device-path.h b/src/boot/efi/proto/device-path.h index f6583b3697..df7a6a08f9 100644 --- a/src/boot/efi/proto/device-path.h +++ b/src/boot/efi/proto/device-path.h @@ -81,20 +81,3 @@ typedef struct { EFI_DEVICE_PATH* (EFIAPI *ConvertTextToDevicPath)( const char16_t *ConvertTextToDevicPath); } EFI_DEVICE_PATH_FROM_TEXT_PROTOCOL; - -static inline EFI_DEVICE_PATH *NextDevicePathNode(const EFI_DEVICE_PATH *dp) { - assert(dp); - return (EFI_DEVICE_PATH *) ((uint8_t *) dp + dp->Length); -} - -static inline bool IsDevicePathEnd(const EFI_DEVICE_PATH *dp) { - assert(dp); - return dp->Type == END_DEVICE_PATH_TYPE && dp->SubType == END_ENTIRE_DEVICE_PATH_SUBTYPE; -} - -static inline void SetDevicePathEndNode(EFI_DEVICE_PATH *dp) { - assert(dp); - dp->Type = END_DEVICE_PATH_TYPE; - dp->SubType = END_ENTIRE_DEVICE_PATH_SUBTYPE; - dp->Length = sizeof(EFI_DEVICE_PATH); -} |