/* Also registers the internal pointer for the GetVariable helper. */
EFI_STATUS EFIAPI InitVariablePolicyLib(IN EFI_GET_VARIABLE GetVariableHelper)
/* Also registers the internal pointer for the GetVariable helper. */
EFI_STATUS EFIAPI InitVariablePolicyLib(IN EFI_GET_VARIABLE GetVariableHelper)
{
  EFI_STATUS  Status;
  Status = EFI_SUCCESS;
  if (mGetVariableHelper != NULL) {
    return EFI_ALREADY_STARTED;
  }
  if (!EFI_ERROR (Status)) {
    Status = VariablePolicyExtraInit ();
  }
  if (!EFI_ERROR (Status)) {
    mGetVariableHelper = GetVariableHelper;
    mInterfaceLocked    = FALSE;
    mProtectionDisabled = FALSE;
    mPolicyTable        = NULL;
    mCurrentTableSize   = 0;
    mCurrentTableUsage  = 0;
    mCurrentTableCount  = 0;
  }
  return Status;
}