]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/DnsDxe/ComponentName.c
MdeModulePkg/DxeCore: invoke the emulator protocol for foreign images
[mirror_edk2.git] / NetworkPkg / DnsDxe / ComponentName.c
index d976bc684984fe958284d6627a4a90a19a4c8856..e59c8704fb9df9bf7d82f841da9b07c163c807cc 100644 (file)
@@ -1,14 +1,8 @@
 /** @file\r
 Implementation of EFI_COMPONENT_NAME_PROTOCOL and EFI_COMPONENT_NAME2_PROTOCOL protocol.\r
 \r
-Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution.  The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -101,7 +95,7 @@ DnsComponentNameGetControllerName (
 ///\r
 /// Component Name Protocol instance\r
 ///\r
-GLOBAL_REMOVE_IF_UNREFERENCED \r
+GLOBAL_REMOVE_IF_UNREFERENCED\r
 EFI_COMPONENT_NAME_PROTOCOL  gDnsComponentName = {\r
   DnsComponentNameGetDriverName,\r
   DnsComponentNameGetControllerName,\r
@@ -111,7 +105,7 @@ EFI_COMPONENT_NAME_PROTOCOL  gDnsComponentName = {
 ///\r
 /// Component Name 2 Protocol instance\r
 ///\r
-GLOBAL_REMOVE_IF_UNREFERENCED \r
+GLOBAL_REMOVE_IF_UNREFERENCED\r
 EFI_COMPONENT_NAME2_PROTOCOL  gDnsComponentName2 = {\r
   (EFI_COMPONENT_NAME2_GET_DRIVER_NAME)     DnsComponentNameGetDriverName,\r
   (EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME) DnsComponentNameGetControllerName,\r
@@ -121,7 +115,7 @@ EFI_COMPONENT_NAME2_PROTOCOL  gDnsComponentName2 = {
 ///\r
 /// Table of driver names\r
 ///\r
-GLOBAL_REMOVE_IF_UNREFERENCED \r
+GLOBAL_REMOVE_IF_UNREFERENCED\r
 EFI_UNICODE_STRING_TABLE mDnsDriverNameTable[] = {\r
   { "eng;en", (CHAR16 *)L"DNS Network Service Driver" },\r
   { NULL, NULL }\r
@@ -173,10 +167,10 @@ DnsComponentNameGetDriverName (
 \r
   @param  Dns4                       A pointer to the EFI_DNS4_PROTOCOL.\r
 \r
-  \r
+\r
   @retval EFI_SUCCESS                Update the ControllerNameTable of this instance successfully.\r
   @retval EFI_INVALID_PARAMETER      The input parameter is invalid.\r
-  \r
+\r
 **/\r
 EFI_STATUS\r
 UpdateDns4Name (\r
@@ -190,7 +184,7 @@ UpdateDns4Name (
   if (Dns4 == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   //\r
   // Format the child name into the string buffer as:\r
   // DNSv4 (StationIp=?, LocalPort=?)\r
@@ -199,7 +193,7 @@ UpdateDns4Name (
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-  \r
+\r
   UnicodeSPrint (\r
     HandleName,\r
     sizeof (HandleName),\r
@@ -222,7 +216,7 @@ UpdateDns4Name (
     FreeUnicodeStringTable (gDnsControllerNameTable);\r
     gDnsControllerNameTable = NULL;\r
   }\r
-  \r
+\r
   Status = AddUnicodeString2 (\r
              "eng",\r
              gDnsComponentName.SupportedLanguages,\r
@@ -233,7 +227,7 @@ UpdateDns4Name (
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-  \r
+\r
   return AddUnicodeString2 (\r
            "en",\r
            gDnsComponentName2.SupportedLanguages,\r
@@ -248,10 +242,10 @@ UpdateDns4Name (
 \r
   @param  Dns6                       A pointer to the EFI_DNS6_PROTOCOL.\r
 \r
-  \r
+\r
   @retval EFI_SUCCESS                Update the ControllerNameTable of this instance successfully.\r
   @retval EFI_INVALID_PARAMETER      The input parameter is invalid.\r
-  \r
+\r
 **/\r
 EFI_STATUS\r
 UpdateDns6Name (\r
@@ -266,7 +260,7 @@ UpdateDns6Name (
   if (Dns6 == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   //\r
   // Format the child name into the string buffer as:\r
   // DNSv6 (StationIp=?, LocalPort=?)\r
@@ -282,7 +276,7 @@ UpdateDns6Name (
   }\r
   UnicodeSPrint (\r
     HandleName,\r
-    sizeof (HandleName), \r
+    sizeof (HandleName),\r
     L"DNSv6 (StationIp=%s, LocalPort=%d)",\r
     Address,\r
     ModeData.DnsConfigData.LocalPort\r
@@ -299,7 +293,7 @@ UpdateDns6Name (
     FreeUnicodeStringTable (gDnsControllerNameTable);\r
     gDnsControllerNameTable = NULL;\r
   }\r
-  \r
+\r
   Status = AddUnicodeString2 (\r
              "eng",\r
              gDnsComponentName.SupportedLanguages,\r
@@ -310,7 +304,7 @@ UpdateDns6Name (
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-  \r
+\r
   return AddUnicodeString2 (\r
            "en",\r
            gDnsComponentName2.SupportedLanguages,\r
@@ -373,7 +367,7 @@ DnsComponentNameGetControllerName (
   EFI_STATUS                    Status;\r
   EFI_DNS4_PROTOCOL             *Dns4;\r
   EFI_DNS6_PROTOCOL             *Dns6;\r
-  \r
+\r
   //\r
   // ChildHandle must be NULL for a Device Driver\r
   //\r