OpenCore
1.0.4
OpenCore Bootloader
|
#include <Base.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/OcAppleKernelLib.h>
#include <Library/OcMiscLib.h>
#include <Library/OcStringLib.h>
#include "PrelinkedInternal.h"
Go to the source code of this file.
Functions | |
UINT32 | OcParseDarwinVersion (IN CONST CHAR8 *String) |
BOOLEAN | OcMatchDarwinVersion (IN UINT32 CurrentVersion OPTIONAL, IN UINT32 MinVersion OPTIONAL, IN UINT32 MaxVersion OPTIONAL) |
UINT32 | OcKernelReadDarwinVersion (IN CONST UINT8 *Kernel, IN UINT32 KernelSize) |
Copyright (C) 2019, vit9696. 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 KernelVersion.c.
UINT32 OcKernelReadDarwinVersion | ( | IN CONST UINT8 * | Kernel, |
IN UINT32 | KernelSize ) |
Read Apple kernel version in integer format.
[in] | Kernel | Apple kernel binary. |
[in] | KernelSize | Apple kernel size. |
Definition at line 116 of file KernelVersion.c.
BOOLEAN OcMatchDarwinVersion | ( | IN UINT32 CurrentVersion | OPTIONAL, |
IN UINT32 MinVersion | OPTIONAL, | ||
IN UINT32 MaxVersion | OPTIONAL ) |
Check whether min <= current <= max is true. When current or max are 0 they are considered infinite.
[in] | CurrentVersion | Current kernel version. |
[in] | MinVersion | Minimal kernel version. |
[in] | MaxVersion | Maximum kernel version. |
Definition at line 73 of file KernelVersion.c.
UINT32 OcParseDarwinVersion | ( | IN CONST CHAR8 * | String | ) |
Create Apple kernel version in integer format. See KERNEL_VERSION on how to build it from integers.
[in] | String | Apple kernel version. |
Definition at line 27 of file KernelVersion.c.