X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FInclude%2FLibrary%2FUefiLib.h;h=0b14792a0a7fa98ec3604ba102b46972e3b8310f;hb=074583572668d320884b1d51605592a917558259;hp=340a0300306e0f5d140ad7b1aba3d7f65f942529;hpb=db2ef756bae064a2fb5536356a2a1a0aa54138be;p=mirror_edk2.git diff --git a/MdePkg/Include/Library/UefiLib.h b/MdePkg/Include/Library/UefiLib.h index 340a030030..0b14792a0a 100644 --- a/MdePkg/Include/Library/UefiLib.h +++ b/MdePkg/Include/Library/UefiLib.h @@ -8,11 +8,15 @@ EFI Driver Model related protocols, manage Unicode string tables for UEFI Drivers, and print messages on the console output and standard error devices. -Copyright (c) 2006 - 2008, Intel Corporation
-All rights reserved. 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 -http://opensource.org/licenses/bsd-license.php + Note that a reserved macro named MDEPKG_NDEBUG is introduced for the intention + of size reduction when compiler optimization is disabled. If MDEPKG_NDEBUG is + defined, then debug and assert related macros wrapped by it are the NULL implementations. + +Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available under +the terms and conditions of the BSD License that accompanies this distribution. +The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php. THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. @@ -60,9 +64,9 @@ typedef struct { /** Macro that returns the number of 100 ns units for a specified number of microseconds. - Useful for managing EFI timer events. + This is useful for managing EFI timer events. - @param Microseconds Number of microseconds. + @param Microseconds The number of microseconds. @return The number of 100 ns units equivalent to the number of microseconds specified by Microseconds. @@ -72,9 +76,9 @@ typedef struct { /** Macro that returns the number of 100 ns units for a specified number of milliseconds. - Useful for managing EFI timer events. + This is useful for managing EFI timer events. - @param Milliseconds Number of milliseconds. + @param Milliseconds The number of milliseconds. @return The number of 100 ns units equivalent to the number of milliseconds specified by Milliseconds. @@ -84,9 +88,9 @@ typedef struct { /** Macro that returns the number of 100 ns units for a specified number of seconds. - Useful for managing EFI timer events. + This is useful for managing EFI timer events. - @param Seconds Number of seconds. + @param Seconds The number of seconds. @return The number of 100 ns units equivalent to the number of seconds specified by Seconds. @@ -113,14 +117,14 @@ typedef struct { based on a specified GUID. This function searches the list of configuration tables stored in the EFI System Table - for a table with a GUID that matches TableGuid. If a match is found, then a pointer to - the configuration table is returned in Table., and EFI_SUCCESS is returned. If a matching GUID + for a table with a GUID that matches TableGuid. If a match is found, then a pointer to + the configuration table is returned in Table, and EFI_SUCCESS is returned. If a matching GUID is not found, then EFI_NOT_FOUND is returned. If TableGuid is NULL, then ASSERT(). If Table is NULL, then ASSERT(). - @param TableGuid Pointer to table's GUID type.. - @param Table Pointer to the table associated with TableGuid in the EFI System Table. + @param TableGuid The pointer to table's GUID type.. + @param Table The pointer to the table associated with TableGuid in the EFI System Table. @retval EFI_SUCCESS A configuration table matching TableGuid was found. @retval EFI_NOT_FOUND A configuration table matching TableGuid could not be found. @@ -187,7 +191,7 @@ EfiCreateProtocolNotifyEvent( @param Registration A pointer to a memory location to receive the registration value. @retval EFI_SUCCESS A named event was created. - @retval EFI_OUT_OF_RESOURCES There are not enough resource to create the named event. + @retval EFI_OUT_OF_RESOURCES There are not enough resources to create the named event. **/ EFI_STATUS @@ -207,10 +211,10 @@ EfiNamedEventListen ( created with EfiNamedEventListen(). If Name is NULL, then ASSERT(). - @param Name Supplies GUID name of the event. + @param Name Supplies the GUID name of the event. @retval EFI_SUCCESS A named event was signaled. - @retval EFI_OUT_OF_RESOURCES There are not enough resource to signal the named event. + @retval EFI_OUT_OF_RESOURCES There are not enough resources to signal the named event. **/ EFI_STATUS @@ -219,6 +223,40 @@ EfiNamedEventSignal ( IN CONST EFI_GUID *Name ); +/** + Signals an event group by placing a new event in the group temporarily and + signaling it. + + @param[in] EventGroup Supplies the unique identifier of the event + group to signal. + + @retval EFI_SUCCESS The event group was signaled successfully. + @retval EFI_INVALID_PARAMETER EventGroup is NULL. + @return Error codes that report problems about event + creation or signaling. +**/ +EFI_STATUS +EFIAPI +EfiEventGroupSignal ( + IN CONST EFI_GUID *EventGroup + ); + +/** + 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. @@ -248,7 +286,7 @@ EfiGetCurrentTpl ( If Priority is not a valid TPL value, then ASSERT(). @param Lock A pointer to the lock data structure to initialize. - @param Priority EFI TPL associated with the lock. + @param Priority The EFI TPL associated with the lock. @return The lock. @@ -280,24 +318,30 @@ EfiInitializeLock ( /** Macro that calls DebugAssert() if an EFI_LOCK structure is not in the locked state. - If the DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of PcdDebugProperyMask is set, - then this macro evaluates the EFI_LOCK structure specified by Lock. If Lock - is not in the locked state, then DebugAssert() is called passing in the source - filename, source line number, and Lock. + If MDEPKG_NDEBUG is not defined and the DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED + bit of PcdDebugProperyMask is set, then this macro evaluates the EFI_LOCK + structure specified by Lock. If Lock is not in the locked state, then + DebugAssert() is called passing in the source filename, source line number, + and Lock. + If Lock is NULL, then ASSERT(). @param LockParameter A pointer to the lock to acquire. **/ -#define ASSERT_LOCKED(LockParameter) \ - do { \ - if (DebugAssertEnabled ()) { \ - ASSERT (LockParameter != NULL); \ - if ((LockParameter)->Lock != EfiLockAcquired) { \ - _ASSERT (LockParameter not locked); \ - } \ - } \ - } while (FALSE) +#if !defined(MDEPKG_NDEBUG) + #define ASSERT_LOCKED(LockParameter) \ + do { \ + if (DebugAssertEnabled ()) { \ + ASSERT (LockParameter != NULL); \ + if ((LockParameter)->Lock != EfiLockAcquired) { \ + _ASSERT (LockParameter not locked); \ + } \ + } \ + } while (FALSE) +#else + #define ASSERT_LOCKED(LockParameter) +#endif /** @@ -483,7 +527,7 @@ LookupUnicodeString ( that matches the language specified by Language. @param Iso639Language Specifies the supported language code format. If it is TRUE, then Language and SupportedLanguages follow ISO 639-2 language code format. - Otherwise, they follow RFC 4646 language code format. + Otherwise, they follow the RFC 4646 language code format. @retval EFI_SUCCESS The Unicode string that matches the language specified by Language @@ -619,8 +663,11 @@ FreeUnicodeStringTable ( IN EFI_UNICODE_STRING_TABLE *UnicodeStringTable ); +#ifndef DISABLE_NEW_DEPRECATED_INTERFACES /** + [ATTENTION] This function will be deprecated for security reason. + Returns a pointer to an allocated buffer that contains the contents of a variable retrieved through the UEFI Runtime Service GetVariable(). The returned buffer is allocated using AllocatePool(). The caller is responsible @@ -629,8 +676,8 @@ FreeUnicodeStringTable ( If Name is NULL, then ASSERT(). If Guid is NULL, then ASSERT(). - @param[in] Name Pointer to a Null-terminated Unicode string. - @param[in] Guid Pointer to an EFI_GUID structure + @param[in] Name The pointer to a Null-terminated Unicode string. + @param[in] Guid The pointer to an EFI_GUID structure. @retval NULL The variable could not be retrieved. @retval NULL There are not enough resources available for the variable contents. @@ -645,6 +692,8 @@ GetVariable ( ); /** + [ATTENTION] This function will be deprecated for security reason. + Returns a pointer to an allocated buffer that contains the contents of a variable retrieved through the UEFI Runtime Service GetVariable(). This function always uses the EFI_GLOBAL_VARIABLE GUID to retrieve variables. @@ -653,7 +702,7 @@ GetVariable ( If Name is NULL, then ASSERT(). - @param[in] Name Pointer to a Null-terminated Unicode string. + @param[in] Name The pointer to a Null-terminated Unicode string. @retval NULL The variable could not be retrieved. @retval NULL There are not enough resources available for the variable contents. @@ -665,7 +714,64 @@ EFIAPI GetEfiGlobalVariable ( IN CONST CHAR16 *Name ); +#endif + + +/** + Returns the status whether get the variable success. The function retrieves + variable through the UEFI Runtime Service GetVariable(). The + returned buffer is allocated using AllocatePool(). The caller is responsible + for freeing this buffer with FreePool(). + + If Name is NULL, then ASSERT(). + If Guid is NULL, then ASSERT(). + If Value is NULL, then ASSERT(). + + @param[in] Name The pointer to a Null-terminated Unicode string. + @param[in] Guid The pointer to an EFI_GUID structure + @param[out] Value The buffer point saved the variable info. + @param[out] Size The buffer size of the variable. + + @return EFI_OUT_OF_RESOURCES Allocate buffer failed. + @return EFI_SUCCESS Find the specified variable. + @return Others Errors Return errors from call to gRT->GetVariable. + +**/ +EFI_STATUS +EFIAPI +GetVariable2 ( + IN CONST CHAR16 *Name, + IN CONST EFI_GUID *Guid, + OUT VOID **Value, + OUT UINTN *Size OPTIONAL + ); +/** + Returns a pointer to an allocated buffer that contains the contents of a + variable retrieved through the UEFI Runtime Service GetVariable(). This + function always uses the EFI_GLOBAL_VARIABLE GUID to retrieve variables. + The returned buffer is allocated using AllocatePool(). The caller is + responsible for freeing this buffer with FreePool(). + + If Name is NULL, then ASSERT(). + If Value is NULL, then ASSERT(). + + @param[in] Name The pointer to a Null-terminated Unicode string. + @param[out] Value The buffer point saved the variable info. + @param[out] Size The buffer size of the variable. + + @return EFI_OUT_OF_RESOURCES Allocate buffer failed. + @return EFI_SUCCESS Find the specified variable. + @return Others Errors Return errors from call to gRT->GetVariable. + +**/ +EFI_STATUS +EFIAPI +GetEfiGlobalVariable2 ( + IN CONST CHAR16 *Name, + OUT VOID **Value, + OUT UINTN *Size OPTIONAL + ); /** Returns a pointer to an allocated buffer that contains the best matching language @@ -829,8 +935,8 @@ EfiSignalEventLegacyBoot ( @param LegacyBootEvent Returns the EFI event returned from gBS->CreateEvent(Ex). - @retval EFI_SUCCESS Event was created. - @retval Other Event was not created. + @retval EFI_SUCCESS The event was created. + @retval Other The event was not created. **/ EFI_STATUS @@ -854,8 +960,8 @@ EfiCreateEventLegacyBoot ( @param NotifyContext The content to pass to NotifyFunction when the event is signaled. @param LegacyBootEvent Returns the EFI event returned from gBS->CreateEvent(Ex). - @retval EFI_SUCCESS Event was created. - @retval Other Event was not created. + @retval EFI_SUCCESS The event was created. + @retval Other The event was not created. **/ EFI_STATUS @@ -880,8 +986,8 @@ EfiCreateEventLegacyBootEx ( @param ReadyToBootEvent Returns the EFI event returned from gBS->CreateEvent(Ex). - @retval EFI_SUCCESS Event was created. - @retval Other Event was not created. + @retval EFI_SUCCESS The event was created. + @retval Other The event was not created. **/ EFI_STATUS @@ -905,8 +1011,8 @@ EfiCreateEventReadyToBoot ( @param NotifyContext The content to pass to NotifyFunction when the event is signaled. @param ReadyToBootEvent Returns the EFI event returned from gBS->CreateEvent(Ex). - @retval EFI_SUCCESS Event was created. - @retval Other Event was not created. + @retval EFI_SUCCESS The event was created. + @retval Other The event was not created. **/ EFI_STATUS @@ -930,7 +1036,7 @@ EfiCreateEventReadyToBootEx ( If FvDevicePathNode is NULL, then ASSERT(). If NameGuid is NULL, then ASSERT(). - @param FvDevicePathNode Pointer to a FV device path node to initialize + @param FvDevicePathNode The pointer to a FV device path node to initialize @param NameGuid FV file name to use in FvDevicePathNode **/ @@ -948,12 +1054,12 @@ EfiInitializeFwVolDevicepathNode ( This library function abstracts validating a device path node. Check the MEDIA_FW_VOL_FILEPATH_DEVICE_PATH data structure to see if it's valid. If it is valid, then return the GUID file name from the device path node. Otherwise, - return NULL. This device path changed in the DXE CIS version 0.92 in a non back ward + return NULL. This device path changed in the DXE CIS version 0.92 in a non backward compatible way to not conflict with the UEFI 2.0 specification. This function abstracts the differences from the caller. If FvDevicePathNode is NULL, then ASSERT(). - @param FvDevicePathNode Pointer to FV device path to check. + @param FvDevicePathNode The pointer to FV device path to check. @retval NULL FvDevicePathNode is not valid. @retval Other FvDevicePathNode is valid and pointer to NameGuid was returned. @@ -976,9 +1082,10 @@ EfiGetNameGuidFromFwVolDevicePathNode ( PcdUefiLibMaxPrintBufferSize characters are sent to ConOut. If Format is NULL, then ASSERT(). If Format is not aligned on a 16-bit boundary, then ASSERT(). + If gST->ConOut is NULL, then ASSERT(). - @param Format Null-terminated Unicode format string. - @param ... Variable argument list whose contents are accessed based + @param Format A null-terminated Unicode format string. + @param ... The variable argument list whose contents are accessed based on the format string specified by Format. @return Number of Unicode characters printed to ConOut. @@ -1002,9 +1109,10 @@ Print ( PcdUefiLibMaxPrintBufferSize characters are sent to StdErr. If Format is NULL, then ASSERT(). If Format is not aligned on a 16-bit boundary, then ASSERT(). + If gST->StdErr is NULL, then ASSERT(). - @param Format Null-terminated Unicode format string. - @param ... Variable argument list whose contents are accessed based + @param Format A null-terminated Unicode format string. + @param ... The variable argument list whose contents are accessed based on the format string specified by Format. @return Number of Unicode characters printed to StdErr. @@ -1027,9 +1135,10 @@ ErrorPrint ( string is greater than PcdUefiLibMaxPrintBufferSize, then only the first PcdUefiLibMaxPrintBufferSize characters are sent to ConOut. If Format is NULL, then ASSERT(). + If gST->ConOut is NULL, then ASSERT(). - @param Format Null-terminated ASCII format string. - @param ... Variable argument list whose contents are accessed based + @param Format A null-terminated ASCII format string. + @param ... The variable argument list whose contents are accessed based on the format string specified by Format. @return Number of ASCII characters printed to ConOut. @@ -1052,9 +1161,10 @@ AsciiPrint ( string is greater than PcdUefiLibMaxPrintBufferSize, then only the first PcdUefiLibMaxPrintBufferSize characters are sent to StdErr. If Format is NULL, then ASSERT(). + If gST->StdErr is NULL, then ASSERT(). - @param Format Null-terminated ASCII format string. - @param ... Variable argument list whose contents are accessed based + @param Format A null-terminated ASCII format string. + @param ... The variable argument list whose contents are accessed based on the format string specified by Format. @return Number of ASCII characters printed to ConErr. @@ -1067,14 +1177,16 @@ AsciiErrorPrint ( ... ); + /** Prints a formatted Unicode string to a graphics console device specified by ConsoleOutputHandle defined in the EFI_SYSTEM_TABLE at the given (X,Y) coordinates. This function prints a formatted Unicode string to the graphics console device specified by ConsoleOutputHandle in EFI_SYSTEM_TABLE and returns the number of - Unicode characters printed. If the length of the formatted Unicode string is - greater than PcdUefiLibMaxPrintBufferSize, then only the first + Unicode characters displayed, not including partial characters that may be clipped + by the right edge of the display. If the length of the formatted Unicode string is + greater than PcdUefiLibMaxPrintBufferSize, then at most the first PcdUefiLibMaxPrintBufferSize characters are printed. The EFI_HII_FONT_PROTOCOL is used to convert the string to a bitmap using the glyphs registered with the HII database. No wrapping is performed, so any portions of the string the fall @@ -1086,9 +1198,10 @@ AsciiErrorPrint ( string is printed, and 0 is returned. If Format is NULL, then ASSERT(). If Format is not aligned on a 16-bit boundary, then ASSERT(). + If gST->ConsoleOutputHandle is NULL, then ASSERT(). - @param X X coordinate to print the string. - @param Y Y coordinate to print the string. + @param PointX X coordinate to print the string. + @param PointY Y coordinate to print the string. @param ForeGround The foreground color of the string being printed. This is an optional parameter that may be NULL. If it is NULL, then the foreground color of the current ConOut device @@ -1097,7 +1210,7 @@ AsciiErrorPrint ( an optional parameter that may be NULL. If it is NULL, then the background color of the current ConOut device in the EFI_SYSTEM_TABLE is used. - @param Format Null-terminated Unicode format string. See Print Library + @param Format A null-terminated Unicode format string. See Print Library for the supported format string syntax. @param ... Variable argument list whose contents are accessed based on the format string specified by Format. @@ -1108,8 +1221,8 @@ AsciiErrorPrint ( UINTN EFIAPI PrintXY ( - IN UINTN X, - IN UINTN Y, + IN UINTN PointX, + IN UINTN PointY, IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround, OPTIONAL IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround, OPTIONAL IN CONST CHAR16 *Format, @@ -1122,8 +1235,9 @@ PrintXY ( This function prints a formatted ASCII string to the graphics console device specified by ConsoleOutputHandle in EFI_SYSTEM_TABLE and returns the number of - ASCII characters printed. If the length of the formatted ASCII string is - greater than PcdUefiLibMaxPrintBufferSize, then only the first + ASCII characters displayed, not including partial characters that may be clipped + by the right edge of the display. If the length of the formatted ASCII string is + greater than PcdUefiLibMaxPrintBufferSize, then at most the first PcdUefiLibMaxPrintBufferSize characters are printed. The EFI_HII_FONT_PROTOCOL is used to convert the string to a bitmap using the glyphs registered with the HII database. No wrapping is performed, so any portions of the string the fall @@ -1134,9 +1248,10 @@ PrintXY ( If the EFI_HII_FONT_PROTOCOL is not present in the handle database, then no string is printed, and 0 is returned. If Format is NULL, then ASSERT(). + If gST->ConsoleOutputHandle is NULL, then ASSERT(). - @param X X coordinate to print the string. - @param Y Y coordinate to print the string. + @param PointX X coordinate to print the string. + @param PointY Y coordinate to print the string. @param ForeGround The foreground color of the string being printed. This is an optional parameter that may be NULL. If it is NULL, then the foreground color of the current ConOut device @@ -1145,9 +1260,9 @@ PrintXY ( an optional parameter that may be NULL. If it is NULL, then the background color of the current ConOut device in the EFI_SYSTEM_TABLE is used. - @param Format Null-terminated ASCII format string. See Print Library + @param Format A null-terminated ASCII format string. See Print Library for the supported format string syntax. - @param ... Variable argument list whose contents are accessed based on + @param ... The variable argument list whose contents are accessed based on the format string specified by Format. @return The number of ASCII characters printed. @@ -1156,8 +1271,8 @@ PrintXY ( UINTN EFIAPI AsciiPrintXY ( - IN UINTN X, - IN UINTN Y, + IN UINTN PointX, + IN UINTN PointY, IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround, OPTIONAL IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround, OPTIONAL IN CONST CHAR8 *Format, @@ -1181,7 +1296,7 @@ AsciiPrintXY ( @param DriverBindingHandle The handle that DriverBinding is to be installed onto. If this parameter is NULL, then a new handle is created. - @retval EFI_SUCCESS The protocol installation is completed successfully. + @retval EFI_SUCCESS The protocol installation completed successfully. @retval EFI_OUT_OF_RESOURCES There was not enough system resources to install the protocol. @retval Others Status from gBS->InstallMultipleProtocolInterfaces(). @@ -1203,7 +1318,7 @@ EfiLibInstallDriverBinding ( Initializes a driver by installing the Driver Binding Protocol together with the optional Component Name, optional Driver Configure and optional Driver Diagnostic Protocols onto the driver's DriverBindingHandle. If DriverBindingHandle is NULL, - then the protocols are installed onto a newly created handle. DriverBindingHandle + then the protocols are installed onto a newly created handle. DriverBindingHandle is typically the same as the driver's ImageHandle, but it can be different if the driver produces multiple Driver Binding Protocols. If DriverBinding is NULL, then ASSERT(). @@ -1218,8 +1333,8 @@ EfiLibInstallDriverBinding ( @param DriverConfiguration A Driver Configuration Protocol instance that this driver is producing. @param DriverDiagnostics A Driver Diagnostics Protocol instance that this driver is producing. - @retval EFI_SUCCESS The protocol installation is completed successfully. - @retval EFI_OUT_OF_RESOURCES There was not enough memory in pool to install all the protocols. + @retval EFI_SUCCESS The protocol installation completed successfully. + @retval EFI_OUT_OF_RESOURCES There was not enough memory in the pool to install all the protocols. **/ EFI_STATUS @@ -1255,7 +1370,7 @@ EfiLibInstallAllDriverProtocols ( @param ComponentName A Component Name Protocol instance that this driver is producing. @param ComponentName2 A Component Name 2 Protocol instance that this driver is producing. - @retval EFI_SUCCESS The protocol installation is completed successfully. + @retval EFI_SUCCESS The protocol installation completed successfully. @retval EFI_OUT_OF_RESOURCES There was not enough memory in pool to install all the protocols. **/ @@ -1296,7 +1411,7 @@ EfiLibInstallDriverBindingComponentName2 ( @param DriverDiagnostics A Driver Diagnostics Protocol instance that this driver is producing. @param DriverDiagnostics2 A Driver Diagnostics Protocol 2 instance that this driver is producing. - @retval EFI_SUCCESS The protocol installation is completed successfully. + @retval EFI_SUCCESS The protocol installation completed successfully. @retval EFI_OUT_OF_RESOURCES There was not enough memory in pool to install all the protocols. **/ @@ -1315,4 +1430,64 @@ EfiLibInstallAllDriverProtocols2 ( IN CONST EFI_DRIVER_DIAGNOSTICS2_PROTOCOL *DriverDiagnostics2 OPTIONAL ); +/** + Appends a formatted Unicode string to a Null-terminated Unicode string + + This function appends a formatted Unicode string to the Null-terminated + Unicode string specified by String. String is optional and may be NULL. + Storage for the formatted Unicode string returned is allocated using + AllocatePool(). The pointer to the appended string is returned. The caller + is responsible for freeing the returned string. + + If String is not NULL and not aligned on a 16-bit boundary, then ASSERT(). + If FormatString is NULL, then ASSERT(). + If FormatString is not aligned on a 16-bit boundary, then ASSERT(). + + @param[in] String A Null-terminated Unicode string. + @param[in] FormatString A Null-terminated Unicode format string. + @param[in] Marker VA_LIST marker for the variable argument list. + + @retval NULL There was not enough available memory. + @return Null-terminated Unicode string is that is the formatted + string appended to String. +**/ +CHAR16* +EFIAPI +CatVSPrint ( + IN CHAR16 *String, OPTIONAL + IN CONST CHAR16 *FormatString, + IN VA_LIST Marker + ); + +/** + Appends a formatted Unicode string to a Null-terminated Unicode string + + This function appends a formatted Unicode string to the Null-terminated + Unicode string specified by String. String is optional and may be NULL. + Storage for the formatted Unicode string returned is allocated using + AllocatePool(). The pointer to the appended string is returned. The caller + is responsible for freeing the returned string. + + If String is not NULL and not aligned on a 16-bit boundary, then ASSERT(). + If FormatString is NULL, then ASSERT(). + If FormatString is not aligned on a 16-bit boundary, then ASSERT(). + + @param[in] String A Null-terminated Unicode string. + @param[in] FormatString A Null-terminated Unicode format string. + @param[in] ... The variable argument list whose contents are + accessed based on the format string specified by + FormatString. + + @retval NULL There was not enough available memory. + @return Null-terminated Unicode string is that is the formatted + string appended to String. +**/ +CHAR16 * +EFIAPI +CatSPrint ( + IN CHAR16 *String, OPTIONAL + IN CONST CHAR16 *FormatString, + ... + ); + #endif