]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add wrapper functions to convert strings to EFI_DEVICE_PATH
authorimp <imp@FreeBSD.org>
Fri, 19 Apr 2019 19:45:19 +0000 (19:45 +0000)
committerimp <imp@FreeBSD.org>
Fri, 19 Apr 2019 19:45:19 +0000 (19:45 +0000)
commitdfe617c9908c44b38e61378673675a664fbb0f09
tree13cb626acbc2a07a403b8a40e16e94c6b10b81c2
parent1265579771024f63e1582e6f149924e393108e92
Add wrapper functions to convert strings to EFI_DEVICE_PATH

In anticipation of new functionality, create routines to convert char *
and a CHAR16 * to a EFI_DEVICE_PATH
EFI_DEVICE_PATH *efi_name_to_devpath(const char *path);
EFI_DEVICE_PATH *efi_name_to_devpath16(CHAR16 *path);
void efi_devpath_free(EFI_DEVICE_PATH *dp);
The first two return an EFI_DEVICE_PATH for the passed in paths. The
third frees up the storage the first two return when the caller is
done with it.

Differential Revision: https://reviews.freebsd.org/D19971
stand/efi/include/efilib.h
stand/efi/libefi/devpath.c