MdePkg UefiLib: Make the event empty function public
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=298 Then this event empty function can be used to remove the duplication in drivers and other libraries. Cc: Liming Gao <liming.gao@intel.com> Cc: Michael Kinney <michael.d.kinney@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
(EDK/EFI 1.10) and new (EDK II/UEFI 2.0) way. This module is a DXE driver as
|
||||
it contains DXE enum extensions for EFI event services.
|
||||
|
||||
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
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
|
||||
@@ -46,7 +46,7 @@ EfiCreateEventLegacyBoot (
|
||||
{
|
||||
return EfiCreateEventLegacyBootEx (
|
||||
TPL_CALLBACK,
|
||||
InternalEmptyFunction,
|
||||
EfiEventEmptyFunction,
|
||||
NULL,
|
||||
LegacyBootEvent
|
||||
);
|
||||
@@ -99,7 +99,7 @@ EfiCreateEventLegacyBootEx (
|
||||
// CreateEventEx will check NotifyFunction is NULL or not and return error.
|
||||
// Use dummy routine for the case NotifyFunction is NULL.
|
||||
//
|
||||
WorkerNotifyFunction = InternalEmptyFunction;
|
||||
WorkerNotifyFunction = EfiEventEmptyFunction;
|
||||
} else {
|
||||
WorkerNotifyFunction = NotifyFunction;
|
||||
}
|
||||
@@ -141,7 +141,7 @@ EfiCreateEventReadyToBoot (
|
||||
{
|
||||
return EfiCreateEventReadyToBootEx (
|
||||
TPL_CALLBACK,
|
||||
InternalEmptyFunction,
|
||||
EfiEventEmptyFunction,
|
||||
NULL,
|
||||
ReadyToBootEvent
|
||||
);
|
||||
@@ -194,7 +194,7 @@ EfiCreateEventReadyToBootEx (
|
||||
// CreateEventEx will check NotifyFunction is NULL or not and return error.
|
||||
// Use dummy routine for the case NotifyFunction is NULL.
|
||||
//
|
||||
WorkerNotifyFunction = InternalEmptyFunction;
|
||||
WorkerNotifyFunction = EfiEventEmptyFunction;
|
||||
} else {
|
||||
WorkerNotifyFunction = NotifyFunction;
|
||||
}
|
||||
|
Reference in New Issue
Block a user