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:
parent
0eb610e8e3
commit
751241a7c7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=346702
@ -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);
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user