summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2015-11-17 10:07:43 +0000
committerniruiyu <niruiyu@Edk2>2015-11-17 10:07:43 +0000
commitd95ff8e8d86b36482b815141233f6c315b43c203 (patch)
tree46dd90047b4b2097ba9c86c0849c294e17012551 /MdeModulePkg
parent83952535190234651389fb0b1aabe7bf216d6e16 (diff)
downloadedk2-platforms-d95ff8e8d86b36482b815141233f6c315b43c203.tar.xz
MdeModulePkg: Add Bm prefix for internal functions
Change VARIABLE_VISITOR to BM_VARIABLE_VISITOR Change ForEachVariable to BmForEachVariable Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Sunny Wang <sunnywang@hpe.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18854 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Library/UefiBootManagerLib/BmLoadOption.c2
-rw-r--r--MdeModulePkg/Library/UefiBootManagerLib/InternalBm.h14
2 files changed, 12 insertions, 4 deletions
diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmLoadOption.c b/MdeModulePkg/Library/UefiBootManagerLib/BmLoadOption.c
index 07c3376392..07e6249629 100644
--- a/MdeModulePkg/Library/UefiBootManagerLib/BmLoadOption.c
+++ b/MdeModulePkg/Library/UefiBootManagerLib/BmLoadOption.c
@@ -37,7 +37,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED
**/
VOID
BmForEachVariable (
- VARIABLE_VISITOR Visitor,
+ BM_VARIABLE_VISITOR Visitor,
VOID *Context
)
{
diff --git a/MdeModulePkg/Library/UefiBootManagerLib/InternalBm.h b/MdeModulePkg/Library/UefiBootManagerLib/InternalBm.h
index 5af7f3ba9f..290ce3fc54 100644
--- a/MdeModulePkg/Library/UefiBootManagerLib/InternalBm.h
+++ b/MdeModulePkg/Library/UefiBootManagerLib/InternalBm.h
@@ -105,9 +105,17 @@ CHAR16 *
#define BM_OPTION_NAME_LEN sizeof ("SysPrep####")
extern CHAR16 *mBmLoadOptionName[];
+/**
+ Visitor function to be called by BmForEachVariable for each variable
+ in variable storage.
+
+ @param Name Variable name.
+ @param Guid Variable GUID.
+ @param Context The same context passed to BmForEachVariable.
+**/
typedef
VOID
-(*VARIABLE_VISITOR) (
+(*BM_VARIABLE_VISITOR) (
CHAR16 *Name,
EFI_GUID *Guid,
VOID *Context
@@ -120,8 +128,8 @@ VOID
@param Context The context passed to Visitor function.
**/
VOID
-ForEachVariable (
- VARIABLE_VISITOR Visitor,
+BmForEachVariable (
+ BM_VARIABLE_VISITOR Visitor,
VOID *Context
);