]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/Ftp4.h
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Include / Protocol / Ftp4.h
index 3b05de8a11585456832d4c00b64e640676b9d7a8..f2dd8b8c154caead2e42e75a22305cc49b45e216 100644 (file)
@@ -18,7 +18,6 @@
 #ifndef __EFI_FTP4_PROTOCOL_H__\r
 #define __EFI_FTP4_PROTOCOL_H__\r
 \r
-\r
 #define EFI_FTP4_SERVICE_BINDING_PROTOCOL_GUID \\r
   { \\r
     0xfaaecb1, 0x226e, 0x4782, {0xaa, 0xce, 0x7d, 0xb9, 0xbc, 0xbf, 0x4d, 0xaf } \\r
@@ -42,7 +41,7 @@ typedef struct {
   /// equal to TPL_CALLBACK. If it is set to NULL, this function will not return  until the\r
   /// function completes.\r
   ///\r
-  EFI_EVENT                            Event;\r
+  EFI_EVENT    Event;\r
   ///\r
   /// The variable to receive the result of the completed operation.\r
   /// EFI_SUCCESS:              The FTP connection is established successfully\r
@@ -63,7 +62,7 @@ typedef struct {
   ///                           error is received.\r
   /// EFI_DEVICE_ERROR:         An unexpected system or network error occurred.\r
   ///\r
-  EFI_STATUS                           Status;\r
+  EFI_STATUS    Status;\r
 } EFI_FTP4_CONNECTION_TOKEN;\r
 \r
 ///\r
@@ -74,47 +73,47 @@ typedef struct {
   /// Pointer to a ASCII string that contains user name. The caller is\r
   /// responsible for freeing Username after GetModeData() is called.\r
   ///\r
-  UINT8                                *Username;\r
+  UINT8               *Username;\r
   ///\r
   /// Pointer to a ASCII string that contains password. The caller is\r
   /// responsible for freeing Password after GetModeData() is called.\r
   ///\r
-  UINT8                                *Password;\r
+  UINT8               *Password;\r
   ///\r
   /// Set it to TRUE to initiate an active data connection. Set it to\r
   /// FALSE to initiate a passive data connection.\r
   ///\r
-  BOOLEAN                              Active;\r
+  BOOLEAN             Active;\r
   ///\r
   /// Boolean value indicating if default network settting used.\r
   ///\r
-  BOOLEAN                              UseDefaultSetting;\r
+  BOOLEAN             UseDefaultSetting;\r
   ///\r
   /// IP address of station if UseDefaultSetting is FALSE.\r
   ///\r
-  EFI_IPv4_ADDRESS                     StationIp;\r
+  EFI_IPv4_ADDRESS    StationIp;\r
   ///\r
   /// Subnet mask of station if UseDefaultSetting is FALSE.\r
   ///\r
-  EFI_IPv4_ADDRESS                     SubnetMask;\r
+  EFI_IPv4_ADDRESS    SubnetMask;\r
   ///\r
   /// IP address of gateway if UseDefaultSetting is FALSE.\r
   ///\r
-  EFI_IPv4_ADDRESS                     GatewayIp;\r
+  EFI_IPv4_ADDRESS    GatewayIp;\r
   ///\r
   /// IP address of FTPv4 server.\r
   ///\r
-  EFI_IPv4_ADDRESS                     ServerIp;\r
+  EFI_IPv4_ADDRESS    ServerIp;\r
   ///\r
   /// FTPv4 server port number of control connection, and the default\r
   /// value is 21 as convention.\r
   ///\r
-  UINT16                               ServerPort;\r
+  UINT16              ServerPort;\r
   ///\r
   /// FTPv4 server port number of data connection. If it is zero, use\r
   /// (ServerPort - 1) by convention.\r
   ///\r
-  UINT16                               AltDataPort;\r
+  UINT16              AltDataPort;\r
   ///\r
   /// A byte indicate the representation type. The right 4 bit is used for\r
   /// first parameter, the left 4 bit is use for second parameter\r
@@ -124,15 +123,15 @@ typedef struct {
   /// - If it is a local type, the second parameter is the local byte byte size.\r
   /// - If it is a image type, the second parameter is undefined.\r
   ///\r
-  UINT8                                RepType;\r
+  UINT8    RepType;\r
   ///\r
   /// Defines the file structure in FTP used. 0x00 = file, 0x01 = record, 0x02 = page.\r
   ///\r
-  UINT8                                FileStruct;\r
+  UINT8    FileStruct;\r
   ///\r
   /// Defines the transifer mode used in FTP. 0x00 = stream, 0x01 = Block, 0x02 = Compressed.\r
   ///\r
-  UINT8                                TransMode;\r
+  UINT8    TransMode;\r
 } EFI_FTP4_CONFIG_DATA;\r
 \r
 typedef struct _EFI_FTP4_COMMAND_TOKEN EFI_FTP4_COMMAND_TOKEN;\r
@@ -172,20 +171,20 @@ struct _EFI_FTP4_COMMAND_TOKEN {
   /// set to NULL, related function must wait until the function\r
   /// completes.\r
   ///\r
-  EFI_EVENT                             Event;\r
+  EFI_EVENT    Event;\r
   ///\r
   /// Pointer to a null-terminated ASCII name string.\r
   ///\r
-  UINT8                                 *Pathname;\r
+  UINT8        *Pathname;\r
   ///\r
   /// The size of data buffer in bytes.\r
   ///\r
-  UINT64                                DataBufferSize;\r
+  UINT64       DataBufferSize;\r
   ///\r
   /// Pointer to the data buffer. Data downloaded from FTP server\r
   /// through connection is downloaded here.\r
   ///\r
-  VOID                                  *DataBuffer;\r
+  VOID         *DataBuffer;\r
   ///\r
   /// Pointer to a callback function. If it is receiving function that leads\r
   /// to inbound data, the callback function is called when databuffer is\r
@@ -198,11 +197,11 @@ struct _EFI_FTP4_COMMAND_TOKEN {
   /// DataBufferSize, again. If there is no data remained,\r
   /// DataBufferSize should be set to 0.\r
   ///\r
-  EFI_FTP4_DATA_CALLBACK                DataCallback;\r
+  EFI_FTP4_DATA_CALLBACK    DataCallback;\r
   ///\r
   /// Pointer to the parameter for DataCallback.\r
   ///\r
-  VOID                                  *Context;\r
+  VOID                      *Context;\r
   ///\r
   /// The variable to receive the result of the completed operation.\r
   /// EFI_SUCCESS:              The FTP command is completed successfully.\r
@@ -223,7 +222,7 @@ struct _EFI_FTP4_COMMAND_TOKEN {
   ///                           error is received.\r
   /// EFI_DEVICE_ERROR:         An unexpected system or network error occurred.\r
   ///\r
-  EFI_STATUS                            Status;\r
+  EFI_STATUS    Status;\r
 };\r
 \r
 /**\r
@@ -353,7 +352,6 @@ EFI_STATUS
   IN EFI_FTP4_CONFIG_DATA        *FtpConfigData OPTIONAL\r
   );\r
 \r
-\r
 /**\r
   Downloads a file from an FTPv4 server.\r
 \r
@@ -511,8 +509,7 @@ struct _EFI_FTP4_PROTOCOL {
   EFI_FTP4_POLL              Poll;\r
 };\r
 \r
-extern EFI_GUID gEfiFtp4ServiceBindingProtocolGuid;\r
-extern EFI_GUID gEfiFtp4ProtocolGuid;\r
+extern EFI_GUID  gEfiFtp4ServiceBindingProtocolGuid;\r
+extern EFI_GUID  gEfiFtp4ProtocolGuid;\r
 \r
 #endif\r
-\r