EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index

EdkCompatibilityPkg/Compatibility/PrintThunk/PrintThunk.c

Go to the documentation of this file.
00001 
00024 #include <PiDxe.h>
00025 
00026 #include <Protocol/Print.h>
00027 #include <Library/PrintLib.h>
00028 #include <Library/UefiBootServicesTableLib.h>
00029 #include <Library/DebugLib.h>
00030 
00031 EFI_HANDLE  mPrintThunkHandle = NULL;
00032 
00033 CONST EFI_PRINT_PROTOCOL mPrintProtocol = {
00034   UnicodeVSPrint,
00035 };
00036 
00037 
00051 EFI_STATUS
00052 EFIAPI
00053 InitPrintThunk (
00054   IN EFI_HANDLE           ImageHandle,
00055   IN EFI_SYSTEM_TABLE     *SystemTable
00056   )
00057 {
00058   EFI_STATUS  Status;
00059 
00060   Status = gBS->InstallMultipleProtocolInterfaces (
00061                   &mPrintThunkHandle,
00062                   &gEfiPrintProtocolGuid, &mPrintProtocol,
00063                   NULL
00064                   );
00065   ASSERT_EFI_ERROR (Status);
00066 
00067   return Status;
00068 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines