diff options
author | Jaben Carsey <jaben.carsey@intel.com> | 2014-08-05 18:03:49 +0000 |
---|---|---|
committer | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-08-05 18:03:49 +0000 |
commit | 6306fd90b7056d69ea4519afc25121cc5bc9bce9 (patch) | |
tree | 96a9b00611ada1c3ab23a6d19174286e54218ea8 /ShellPkg/Include | |
parent | 044ea4e54e0d2992d55582b6cfcb5d24156ae65d (diff) | |
download | edk2-6306fd90b7056d69ea4519afc25121cc5bc9bce9.tar.gz edk2-6306fd90b7056d69ea4519afc25121cc5bc9bce9.tar.bz2 edk2-6306fd90b7056d69ea4519afc25121cc5bc9bce9.zip |
ShellPkg: Add Dynamic GUID registration into the current GUID<->String conversion process
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15753 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Include')
-rw-r--r-- | ShellPkg/Include/Library/HandleParsingLib.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ShellPkg/Include/Library/HandleParsingLib.h b/ShellPkg/Include/Library/HandleParsingLib.h index c7e9319023..1c9ed49d6c 100644 --- a/ShellPkg/Include/Library/HandleParsingLib.h +++ b/ShellPkg/Include/Library/HandleParsingLib.h @@ -18,6 +18,27 @@ #include <Uefi.h>
/**
+ Function to add a new GUID/Name mapping.
+
+ This cannot overwrite an existing mapping.
+
+ @param[in] Guid The Guid
+ @param[in] TheName The Guid's name
+ @param[in] Lang RFC4646 language code list or NULL
+
+ @retval EFI_SUCCESS The operation was sucessful
+ @retval EFI_ACCESS_DENIED There was a duplicate
+ @retval EFI_OUT_OF_RESOURCES A memory allocation failed
+**/
+EFI_STATUS
+EFIAPI
+AddNewGuidNameMapping(
+ IN CONST EFI_GUID *Guid,
+ IN CONST CHAR16 *TheName,
+ IN CONST CHAR8 *Lang OPTIONAL
+ );
+
+/**
Function to get the name of a protocol or struct from it's GUID.
If Guid is NULL, then ASSERT.
|