]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/Http.h
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Include / Protocol / Http.h
index 8347363e4e549221b9265ddfd71eac745d8fc728..28e6221593929334ad10441e56bcffeca3cc9ca8 100644 (file)
@@ -110,22 +110,22 @@ typedef struct {
   /// information in every TCP connection made by this instance. In addition, when set\r
   /// to TRUE, LocalAddress and LocalSubnet are ignored.\r
   ///\r
-  BOOLEAN                       UseDefaultAddress;\r
+  BOOLEAN             UseDefaultAddress;\r
   ///\r
   /// If UseDefaultAddress is set to FALSE, this defines the local IP address to be\r
   /// used in every TCP connection opened by this instance.\r
   ///\r
-  EFI_IPv4_ADDRESS              LocalAddress;\r
+  EFI_IPv4_ADDRESS    LocalAddress;\r
   ///\r
   /// If UseDefaultAddress is set to FALSE, this defines the local subnet to be used\r
   /// in every TCP connection opened by this instance.\r
   ///\r
-  EFI_IPv4_ADDRESS              LocalSubnet;\r
+  EFI_IPv4_ADDRESS    LocalSubnet;\r
   ///\r
   /// This defines the local port to be used in\r
   /// every TCP connection opened by this instance.\r
   ///\r
-  UINT16                        LocalPort;\r
+  UINT16              LocalPort;\r
 } EFI_HTTPv4_ACCESS_POINT;\r
 \r
 ///\r
@@ -135,45 +135,44 @@ typedef struct {
   ///\r
   /// Local IP address to be used in every TCP connection opened by this instance.\r
   ///\r
-  EFI_IPv6_ADDRESS              LocalAddress;\r
+  EFI_IPv6_ADDRESS    LocalAddress;\r
   ///\r
   /// Local port to be used in every TCP connection opened by this instance.\r
   ///\r
-  UINT16                        LocalPort;\r
+  UINT16              LocalPort;\r
 } EFI_HTTPv6_ACCESS_POINT;\r
 \r
 ///\r
 /// EFI_HTTP_CONFIG_DATA_ACCESS_POINT\r
 ///\r
 \r
-\r
 typedef struct {\r
   ///\r
   /// HTTP version that this instance will support.\r
   ///\r
-  EFI_HTTP_VERSION                   HttpVersion;\r
+  EFI_HTTP_VERSION    HttpVersion;\r
   ///\r
   /// Time out (in milliseconds) when blocking for requests.\r
   ///\r
-  UINT32                             TimeOutMillisec;\r
+  UINT32              TimeOutMillisec;\r
   ///\r
   /// Defines behavior of EFI DNS and TCP protocols consumed by this instance. If\r
   /// FALSE, this instance will use EFI_DNS4_PROTOCOL and EFI_TCP4_PROTOCOL. If TRUE,\r
   /// this instance will use EFI_DNS6_PROTOCOL and EFI_TCP6_PROTOCOL.\r
   ///\r
-  BOOLEAN                            LocalAddressIsIPv6;\r
+  BOOLEAN             LocalAddressIsIPv6;\r
 \r
   union {\r
     ///\r
     /// When LocalAddressIsIPv6 is FALSE, this points to the local address, subnet, and\r
     /// port used by the underlying TCP protocol.\r
     ///\r
-    EFI_HTTPv4_ACCESS_POINT          *IPv4Node;\r
+    EFI_HTTPv4_ACCESS_POINT    *IPv4Node;\r
     ///\r
     /// When LocalAddressIsIPv6 is TRUE, this points to the local IPv6 address and port\r
     /// used by the underlying TCP protocol.\r
     ///\r
-    EFI_HTTPv6_ACCESS_POINT          *IPv6Node;\r
+    EFI_HTTPv6_ACCESS_POINT    *IPv6Node;\r
   } AccessPoint;\r
 } EFI_HTTP_CONFIG_DATA;\r
 \r
@@ -184,14 +183,14 @@ typedef struct {
   ///\r
   /// The HTTP method (e.g. GET, POST) for this HTTP Request.\r
   ///\r
-  EFI_HTTP_METHOD               Method;\r
+  EFI_HTTP_METHOD    Method;\r
   ///\r
   /// The URI of a remote host. From the information in this field, the HTTP instance\r
   /// will be able to determine whether to use HTTP or HTTPS and will also be able to\r
   /// determine the port number to use. If no port number is specified, port 80 (HTTP)\r
   /// is assumed. See RFC 3986 for more details on URI syntax.\r
   ///\r
-  CHAR16                        *Url;\r
+  CHAR16             *Url;\r
 } EFI_HTTP_REQUEST_DATA;\r
 \r
 ///\r
@@ -201,7 +200,7 @@ typedef struct {
   ///\r
   /// Response status code returned by the remote host.\r
   ///\r
-  EFI_HTTP_STATUS_CODE          StatusCode;\r
+  EFI_HTTP_STATUS_CODE    StatusCode;\r
 } EFI_HTTP_RESPONSE_DATA;\r
 \r
 ///\r
@@ -212,12 +211,12 @@ typedef struct {
   /// Null terminated string which describes a field name. See RFC 2616 Section 14 for\r
   /// detailed information about field names.\r
   ///\r
-  CHAR8                         *FieldName;\r
+  CHAR8    *FieldName;\r
   ///\r
   /// Null terminated string which describes the corresponding field value. See RFC 2616\r
   /// Section 14 for detailed information about field values.\r
   ///\r
-  CHAR8                         *FieldValue;\r
+  CHAR8    *FieldValue;\r
 } EFI_HTTP_HEADER;\r
 \r
 ///\r
@@ -232,37 +231,36 @@ typedef struct {
     /// When the token is used to send a HTTP request, Request is a pointer to storage that\r
     /// contains such data as URL and HTTP method.\r
     ///\r
-    EFI_HTTP_REQUEST_DATA       *Request;\r
+    EFI_HTTP_REQUEST_DATA     *Request;\r
     ///\r
     /// When used to await a response, Response points to storage containing HTTP response\r
     /// status code.\r
     ///\r
-    EFI_HTTP_RESPONSE_DATA      *Response;\r
+    EFI_HTTP_RESPONSE_DATA    *Response;\r
   } Data;\r
   ///\r
   /// Number of HTTP header structures in Headers list. On request, this count is\r
   /// provided by the caller. On response, this count is provided by the HTTP driver.\r
   ///\r
-  UINTN                         HeaderCount;\r
+  UINTN              HeaderCount;\r
   ///\r
   /// Array containing list of HTTP headers. On request, this array is populated by the\r
   /// caller. On response, this array is allocated and populated by the HTTP driver. It\r
   /// is the responsibility of the caller to free this memory on both request and\r
   /// response.\r
   ///\r
-  EFI_HTTP_HEADER               *Headers;\r
+  EFI_HTTP_HEADER    *Headers;\r
   ///\r
   /// Length in bytes of the HTTP body. This can be zero depending on the HttpMethod type.\r
   ///\r
-  UINTN                         BodyLength;\r
+  UINTN              BodyLength;\r
   ///\r
   /// Body associated with the HTTP request or response. This can be NULL depending on\r
   /// the HttpMethod type.\r
   ///\r
-  VOID                          *Body;\r
+  VOID               *Body;\r
 } EFI_HTTP_MESSAGE;\r
 \r
-\r
 ///\r
 /// EFI_HTTP_TOKEN\r
 ///\r
@@ -272,7 +270,7 @@ typedef struct {
   /// Protocol driver. The type of Event must be EFI_NOTIFY_SIGNAL. The Task Priority\r
   /// Level (TPL) of Event must be lower than or equal to TPL_CALLBACK.\r
   ///\r
-  EFI_EVENT                     Event;\r
+  EFI_EVENT    Event;\r
   ///\r
   /// Status will be set to one of the following value if the HTTP request is\r
   /// successfully sent or if an unexpected error occurs:\r
@@ -284,11 +282,11 @@ typedef struct {
   ///   EFI_TIMEOUT:      The HTTP request timed out before reaching the remote host.\r
   ///   EFI_DEVICE_ERROR: An unexpected system or network error occurred.\r
   ///\r
-  EFI_STATUS                    Status;\r
+  EFI_STATUS          Status;\r
   ///\r
   /// Pointer to storage containing HTTP message data.\r
   ///\r
-  EFI_HTTP_MESSAGE              *Message;\r
+  EFI_HTTP_MESSAGE    *Message;\r
 } EFI_HTTP_TOKEN;\r
 \r
 /**\r
@@ -383,7 +381,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_HTTP_REQUEST) (\r
+(EFIAPI *EFI_HTTP_REQUEST)(\r
   IN  EFI_HTTP_PROTOCOL         *This,\r
   IN  EFI_HTTP_TOKEN            *Token\r
   );\r
@@ -465,7 +463,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_HTTP_RESPONSE) (\r
+(EFIAPI *EFI_HTTP_RESPONSE)(\r
   IN  EFI_HTTP_PROTOCOL         *This,\r
   IN  EFI_HTTP_TOKEN            *Token\r
   );\r
@@ -491,7 +489,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_HTTP_POLL) (\r
+(EFIAPI *EFI_HTTP_POLL)(\r
   IN  EFI_HTTP_PROTOCOL         *This\r
   );\r
 \r
@@ -502,15 +500,15 @@ EFI_STATUS
 /// TCP protocol.\r
 ///\r
 struct _EFI_HTTP_PROTOCOL {\r
-  EFI_HTTP_GET_MODE_DATA        GetModeData;\r
-  EFI_HTTP_CONFIGURE            Configure;\r
-  EFI_HTTP_REQUEST              Request;\r
-  EFI_HTTP_CANCEL               Cancel;\r
-  EFI_HTTP_RESPONSE             Response;\r
-  EFI_HTTP_POLL                 Poll;\r
+  EFI_HTTP_GET_MODE_DATA    GetModeData;\r
+  EFI_HTTP_CONFIGURE        Configure;\r
+  EFI_HTTP_REQUEST          Request;\r
+  EFI_HTTP_CANCEL           Cancel;\r
+  EFI_HTTP_RESPONSE         Response;\r
+  EFI_HTTP_POLL             Poll;\r
 };\r
 \r
-extern EFI_GUID gEfiHttpServiceBindingProtocolGuid;\r
-extern EFI_GUID gEfiHttpProtocolGuid;\r
+extern EFI_GUID  gEfiHttpServiceBindingProtocolGuid;\r
+extern EFI_GUID  gEfiHttpProtocolGuid;\r
 \r
 #endif\r