IntelFrameworkPkg 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 D Kinney <michael.d.kinney@intel.com> Cc: Jeff Fan <jeff.fan@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com>
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
EFI Driver Model related protocols, manage Unicode string tables for UEFI Drivers,
|
EFI Driver Model related protocols, manage Unicode string tables for UEFI Drivers,
|
||||||
and print messages on the console output and standard error devices.
|
and print messages on the console output and standard error devices.
|
||||||
|
|
||||||
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
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@@ -310,7 +310,7 @@ EfiEventGroupSignal (
|
|||||||
Status = gBS->CreateEventEx (
|
Status = gBS->CreateEventEx (
|
||||||
EVT_NOTIFY_SIGNAL,
|
EVT_NOTIFY_SIGNAL,
|
||||||
TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
InternalEmptyFunction,
|
EfiEventEmptyFunction,
|
||||||
NULL,
|
NULL,
|
||||||
EventGroup,
|
EventGroup,
|
||||||
&Event
|
&Event
|
||||||
@@ -325,6 +325,24 @@ EfiEventGroupSignal (
|
|||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
An empty function that can be used as NotifyFunction parameter of
|
||||||
|
CreateEvent() or CreateEventEx().
|
||||||
|
|
||||||
|
@param Event Event whose notification function is being invoked.
|
||||||
|
@param Context The pointer to the notification function's context,
|
||||||
|
which is implementation-dependent.
|
||||||
|
|
||||||
|
**/
|
||||||
|
VOID
|
||||||
|
EFIAPI
|
||||||
|
EfiEventEmptyFunction (
|
||||||
|
IN EFI_EVENT Event,
|
||||||
|
IN VOID *Context
|
||||||
|
)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the current TPL.
|
Returns the current TPL.
|
||||||
|
|
||||||
@@ -1457,23 +1475,3 @@ GetBestLanguage (
|
|||||||
//
|
//
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
An empty function to pass error checking of CreateEventEx ().
|
|
||||||
|
|
||||||
This empty function ensures that EVT_NOTIFY_SIGNAL_ALL is error
|
|
||||||
checked correctly since it is now mapped into CreateEventEx() in UEFI 2.0.
|
|
||||||
|
|
||||||
@param Event Event whose notification function is being invoked.
|
|
||||||
@param Context Pointer to the notification function's context,
|
|
||||||
which is implementation-dependent.
|
|
||||||
|
|
||||||
**/
|
|
||||||
VOID
|
|
||||||
EFIAPI
|
|
||||||
InternalEmptyFunction (
|
|
||||||
IN EFI_EVENT Event,
|
|
||||||
IN VOID *Context
|
|
||||||
)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Internal include file for UefiLib.
|
Internal include file for UefiLib.
|
||||||
|
|
||||||
Copyright (c) 2007 - 2008, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@@ -41,22 +41,4 @@
|
|||||||
#include <Library/PrintLib.h>
|
#include <Library/PrintLib.h>
|
||||||
#include <Library/DevicePathLib.h>
|
#include <Library/DevicePathLib.h>
|
||||||
|
|
||||||
/**
|
|
||||||
An empty function to pass error checking of CreateEventEx ().
|
|
||||||
|
|
||||||
This empty function ensures that EVT_NOTIFY_SIGNAL_ALL is error
|
|
||||||
checked correctly since it is now mapped into CreateEventEx() in UEFI 2.0.
|
|
||||||
|
|
||||||
@param Event Event whose notification function is being invoked.
|
|
||||||
@param Context Pointer to the notification function's context,
|
|
||||||
which is implementation-dependent.
|
|
||||||
|
|
||||||
**/
|
|
||||||
VOID
|
|
||||||
EFIAPI
|
|
||||||
InternalEmptyFunction (
|
|
||||||
IN EFI_EVENT Event,
|
|
||||||
IN VOID *Context
|
|
||||||
);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -45,7 +45,7 @@ EfiCreateEventLegacyBoot (
|
|||||||
{
|
{
|
||||||
return EfiCreateEventLegacyBootEx (
|
return EfiCreateEventLegacyBootEx (
|
||||||
TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
InternalEmptyFunction,
|
EfiEventEmptyFunction,
|
||||||
NULL,
|
NULL,
|
||||||
LegacyBootEvent
|
LegacyBootEvent
|
||||||
);
|
);
|
||||||
@@ -135,7 +135,7 @@ EfiCreateEventReadyToBoot (
|
|||||||
{
|
{
|
||||||
return EfiCreateEventReadyToBootEx (
|
return EfiCreateEventReadyToBootEx (
|
||||||
TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
InternalEmptyFunction,
|
EfiEventEmptyFunction,
|
||||||
NULL,
|
NULL,
|
||||||
ReadyToBootEvent
|
ReadyToBootEvent
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user