]> git.proxmox.com Git - mirror_edk2.git/blame - NetworkPkg/HttpDxe/HttpDns.h
NetworkPkg: Apply uncrustify changes
[mirror_edk2.git] / NetworkPkg / HttpDxe / HttpDns.h
CommitLineData
47f51a06
YT
1/** @file\r
2 The header file of routines for HttpDxe driver to perform DNS resolution based on UEFI DNS protocols.\r
3\r
f75a7f56 4Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r
ecf98fbc 5SPDX-License-Identifier: BSD-2-Clause-Patent\r
47f51a06
YT
6\r
7**/\r
8\r
9#ifndef __EFI_HTTP_DNS_H__\r
10#define __EFI_HTTP_DNS_H__\r
11\r
12/**\r
13 Retrieve the host address using the EFI_DNS4_PROTOCOL.\r
14\r
15 @param[in] HttpInstance Pointer to HTTP_PROTOCOL instance.\r
16 @param[in] HostName Pointer to buffer containing hostname.\r
17 @param[out] IpAddress On output, pointer to buffer containing IPv4 address.\r
18\r
19 @retval EFI_SUCCESS Operation succeeded.\r
20 @retval EFI_OUT_OF_RESOURCES Failed to allocate needed resources.\r
21 @retval EFI_DEVICE_ERROR An unexpected network error occurred.\r
22 @retval Others Other errors as indicated.\r
f75a7f56 23\r
47f51a06
YT
24**/\r
25EFI_STATUS\r
26HttpDns4 (\r
d1050b9d
MK
27 IN HTTP_PROTOCOL *HttpInstance,\r
28 IN CHAR16 *HostName,\r
29 OUT EFI_IPv4_ADDRESS *IpAddress\r
47f51a06
YT
30 );\r
31\r
b659408b
ZL
32/**\r
33 Retrieve the host address using the EFI_DNS6_PROTOCOL.\r
34\r
35 @param[in] HttpInstance Pointer to HTTP_PROTOCOL instance.\r
36 @param[in] HostName Pointer to buffer containing hostname.\r
37 @param[out] IpAddress On output, pointer to buffer containing IPv6 address.\r
38\r
39 @retval EFI_SUCCESS Operation succeeded.\r
40 @retval EFI_OUT_OF_RESOURCES Failed to allocate needed resources.\r
41 @retval EFI_DEVICE_ERROR An unexpected network error occurred.\r
42 @retval Others Other errors as indicated.\r
f75a7f56 43\r
b659408b
ZL
44**/\r
45EFI_STATUS\r
46HttpDns6 (\r
d1050b9d
MK
47 IN HTTP_PROTOCOL *HttpInstance,\r
48 IN CHAR16 *HostName,\r
49 OUT EFI_IPv6_ADDRESS *IpAddress\r
b659408b
ZL
50 );\r
51\r
f75a7f56 52#endif\r