Skip to content

Commit

Permalink
OcAppleKernelLib: Make quirk Patcher parameter optional (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
PMheart authored Jul 3, 2022
1 parent 99067b4 commit 9e8d279
Show file tree
Hide file tree
Showing 2 changed files with 143 additions and 52 deletions.
8 changes: 4 additions & 4 deletions Include/Acidanthera/Library/OcAppleKernelLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -616,15 +616,15 @@ typedef enum {
/**
Kernel quirk patch function.
@param[in,out] Patcher A pointer to the patcher context.
@param[in,out] Patcher A pointer to the patcher context. Only optional for kext patching.
@param[in] KernelVersion Kernel version to be matched.
@return EFI_SUCCESS when the patch is successfully applied.
**/
typedef
EFI_STATUS
(KERNEL_QUIRK_PATCH_FUNCTION) (
IN OUT PATCHER_CONTEXT *Patcher,
IN OUT PATCHER_CONTEXT *Patcher OPTIONAL,
IN UINT32 KernelVersion
);

Expand All @@ -646,15 +646,15 @@ typedef struct {
Applies the specified quirk.
@param[in] Name KERNEL_QUIRK_NAME specifying the quirk name.
@param[in,out] Patcher PATCHER_CONTEXT instance.
@param[in,out] Patcher PATCHER_CONTEXT instance. Only optional for kext patching.
@param[in] KernelVersion Current kernel version.
@returns EFI_SUCCESS on success.
**/
EFI_STATUS
KernelApplyQuirk (
IN KERNEL_QUIRK_NAME Name,
IN OUT PATCHER_CONTEXT *Patcher,
IN OUT PATCHER_CONTEXT *Patcher OPTIONAL,
IN UINT32 KernelVersion
);

Expand Down
Loading

0 comments on commit 9e8d279

Please sign in to comment.