X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=NetworkPkg%2FDnsDxe%2FComponentName.c;h=cd4eea6a8bb7d9cbc14f5a1a44c72fee9d3525fd;hp=d976bc684984fe958284d6627a4a90a19a4c8856;hb=f75a7f568e6d0944327970b3f3f2dafd9bba76b1;hpb=9095d37b8fe5bfc3d02adad6ba7fd7359ebc0107 diff --git a/NetworkPkg/DnsDxe/ComponentName.c b/NetworkPkg/DnsDxe/ComponentName.c index d976bc6849..cd4eea6a8b 100644 --- a/NetworkPkg/DnsDxe/ComponentName.c +++ b/NetworkPkg/DnsDxe/ComponentName.c @@ -1,7 +1,7 @@ /** @file Implementation of EFI_COMPONENT_NAME_PROTOCOL and EFI_COMPONENT_NAME2_PROTOCOL protocol. -Copyright (c) 2016, Intel Corporation. All rights reserved.
+Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -101,7 +101,7 @@ DnsComponentNameGetControllerName ( /// /// Component Name Protocol instance /// -GLOBAL_REMOVE_IF_UNREFERENCED +GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME_PROTOCOL gDnsComponentName = { DnsComponentNameGetDriverName, DnsComponentNameGetControllerName, @@ -111,7 +111,7 @@ EFI_COMPONENT_NAME_PROTOCOL gDnsComponentName = { /// /// Component Name 2 Protocol instance /// -GLOBAL_REMOVE_IF_UNREFERENCED +GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gDnsComponentName2 = { (EFI_COMPONENT_NAME2_GET_DRIVER_NAME) DnsComponentNameGetDriverName, (EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME) DnsComponentNameGetControllerName, @@ -121,7 +121,7 @@ EFI_COMPONENT_NAME2_PROTOCOL gDnsComponentName2 = { /// /// Table of driver names /// -GLOBAL_REMOVE_IF_UNREFERENCED +GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mDnsDriverNameTable[] = { { "eng;en", (CHAR16 *)L"DNS Network Service Driver" }, { NULL, NULL } @@ -173,10 +173,10 @@ DnsComponentNameGetDriverName ( @param Dns4 A pointer to the EFI_DNS4_PROTOCOL. - + @retval EFI_SUCCESS Update the ControllerNameTable of this instance successfully. @retval EFI_INVALID_PARAMETER The input parameter is invalid. - + **/ EFI_STATUS UpdateDns4Name ( @@ -190,7 +190,7 @@ UpdateDns4Name ( if (Dns4 == NULL) { return EFI_INVALID_PARAMETER; } - + // // Format the child name into the string buffer as: // DNSv4 (StationIp=?, LocalPort=?) @@ -199,7 +199,7 @@ UpdateDns4Name ( if (EFI_ERROR (Status)) { return Status; } - + UnicodeSPrint ( HandleName, sizeof (HandleName), @@ -222,7 +222,7 @@ UpdateDns4Name ( FreeUnicodeStringTable (gDnsControllerNameTable); gDnsControllerNameTable = NULL; } - + Status = AddUnicodeString2 ( "eng", gDnsComponentName.SupportedLanguages, @@ -233,7 +233,7 @@ UpdateDns4Name ( if (EFI_ERROR (Status)) { return Status; } - + return AddUnicodeString2 ( "en", gDnsComponentName2.SupportedLanguages, @@ -248,10 +248,10 @@ UpdateDns4Name ( @param Dns6 A pointer to the EFI_DNS6_PROTOCOL. - + @retval EFI_SUCCESS Update the ControllerNameTable of this instance successfully. @retval EFI_INVALID_PARAMETER The input parameter is invalid. - + **/ EFI_STATUS UpdateDns6Name ( @@ -266,7 +266,7 @@ UpdateDns6Name ( if (Dns6 == NULL) { return EFI_INVALID_PARAMETER; } - + // // Format the child name into the string buffer as: // DNSv6 (StationIp=?, LocalPort=?) @@ -282,7 +282,7 @@ UpdateDns6Name ( } UnicodeSPrint ( HandleName, - sizeof (HandleName), + sizeof (HandleName), L"DNSv6 (StationIp=%s, LocalPort=%d)", Address, ModeData.DnsConfigData.LocalPort @@ -299,7 +299,7 @@ UpdateDns6Name ( FreeUnicodeStringTable (gDnsControllerNameTable); gDnsControllerNameTable = NULL; } - + Status = AddUnicodeString2 ( "eng", gDnsComponentName.SupportedLanguages, @@ -310,7 +310,7 @@ UpdateDns6Name ( if (EFI_ERROR (Status)) { return Status; } - + return AddUnicodeString2 ( "en", gDnsComponentName2.SupportedLanguages, @@ -373,7 +373,7 @@ DnsComponentNameGetControllerName ( EFI_STATUS Status; EFI_DNS4_PROTOCOL *Dns4; EFI_DNS6_PROTOCOL *Dns6; - + // // ChildHandle must be NULL for a Device Driver //