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

MdeModulePkg/Universal/Network/Udp4Dxe/ComponentName.c

Go to the documentation of this file.
00001 
00015 #include "Udp4Impl.h"
00016 
00017 //
00018 // EFI Component Name Functions
00019 //
00059 EFI_STATUS
00060 EFIAPI
00061 UdpComponentNameGetDriverName (
00062   IN  EFI_COMPONENT_NAME_PROTOCOL  *This,
00063   IN  CHAR8                        *Language,
00064   OUT CHAR16                       **DriverName
00065   );
00066 
00067 
00136 EFI_STATUS
00137 EFIAPI
00138 UdpComponentNameGetControllerName (
00139   IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,
00140   IN  EFI_HANDLE                                      ControllerHandle,
00141   IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,
00142   IN  CHAR8                                           *Language,
00143   OUT CHAR16                                          **ControllerName
00144   );
00145 
00146 
00147 //
00148 // EFI Component Name Protocol
00149 //
00150 GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME_PROTOCOL  gUdp4ComponentName = {
00151   UdpComponentNameGetDriverName,
00152   UdpComponentNameGetControllerName,
00153   "eng"
00154 };
00155 
00156 //
00157 // EFI Component Name 2 Protocol
00158 //
00159 GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gUdp4ComponentName2 = {
00160   (EFI_COMPONENT_NAME2_GET_DRIVER_NAME) UdpComponentNameGetDriverName,
00161   (EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME) UdpComponentNameGetControllerName,
00162   "en"
00163 };
00164 
00165 
00166 GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mUdpDriverNameTable[] = {
00167   {
00168     "eng;en",
00169     L"UDP Network Service Driver"
00170   },
00171   {
00172     NULL,
00173     NULL
00174   }
00175 };
00176 
00216 EFI_STATUS
00217 EFIAPI
00218 UdpComponentNameGetDriverName (
00219   IN  EFI_COMPONENT_NAME_PROTOCOL  *This,
00220   IN  CHAR8                        *Language,
00221   OUT CHAR16                       **DriverName
00222   )
00223 {
00224   return LookupUnicodeString2 (
00225            Language,
00226            This->SupportedLanguages,
00227            mUdpDriverNameTable,
00228            DriverName,
00229            (BOOLEAN)(This == &gUdp4ComponentName)
00230            );
00231 }
00232 
00301 EFI_STATUS
00302 EFIAPI
00303 UdpComponentNameGetControllerName (
00304   IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,
00305   IN  EFI_HANDLE                                      ControllerHandle,
00306   IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,
00307   IN  CHAR8                                           *Language,
00308   OUT CHAR16                                          **ControllerName
00309   )
00310 {
00311   return EFI_UNSUPPORTED;
00312 }
00313 
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines