1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00

Add efi_freebsd_delenv

Add a wrapper around efi_delenv akin to efi_freebsd_getenv and
efi_getenv.
This commit is contained in:
Warner Losh 2019-04-25 20:09:49 +00:00
parent 0eb610e8e3
commit 751241a7c7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=346702
2 changed files with 8 additions and 1 deletions

View File

@ -126,6 +126,7 @@ void cpy16to8(const CHAR16 *, char *, size_t);
*/
EFI_STATUS efi_delenv(EFI_GUID *guid, const char *varname);
EFI_STATUS efi_freebsd_delenv(const char *varname);
EFI_STATUS efi_freebsd_getenv(const char *v, void *data, __size_t *len);
EFI_STATUS efi_getenv(EFI_GUID *g, const char *v, void *data, __size_t *len);
EFI_STATUS efi_global_getenv(const char *v, void *data, __size_t *len);

View File

@ -119,5 +119,11 @@ efi_delenv(EFI_GUID *guid, const char *name)
rv = RS->SetVariable(var, guid, 0, 0, NULL);
free(var);
return rv;
return (rv);
}
EFI_STATUS
efi_freebsd_delenv(const char *name)
{
return (efi_delenv(&FreeBSDBootVarGUID, name));
}