A.3.4 SimpleTextInput.c File

Example A-16-Simple Text Input Protocols implementation template
/** @file
  <<BriefDescription>>
  <<DetailedDescription>>
  <<Copyright>>
  <<License>>
**/

#include "<<DriverName>>.h"

///
/// Simple Text Input Ex Protocol instance
///
GLOBAL_REMOVE_IF_UNREFERENCED
EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL g<<DriverName>>SimpleTextInputEx = {
  <<DriverName>>SimpleTextInputReset,
  <<DriverName>>SimpleTextInputReadKeyStrokeEx,
  NULL,
  <<DriverName>>SimpleTextInputSetState,
  <<DriverName>>SimpleTextInputRegisterKeyNotify,
  <<DriverName>>SimpleTextInputUnregisterKeyNotify
};

///
/// Simple Text Input Protocol instance
///
GLOBAL_REMOVE_IF_UNREFERENCED
EFI_SIMPLE_TEXT_INPUT_PROTOCOL g<<DriverName>>SimpleTextInput = {
  (EFI_INPUT_RESET) <<DriverName>>SimpleTextInputReset,
  <<DriverName>>SimpleTextInputReadKeyStroke,
  NULL
};

EFI_STATUS
EFIAPI
<<DriverName>>SimpleTextInputReset (
  IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL   *This,
  IN BOOLEAN                             ExtendedVerification
  )
{
}

EFI_STATUS
EFIAPI
<<DriverName>>SimpleTextInputReadKeyStrokeEx (
  IN  EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL  *This,
  OUT EFI_KEY_DATA                       *KeyData
  )
{
}

EFI_STATUS
EFIAPI
<<DriverName>>SimpleTextInputSetState (
  IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL   *This,
  IN EFI_KEY_TOGGLE_STATE                *KeyToggleState
  )
{
}

EFI_STATUS
EFIAPI
<<DriverName>>SimpleTextInputRegisterKeyNotify (
  IN  EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL   *This,
  IN  EFI_KEY_DATA                        *KeyData,
  IN  EFI_KEY_NOTIFY_FUNCTION             KeyNotificationFunction,
  OUT EFI_HANDLE                          *NotifyHandle
  )
{
}

EFI_STATUS
EFIAPI
<<DriverName>>SimpleTextInputUnregisterKeyNotify (
  IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL    *This,
  IN EFI_HANDLE                           NotificationHandle
  )
{
}

EFI_STATUS
EFIAPI
<<DriverName>>SimpleTextInputReadKeyStroke (
  IN  EFI_SIMPLE_TEXT_INPUT_PROTOCOL      *This,
  OUT EFI_INPUT_KEY                       *Key
  )
{
}