A.3.12 LoadFile.c File

Example A-24-Load File Protocol implementation template
/** @file
  <<BriefDescription>>
  <<DetailedDescription>>
  <<Copyright>>
  <<License>>
**/

#include "<<DriverName>>.h"

///
/// Load File Protocol instance
///
GLOBAL_REMOVE_IF_UNREFERENCED
EFI_LOAD_FILE_PROTOCOL g<<DriverName>>LoadFile = {
  <<DriverName>>LoadFileLoadFile
};

EFI_STATUS
EFIAPI
<<DriverName>>LoadFileLoadFile (
  IN     EFI_LOAD_FILE_PROTOCOL      *This,
  IN     EFI_DEVICE_PATH_PROTOCOL    *FilePath,
  IN     BOOLEAN                     BootPolicy,
  IN OUT UINTN                       *BufferSize,
  IN     VOID                        *Buffer   OPTIONAL
  )
{
}