]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/Dns4.h
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Include / Protocol / Dns4.h
index c92c30ab0b7680e03992020f2bd3be9582c3faa9..43eeff16712e5d43e3199b79b7dddc3e695d86b9 100644 (file)
@@ -39,7 +39,7 @@ typedef struct {
   /// DnsServerListCount is zero, the DNS server configuration\r
   /// will be retrieved from DHCP server automatically.\r
   ///\r
-  UINTN                         DnsServerListCount;\r
+  UINTN    DnsServerListCount;\r
   ///\r
   /// Pointer to DNS server list containing DnsServerListCount entries or NULL\r
   /// if DnsServerListCountis 0. For Configure(), this will be NULL when there are\r
@@ -51,16 +51,16 @@ 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_IPv4_ADDRESS              *DnsServerList;\r
+  EFI_IPv4_ADDRESS    *DnsServerList;\r
   ///\r
   /// Set to TRUE to use the default IP address/subnet mask and default routing table.\r
   ///\r
-  BOOLEAN                       UseDefaultSetting;\r
+  BOOLEAN             UseDefaultSetting;\r
   ///\r
   /// If TRUE, enable DNS cache function for this DNS instance. If FALSE, all DNS\r
   /// query will not lookup local DNS cache.\r
   ///\r
-  BOOLEAN                       EnableDnsCache;\r
+  BOOLEAN             EnableDnsCache;\r
   ///\r
   /// Use the protocol number defined in "Links to UEFI-Related\r
   /// Documents"(http://uefi.org/uefi) under the heading "IANA\r
@@ -68,31 +68,30 @@ typedef struct {
   /// protocol values are invalid. An implementation can choose to\r
   /// support only UDP, or both TCP and UDP.\r
   ///\r
-  UINT8                         Protocol;\r
+  UINT8               Protocol;\r
   ///\r
   /// If UseDefaultSetting is FALSE indicates the station address to use.\r
   ///\r
-  EFI_IPv4_ADDRESS              StationIp;\r
+  EFI_IPv4_ADDRESS    StationIp;\r
   ///\r
   /// If UseDefaultSetting is FALSE indicates the subnet mask to use.\r
   ///\r
-  EFI_IPv4_ADDRESS              SubnetMask;\r
+  EFI_IPv4_ADDRESS    SubnetMask;\r
   ///\r
   /// Local port number. Set to zero to use the automatically assigned port number.\r
   ///\r
-  UINT16                        LocalPort;\r
+  UINT16              LocalPort;\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
   ///\r
-  UINT32                        RetryInterval;\r
+  UINT32              RetryInterval;\r
 } EFI_DNS4_CONFIG_DATA;\r
 \r
-\r
 ///\r
 /// EFI_DNS4_CACHE_ENTRY\r
 ///\r
@@ -100,11 +99,11 @@ typedef struct {
   ///\r
   /// Host name.\r
   ///\r
-  CHAR16                        *HostName;\r
+  CHAR16              *HostName;\r
   ///\r
   /// IP address of this host.\r
   ///\r
-  EFI_IPv4_ADDRESS              *IpAddress;\r
+  EFI_IPv4_ADDRESS    *IpAddress;\r
   ///\r
   /// Time in second unit that this entry will remain in DNS cache. A value of zero\r
   /// means that this entry is permanent. A nonzero value will override the existing\r
@@ -112,7 +111,7 @@ typedef struct {
   /// default timeout value for the dynamically created DNS cache entry after one DNS\r
   /// resolve succeeds.\r
   ///\r
-  UINT32                        Timeout;\r
+  UINT32              Timeout;\r
 } EFI_DNS4_CACHE_ENTRY;\r
 \r
 ///\r
@@ -122,12 +121,12 @@ typedef struct {
   ///\r
   /// The configuration data of this instance.\r
   ///\r
-  EFI_DNS4_CONFIG_DATA          DnsConfigData;\r
+  EFI_DNS4_CONFIG_DATA    DnsConfigData;\r
   ///\r
   /// Number of configured DNS server. Each DNS instance has its own DNS server\r
   /// configuration.\r
   ///\r
-  UINT32                        DnsServerCount;\r
+  UINT32                  DnsServerCount;\r
   ///\r
   /// Pointer to common list of addresses of all configured DNS server\r
   /// used by EFI_DNS4_PROTOCOL instances. List will include\r
@@ -135,17 +134,17 @@ typedef struct {
   /// The storage for this list is allocated by the driver publishing this\r
   /// protocol, and must be freed by the caller.\r
   ///\r
-  EFI_IPv4_ADDRESS              *DnsServerList;\r
+  EFI_IPv4_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 this list is allocated by the driver\r
   /// publishing this protocol and must be freed by caller.\r
   ///\r
-  EFI_DNS4_CACHE_ENTRY          *DnsCacheList;\r
+  EFI_DNS4_CACHE_ENTRY    *DnsCacheList;\r
 } EFI_DNS4_MODE_DATA;\r
 \r
 ///\r
@@ -155,11 +154,11 @@ typedef struct {
   ///\r
   /// Number of the returned IP addresses.\r
   ///\r
-  UINT32                        IpCount;\r
+  UINT32              IpCount;\r
   ///\r
   /// Pointer to the all the returned IP addresses.\r
   ///\r
-  EFI_IPv4_ADDRESS              *IpList;\r
+  EFI_IPv4_ADDRESS    *IpList;\r
 } DNS_HOST_TO_ADDR_DATA;\r
 \r
 ///\r
@@ -170,7 +169,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
 } DNS_ADDR_TO_HOST_DATA;\r
 \r
 ///\r
@@ -180,30 +179,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 can not 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
 } DNS_RESOURCE_RECORD;\r
 \r
 ///\r
@@ -213,12 +212,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
-  DNS_RESOURCE_RECORD           *RRList;\r
+  DNS_RESOURCE_RECORD    *RRList;\r
 } DNS_GENERAL_LOOKUP_DATA;\r
 \r
 ///\r
@@ -229,7 +228,7 @@ typedef struct {
   /// This Event will be signaled after the Status field is updated by the EFI DNS\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
@@ -239,17 +238,17 @@ 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
   /// Retry number if no response received after RetryInterval. If zero, use the\r
   /// parameter configured through Dns.Configure() interface.\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. If zero, use the parameter configured through\r
   /// Dns.Configure() interface.\r
-  UINT32                                  RetryInterval;\r
+  UINT32        RetryInterval;\r
   ///\r
   /// DNSv4 completion token data\r
   ///\r
@@ -258,17 +257,17 @@ typedef struct {
     /// When the Token is used for host name to address translation, H2AData is a pointer\r
     /// to the DNS_HOST_TO_ADDR_DATA.\r
     ///\r
-    DNS_HOST_TO_ADDR_DATA         *H2AData;\r
+    DNS_HOST_TO_ADDR_DATA      *H2AData;\r
     ///\r
     /// When the Token is used for host address to host name translation, A2HData is a\r
     /// pointer to the DNS_ADDR_TO_HOST_DATA.\r
     ///\r
-    DNS_ADDR_TO_HOST_DATA         *A2HData;\r
+    DNS_ADDR_TO_HOST_DATA      *A2HData;\r
     ///\r
     /// When the Token is used for a general lookup function, GLookupDATA is a pointer to\r
     /// the DNS_GENERAL_LOOKUP_DATA.\r
     ///\r
-    DNS_GENERAL_LOOKUP_DATA       *GLookupData;\r
+    DNS_GENERAL_LOOKUP_DATA    *GLookupData;\r
   } RspData;\r
 } EFI_DNS4_COMPLETION_TOKEN;\r
 \r
@@ -289,7 +288,7 @@ typedef struct {
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_DNS4_GET_MODE_DATA) (\r
+(EFIAPI *EFI_DNS4_GET_MODE_DATA)(\r
   IN  EFI_DNS4_PROTOCOL          *This,\r
   OUT EFI_DNS4_MODE_DATA         *DnsModeData\r
   );\r
@@ -321,7 +320,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_DNS4_CONFIGURE) (\r
+(EFIAPI *EFI_DNS4_CONFIGURE)(\r
   IN EFI_DNS4_PROTOCOL          *This,\r
   IN EFI_DNS4_CONFIG_DATA       *DnsConfigData\r
   );\r
@@ -348,10 +347,10 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_DNS4_HOST_NAME_TO_IP) (\r
-   IN EFI_DNS4_PROTOCOL         *This,\r
-   IN CHAR16                    *HostName,\r
-   IN EFI_DNS4_COMPLETION_TOKEN *Token\r
+(EFIAPI *EFI_DNS4_HOST_NAME_TO_IP)(\r
+  IN EFI_DNS4_PROTOCOL         *This,\r
+  IN CHAR16                    *HostName,\r
+  IN EFI_DNS4_COMPLETION_TOKEN *Token\r
   );\r
 \r
 /**\r
@@ -378,10 +377,10 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_DNS4_IP_TO_HOST_NAME) (\r
-   IN EFI_DNS4_PROTOCOL         *This,\r
-   IN EFI_IPv4_ADDRESS          IpAddress,\r
-   IN EFI_DNS4_COMPLETION_TOKEN *Token\r
+(EFIAPI *EFI_DNS4_IP_TO_HOST_NAME)(\r
+  IN EFI_DNS4_PROTOCOL         *This,\r
+  IN EFI_IPv4_ADDRESS          IpAddress,\r
+  IN EFI_DNS4_COMPLETION_TOKEN *Token\r
   );\r
 \r
 /**\r
@@ -413,7 +412,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_DNS4_GENERAL_LOOKUP) (\r
+(EFIAPI *EFI_DNS4_GENERAL_LOOKUP)(\r
   IN EFI_DNS4_PROTOCOL          *This,\r
   IN CHAR8                      *QName,\r
   IN UINT16                     QType,\r
@@ -449,7 +448,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_DNS4_UPDATE_DNS_CACHE) (\r
+(EFIAPI *EFI_DNS4_UPDATE_DNS_CACHE)(\r
   IN EFI_DNS4_PROTOCOL          *This,\r
   IN BOOLEAN                    DeleteFlag,\r
   IN BOOLEAN                    Override,\r
@@ -479,7 +478,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_DNS4_POLL) (\r
+(EFIAPI *EFI_DNS4_POLL)(\r
   IN  EFI_DNS4_PROTOCOL         *This\r
   );\r
 \r
@@ -510,7 +509,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_DNS4_CANCEL) (\r
+(EFIAPI *EFI_DNS4_CANCEL)(\r
   IN  EFI_DNS4_PROTOCOL         *This,\r
   IN  EFI_DNS4_COMPLETION_TOKEN *Token\r
   );\r
@@ -521,17 +520,17 @@ EFI_STATUS
 /// from DNS.\r
 ///\r
 struct _EFI_DNS4_PROTOCOL {\r
-  EFI_DNS4_GET_MODE_DATA        GetModeData;\r
-  EFI_DNS4_CONFIGURE            Configure;\r
-  EFI_DNS4_HOST_NAME_TO_IP      HostNameToIp;\r
-  EFI_DNS4_IP_TO_HOST_NAME      IpToHostName;\r
-  EFI_DNS4_GENERAL_LOOKUP       GeneralLookUp;\r
-  EFI_DNS4_UPDATE_DNS_CACHE     UpdateDnsCache;\r
-  EFI_DNS4_POLL                 Poll;\r
-  EFI_DNS4_CANCEL               Cancel;\r
+  EFI_DNS4_GET_MODE_DATA       GetModeData;\r
+  EFI_DNS4_CONFIGURE           Configure;\r
+  EFI_DNS4_HOST_NAME_TO_IP     HostNameToIp;\r
+  EFI_DNS4_IP_TO_HOST_NAME     IpToHostName;\r
+  EFI_DNS4_GENERAL_LOOKUP      GeneralLookUp;\r
+  EFI_DNS4_UPDATE_DNS_CACHE    UpdateDnsCache;\r
+  EFI_DNS4_POLL                Poll;\r
+  EFI_DNS4_CANCEL              Cancel;\r
 };\r
 \r
-extern EFI_GUID gEfiDns4ServiceBindingProtocolGuid;\r
-extern EFI_GUID gEfiDns4ProtocolGuid;\r
+extern EFI_GUID  gEfiDns4ServiceBindingProtocolGuid;\r
+extern EFI_GUID  gEfiDns4ProtocolGuid;\r
 \r
 #endif\r