summaryrefslogtreecommitdiff
path: root/src/boot/efi/proto
diff options
context:
space:
mode:
authorJan Janssen <medhefgo@web.de>2023-01-07 11:58:14 +0100
committerJan Janssen <medhefgo@web.de>2023-02-22 21:54:11 +0100
commit0b9266282176a969a2e8178570b7876751aa65b9 (patch)
tree54c5181b0bea3618b4438fe5832dea2c8ffbbe4f /src/boot/efi/proto
parentd755ac62149110ee716f6a9f5da3161144c293af (diff)
downloadsystemd-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.h17
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);
-}