OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
ValidateDeviceProperties.c File Reference
#include "ocvalidate.h"
#include "OcValidateLib.h"

Go to the source code of this file.

Functions

STATIC BOOLEAN DevPropsAddHasDuplication (IN CONST VOID *PrimaryEntry, IN CONST VOID *SecondaryEntry)
 
STATIC BOOLEAN DevPropsDeleteHasDuplication (IN CONST VOID *PrimaryEntry, IN CONST VOID *SecondaryEntry)
 
STATIC UINT32 CheckDevicePropertiesAdd (IN OC_GLOBAL_CONFIG *Config)
 
STATIC UINT32 CheckDevicePropertiesDelete (IN OC_GLOBAL_CONFIG *Config)
 
UINT32 CheckDeviceProperties (IN OC_GLOBAL_CONFIG *Config)
 

Detailed Description

Copyright (C) 2018, vit9696. All rights reserved. Copyright (C) 2020, PMheart. All rights reserved.

All rights reserved.

This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Definition in file ValidateDeviceProperties.c.

Function Documentation

◆ CheckDeviceProperties()

UINT32 CheckDeviceProperties ( IN OC_GLOBAL_CONFIG * Config)

Validate OpenCore Configuration DeviceProperties Section.

Parameters
[in]ConfigConfiguration structure.
Returns
Number of errors detected in DeviceProperties.

Definition at line 204 of file ValidateDeviceProperties.c.

◆ CheckDevicePropertiesAdd()

STATIC UINT32 CheckDevicePropertiesAdd ( IN OC_GLOBAL_CONFIG * Config)

Definition at line 77 of file ValidateDeviceProperties.c.

◆ CheckDevicePropertiesDelete()

STATIC UINT32 CheckDevicePropertiesDelete ( IN OC_GLOBAL_CONFIG * Config)

Definition at line 142 of file ValidateDeviceProperties.c.

◆ DevPropsAddHasDuplication()

STATIC BOOLEAN DevPropsAddHasDuplication ( IN CONST VOID * PrimaryEntry,
IN CONST VOID * SecondaryEntry )

Callback function to verify whether one entry is duplicated in DeviceProperties->Add.

Parameters
[in]PrimaryEntryPrimary entry to be checked.
[in]SecondaryEntrySecondary entry to be checked.
Return values
TRUEIf PrimaryEntry and SecondaryEntry are duplicated.

Definition at line 29 of file ValidateDeviceProperties.c.

◆ DevPropsDeleteHasDuplication()

STATIC BOOLEAN DevPropsDeleteHasDuplication ( IN CONST VOID * PrimaryEntry,
IN CONST VOID * SecondaryEntry )

Callback function to verify whether one entry is duplicated in DeviceProperties->Delete.

Parameters
[in]PrimaryEntryPrimary entry to be checked.
[in]SecondaryEntrySecondary entry to be checked.
Return values
TRUEIf PrimaryEntry and SecondaryEntry are duplicated.

Definition at line 57 of file ValidateDeviceProperties.c.