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
@ -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