]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/Dns6.h
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Include / Protocol / Dns6.h
index ebf368f36facedadee604d4953aaa87db66773b2..3b6697ab2f6f382f9cf7f8a09390ae84ff94f5ee 100644 (file)
@@ -35,23 +35,23 @@ typedef struct {
   /// If TRUE, enable DNS cache function for this DNS instance. If FALSE, all DNS query\r
   /// will not lookup local DNS cache.\r
   ///\r
-  BOOLEAN                       EnableDnsCache;\r
+  BOOLEAN             EnableDnsCache;\r
   ///\r
   /// Use the protocol number defined in\r
   /// http://www.iana.org/assignments/protocol-numbers. Beside TCP/UDP, Other protocol\r
   /// is invalid value. An implementation can choose to support UDP, or both TCP and UDP.\r
   ///\r
-  UINT8                         Protocol;\r
+  UINT8               Protocol;\r
   ///\r
   /// The local IP address to use. Set to zero to let the underlying IPv6\r
   /// driver choose a source address. If not zero it must be one of the\r
   /// configured IP addresses in the underlying IPv6 driver.\r
   ///\r
-  EFI_IPv6_ADDRESS              StationIp;\r
+  EFI_IPv6_ADDRESS    StationIp;\r
   ///\r
   /// Local port number. Set to zero to use the automatically assigned port number.\r
   ///\r
-  UINT16                        LocalPort;\r
+  UINT16              LocalPort;\r
   ///\r
   /// Count of the DNS servers. When used with GetModeData(),\r
   /// this field is the count of originally configured servers when\r
@@ -60,7 +60,7 @@ typedef struct {
   /// DnsServerListCount is zero, the DNS server configuration\r
   /// will be retrieved from DHCP server automatically.\r
   ///\r
-  UINT32                        DnsServerCount;\r
+  UINT32    DnsServerCount;\r
   ///\r
   /// Pointer to DNS server list containing DnsServerListCount\r
   /// entries or NULL if DnsServerListCount is 0. For Configure(),\r
@@ -72,15 +72,15 @@ typedef struct {
   /// freed by the caller. When used with Configure(), the buffer\r
   /// containing the list will be allocated and released by the caller.\r
   ///\r
-  EFI_IPv6_ADDRESS              *DnsServerList;\r
+  EFI_IPv6_ADDRESS    *DnsServerList;\r
   ///\r
   /// Retry number if no response received after RetryInterval.\r
   ///\r
-  UINT32                        RetryCount;\r
+  UINT32              RetryCount;\r
   ///\r
   /// Minimum interval of retry is 2 second. If the retry interval is less than 2\r
   /// seconds, then use the 2 seconds.\r
-  UINT32                        RetryInterval;\r
+  UINT32              RetryInterval;\r
 } EFI_DNS6_CONFIG_DATA;\r
 \r
 ///\r
@@ -90,18 +90,18 @@ typedef struct {
   ///\r
   /// Host name. This should be interpreted as Unicode characters.\r
   ///\r
-  CHAR16                        *HostName;\r
+  CHAR16              *HostName;\r
   ///\r
   /// IP address of this host.\r
   ///\r
-  EFI_IPv6_ADDRESS              *IpAddress;\r
+  EFI_IPv6_ADDRESS    *IpAddress;\r
   ///\r
   /// Time in second unit that this entry will remain in DNS cache. A value of zero means\r
   /// that this entry is permanent. A nonzero value will override the existing one if\r
   /// this entry to be added is dynamic entry. Implementations may set its default\r
   /// timeout value for the dynamically created DNS cache entry after one DNS resolve\r
   /// succeeds.\r
-  UINT32                        Timeout;\r
+  UINT32              Timeout;\r
 } EFI_DNS6_CACHE_ENTRY;\r
 \r
 ///\r
@@ -111,28 +111,28 @@ typedef struct {
   ///\r
   /// The configuration data of this instance.\r
   ///\r
-  EFI_DNS6_CONFIG_DATA          DnsConfigData;\r
+  EFI_DNS6_CONFIG_DATA    DnsConfigData;\r
   ///\r
   /// Number of configured DNS6 servers.\r
   ///\r
-  UINT32                         DnsServerCount;\r
+  UINT32                  DnsServerCount;\r
   ///\r
   /// Pointer to common list of addresses of all configured DNS server used by EFI_DNS6_PROTOCOL\r
   /// instances. List will include DNS servers configured by this or any other EFI_DNS6_PROTOCOL\r
   /// instance. The storage for this list is allocated by the driver publishing this protocol,\r
   /// and must be freed by the caller.\r
   ///\r
-  EFI_IPv6_ADDRESS               *DnsServerList;\r
+  EFI_IPv6_ADDRESS        *DnsServerList;\r
   ///\r
   /// Number of DNS Cache entries. The DNS Cache is shared among all DNS instances.\r
   ///\r
-  UINT32                        DnsCacheCount;\r
+  UINT32                  DnsCacheCount;\r
   ///\r
   /// Pointer to a buffer containing DnsCacheCount DNS Cache\r
   /// entry structures. The storage for thislist is allocated by the driver\r
   /// publishing this protocol and must be freed by caller.\r
   ///\r
-  EFI_DNS6_CACHE_ENTRY          *DnsCacheList;\r
+  EFI_DNS6_CACHE_ENTRY    *DnsCacheList;\r
 } EFI_DNS6_MODE_DATA;\r
 \r
 ///\r
@@ -142,11 +142,11 @@ typedef struct {
   ///\r
   /// Number of the returned IP address.\r
   ///\r
-  UINT32                        IpCount;\r
+  UINT32              IpCount;\r
   ///\r
   /// Pointer to the all the returned IP address.\r
   ///\r
-  EFI_IPv6_ADDRESS              *IpList;\r
+  EFI_IPv6_ADDRESS    *IpList;\r
 } DNS6_HOST_TO_ADDR_DATA;\r
 \r
 ///\r
@@ -157,7 +157,7 @@ typedef struct {
   /// Pointer to the primary name for this host address. It's the caller's\r
   /// responsibility to free the response memory.\r
   ///\r
-  CHAR16                        *HostName;\r
+  CHAR16    *HostName;\r
 } DNS6_ADDR_TO_HOST_DATA;\r
 \r
 ///\r
@@ -167,30 +167,30 @@ typedef struct {
   ///\r
   /// The Owner name.\r
   ///\r
-  CHAR8                         *QName;\r
+  CHAR8     *QName;\r
   ///\r
   /// The Type Code of this RR.\r
   ///\r
-  UINT16                        QType;\r
+  UINT16    QType;\r
   ///\r
   /// The CLASS code of this RR.\r
   ///\r
-  UINT16                        QClass;\r
+  UINT16    QClass;\r
   ///\r
   /// 32 bit integer which specify the time interval that the resource record may be\r
   /// cached before the source of the information should again be consulted. Zero means\r
   /// this RR cannot be cached.\r
   ///\r
-  UINT32                        TTL;\r
+  UINT32    TTL;\r
   ///\r
   /// 16 big integer which specify the length of RData.\r
   ///\r
-  UINT16                        DataLength;\r
+  UINT16    DataLength;\r
   ///\r
   /// A string of octets that describe the resource, the format of this information\r
   /// varies according to QType and QClass difference.\r
   ///\r
-  CHAR8                         *RData;\r
+  CHAR8     *RData;\r
 } DNS6_RESOURCE_RECORD;\r
 \r
 ///\r
@@ -200,12 +200,12 @@ typedef struct {
   ///\r
   /// Number of returned matching RRs.\r
   ///\r
-  UINTN                         RRCount;\r
+  UINTN                   RRCount;\r
   ///\r
   /// Pointer to the all the returned matching RRs. It's caller responsibility to free\r
   /// the allocated memory to hold the returned RRs.\r
   ///\r
-  DNS6_RESOURCE_RECORD          *RRList;\r
+  DNS6_RESOURCE_RECORD    *RRList;\r
 } DNS6_GENERAL_LOOKUP_DATA;\r
 \r
 ///\r
@@ -216,7 +216,7 @@ typedef struct {
   /// This Event will be signaled after the Status field is updated by the EFI DNSv6\r
   /// protocol driver. The type of Event must be EFI_NOTIFY_SIGNAL.\r
   ///\r
-  EFI_EVENT                               Event;\r
+  EFI_EVENT    Event;\r
   ///\r
   /// Will be set to one of the following values:\r
   ///   EFI_SUCCESS:      The host name to address translation completed successfully.\r
@@ -226,18 +226,18 @@ typedef struct {
   ///   EFI_DEVICE_ERROR: An unexpected system or network error occurred.\r
   ///   EFI_NO_MEDIA:     There was a media error.\r
   ///\r
-  EFI_STATUS                              Status;\r
+  EFI_STATUS    Status;\r
   ///\r
   /// The parameter configured through DNSv6.Configure() interface. Retry number if no\r
   /// response received after RetryInterval.\r
   ///\r
-  UINT32                                  RetryCount;\r
+  UINT32        RetryCount;\r
   ///\r
   /// The parameter configured through DNSv6.Configure() interface. Minimum interval of\r
   /// retry is 2 seconds. If the retry interval is less than 2 seconds, then use the 2\r
   /// seconds.\r
   ///\r
-  UINT32                                  RetryInterval;\r
+  UINT32        RetryInterval;\r
   ///\r
   /// DNSv6 completion token data\r
   ///\r
@@ -278,7 +278,7 @@ typedef struct {
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI * EFI_DNS6_GET_MODE_DATA)(\r
+(EFIAPI *EFI_DNS6_GET_MODE_DATA)(\r
   IN  EFI_DNS6_PROTOCOL         *This,\r
   OUT EFI_DNS6_MODE_DATA        *DnsModeData\r
   );\r
@@ -308,7 +308,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI * EFI_DNS6_CONFIGURE)(\r
+(EFIAPI *EFI_DNS6_CONFIGURE)(\r
   IN EFI_DNS6_PROTOCOL          *This,\r
   IN EFI_DNS6_CONFIG_DATA       *DnsConfigData\r
   );\r
@@ -337,7 +337,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_DNS6_HOST_NAME_TO_IP) (\r
+(EFIAPI *EFI_DNS6_HOST_NAME_TO_IP)(\r
   IN  EFI_DNS6_PROTOCOL         *This,\r
   IN  CHAR16                    *HostName,\r
   IN  EFI_DNS6_COMPLETION_TOKEN *Token\r
@@ -368,7 +368,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_DNS6_IP_TO_HOST_NAME) (\r
+(EFIAPI *EFI_DNS6_IP_TO_HOST_NAME)(\r
   IN  EFI_DNS6_PROTOCOL         *This,\r
   IN  EFI_IPv6_ADDRESS          IpAddress,\r
   IN  EFI_DNS6_COMPLETION_TOKEN *Token\r
@@ -405,7 +405,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_DNS6_GENERAL_LOOKUP) (\r
+(EFIAPI *EFI_DNS6_GENERAL_LOOKUP)(\r
   IN  EFI_DNS6_PROTOCOL         *This,\r
   IN  CHAR8                     *QName,\r
   IN  UINT16                    QType,\r
@@ -442,7 +442,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_DNS6_UPDATE_DNS_CACHE) (\r
+(EFIAPI *EFI_DNS6_UPDATE_DNS_CACHE)(\r
   IN EFI_DNS6_PROTOCOL          *This,\r
   IN BOOLEAN                    DeleteFlag,\r
   IN BOOLEAN                    Override,\r
@@ -474,7 +474,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_DNS6_POLL) (\r
+(EFIAPI *EFI_DNS6_POLL)(\r
   IN  EFI_DNS6_PROTOCOL         *This\r
   );\r
 \r
@@ -506,7 +506,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_DNS6_CANCEL) (\r
+(EFIAPI *EFI_DNS6_CANCEL)(\r
   IN  EFI_DNS6_PROTOCOL         *This,\r
   IN  EFI_DNS6_COMPLETION_TOKEN *Token\r
   );\r
@@ -517,17 +517,17 @@ EFI_STATUS
 /// DNSv6.\r
 ///\r
 struct _EFI_DNS6_PROTOCOL {\r
-  EFI_DNS6_GET_MODE_DATA        GetModeData;\r
-  EFI_DNS6_CONFIGURE            Configure;\r
-  EFI_DNS6_HOST_NAME_TO_IP      HostNameToIp;\r
-  EFI_DNS6_IP_TO_HOST_NAME      IpToHostName;\r
-  EFI_DNS6_GENERAL_LOOKUP       GeneralLookUp;\r
-  EFI_DNS6_UPDATE_DNS_CACHE     UpdateDnsCache;\r
-  EFI_DNS6_POLL                 Poll;\r
-  EFI_DNS6_CANCEL               Cancel;\r
+  EFI_DNS6_GET_MODE_DATA       GetModeData;\r
+  EFI_DNS6_CONFIGURE           Configure;\r
+  EFI_DNS6_HOST_NAME_TO_IP     HostNameToIp;\r
+  EFI_DNS6_IP_TO_HOST_NAME     IpToHostName;\r
+  EFI_DNS6_GENERAL_LOOKUP      GeneralLookUp;\r
+  EFI_DNS6_UPDATE_DNS_CACHE    UpdateDnsCache;\r
+  EFI_DNS6_POLL                Poll;\r
+  EFI_DNS6_CANCEL              Cancel;\r
 };\r
 \r
-extern EFI_GUID gEfiDns6ServiceBindingProtocolGuid;\r
-extern EFI_GUID gEfiDns6ProtocolGuid;\r
+extern EFI_GUID  gEfiDns6ServiceBindingProtocolGuid;\r
+extern EFI_GUID  gEfiDns6ProtocolGuid;\r
 \r
 #endif\r