]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/BluetoothLeConfig.h
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Include / Protocol / BluetoothLeConfig.h
index 5ecb45efc79829e03dcd79bb1bfa8d0301d698b6..6331e60a86559035826773510e1ba47c73c9dfe7 100644 (file)
@@ -47,38 +47,38 @@ typedef struct {
   /// structure as defined here. Future version of this specification may extend this data structure in a\r
   /// backward compatible way and increase the value of Version.\r
   ///\r
-  UINT32                    Version;\r
+  UINT32    Version;\r
   ///\r
   /// Passive scanning or active scanning. See Bluetooth specification.\r
   ///\r
-  UINT8                     ScanType;\r
+  UINT8     ScanType;\r
   ///\r
   /// Recommended scan interval to be used while performing scan.\r
   ///\r
-  UINT16                    ScanInterval;\r
+  UINT16    ScanInterval;\r
   ///\r
   /// Recommended scan window to be used while performing a scan.\r
   ///\r
-  UINT16                    ScanWindow;\r
+  UINT16    ScanWindow;\r
   ///\r
   /// Recommended scanning filter policy to be used while performing a scan.\r
   ///\r
-  UINT8                     ScanningFilterPolicy;\r
+  UINT8     ScanningFilterPolicy;\r
   ///\r
   /// This is one byte flag to serve as a filter to remove unneeded scan\r
   /// result. For example, set BIT0 means scan in LE Limited Discoverable\r
   /// Mode. Set BIT1 means scan in LE General Discoverable Mode.\r
   ///\r
-  UINT8                     AdvertisementFlagFilter;\r
+  UINT8     AdvertisementFlagFilter;\r
 } EFI_BLUETOOTH_LE_CONFIG_SCAN_PARAMETER;\r
 \r
-typedef struct{\r
-  BLUETOOTH_LE_ADDRESS BDAddr;\r
-  BLUETOOTH_LE_ADDRESS DirectAddress;\r
-  UINT8                RemoteDeviceState;\r
-  INT8                 RSSI;\r
-  UINTN                AdvertisementDataSize;\r
-  VOID                 *AdvertisementData;\r
+typedef struct {\r
+  BLUETOOTH_LE_ADDRESS    BDAddr;\r
+  BLUETOOTH_LE_ADDRESS    DirectAddress;\r
+  UINT8                   RemoteDeviceState;\r
+  INT8                    RSSI;\r
+  UINTN                   AdvertisementDataSize;\r
+  VOID                    *AdvertisementData;\r
 } EFI_BLUETOOTH_LE_SCAN_CALLBACK_INFORMATION;\r
 \r
 /**\r
@@ -93,7 +93,7 @@ typedef struct{
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_SCAN_CALLBACK_FUNCTION) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_SCAN_CALLBACK_FUNCTION)(\r
   IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL             *This,\r
   IN VOID                                         *Context,\r
   IN EFI_BLUETOOTH_LE_SCAN_CALLBACK_INFORMATION   *CallbackInfo\r
@@ -141,31 +141,31 @@ typedef struct {
   /// extend this data structure in a backward compatible way and\r
   /// increase the value of Version.\r
   ///\r
-  UINT32                    Version;\r
+  UINT32    Version;\r
   ///\r
   /// Recommended scan interval to be used while performing scan before connect.\r
   ///\r
-  UINT16                    ScanInterval;\r
+  UINT16    ScanInterval;\r
   ///\r
   /// Recommended scan window to be used while performing a connection\r
   ///\r
-  UINT16                    ScanWindow;\r
+  UINT16    ScanWindow;\r
   ///\r
   /// Minimum allowed connection interval. Shall be less than or equal to ConnIntervalMax.\r
   ///\r
-  UINT16                    ConnIntervalMin;\r
+  UINT16    ConnIntervalMin;\r
   ///\r
   /// Maximum allowed connection interval. Shall be greater than or equal to ConnIntervalMin.\r
   ///\r
-  UINT16                    ConnIntervalMax;\r
+  UINT16    ConnIntervalMax;\r
   ///\r
   /// Slave latency for the connection in number of connection events.\r
   ///\r
-  UINT16                    ConnLatency;\r
+  UINT16    ConnLatency;\r
   ///\r
   /// Link supervision timeout for the connection.\r
   ///\r
-  UINT16                    SupervisionTimeout;\r
+  UINT16    SupervisionTimeout;\r
 } EFI_BLUETOOTH_LE_CONFIG_CONNECT_PARAMETER;\r
 \r
 /**\r
@@ -250,7 +250,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_GET_DATA) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_GET_DATA)(\r
   IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL       *This,\r
   IN EFI_BLUETOOTH_CONFIG_DATA_TYPE      DataType,\r
   IN OUT UINTN                           *DataSize,\r
@@ -278,7 +278,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_SET_DATA) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_SET_DATA)(\r
   IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL       *This,\r
   IN EFI_BLUETOOTH_CONFIG_DATA_TYPE         DataType,\r
   IN UINTN                                  DataSize,\r
@@ -309,7 +309,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_GET_REMOTE_DATA) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_GET_REMOTE_DATA)(\r
   IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL       *This,\r
   IN EFI_BLUETOOTH_CONFIG_DATA_TYPE         DataType,\r
   IN BLUETOOTH_LE_ADDRESS                   *BDAddr,\r
@@ -369,7 +369,7 @@ typedef enum {
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_BLUETOOTH_LE_SMP_CALLBACK) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_SMP_CALLBACK)(\r
   IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL       *This,\r
   IN VOID                                   *Context,\r
   IN BLUETOOTH_LE_ADDRESS                   *BDAddr,\r
@@ -397,7 +397,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_BLUETOOTH_LE_REGISTER_SMP_AUTH_CALLBACK) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_REGISTER_SMP_AUTH_CALLBACK)(\r
   IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL  *This,\r
   IN EFI_BLUETOOTH_LE_SMP_CALLBACK     Callback,\r
   IN VOID                              *Context\r
@@ -423,7 +423,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_BLUETOOTH_LE_SEND_SMP_AUTH_DATA) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_SEND_SMP_AUTH_DATA)(\r
   IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL       *This,\r
   IN BLUETOOTH_LE_ADDRESS                   *BDAddr,\r
   IN EFI_BLUETOOTH_LE_SMP_EVENT_DATA_TYPE   EventDataType,\r
@@ -433,8 +433,8 @@ EFI_STATUS
 \r
 typedef enum {\r
   // For local device only\r
-  EfiBluetoothSmpLocalIR, /* If Key hierarchy is supported */\r
-  EfiBluetoothSmpLocalER, /* If Key hierarchy is supported */\r
+  EfiBluetoothSmpLocalIR,  /* If Key hierarchy is supported */\r
+  EfiBluetoothSmpLocalER,  /* If Key hierarchy is supported */\r
   EfiBluetoothSmpLocalDHK, /* If Key hierarchy is supported. OPTIONAL */\r
   // For peer specific\r
   EfiBluetoothSmpKeysDistributed = 0x1000,\r
@@ -446,8 +446,8 @@ typedef enum {
   EfiBluetoothSmpPeerRand,\r
   EfiBluetoothSmpPeerEDIV,\r
   EfiBluetoothSmpPeerSignCounter,\r
-  EfiBluetoothSmpLocalLTK, /* If Key hierarchy not supported */\r
-  EfiBluetoothSmpLocalIRK, /* If Key hierarchy not supported */\r
+  EfiBluetoothSmpLocalLTK,  /* If Key hierarchy not supported */\r
+  EfiBluetoothSmpLocalIRK,  /* If Key hierarchy not supported */\r
   EfiBluetoothSmpLocalCSRK, /* If Key hierarchy not supported */\r
   EfiBluetoothSmpLocalSignCounter,\r
   EfiBluetoothSmpLocalDIV,\r
@@ -473,7 +473,7 @@ typedef enum {
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI * EFI_BLUETOOTH_LE_CONFIG_SMP_GET_DATA_CALLBACK) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_SMP_GET_DATA_CALLBACK)(\r
   IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL  *This,\r
   IN VOID                              *Context,\r
   IN BLUETOOTH_LE_ADDRESS              *BDAddr,\r
@@ -499,7 +499,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI * EFI_BLUETOOTH_LE_CONFIG_REGISTER_SMP_GET_DATA_CALLBACK) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_REGISTER_SMP_GET_DATA_CALLBACK)(\r
   IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL              *This,\r
   IN EFI_BLUETOOTH_LE_CONFIG_SMP_GET_DATA_CALLBACK Callback,\r
   IN VOID                                          *Context\r
@@ -521,7 +521,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI * EFI_BLUETOOTH_LE_CONFIG_SMP_SET_DATA_CALLBACK) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_SMP_SET_DATA_CALLBACK)(\r
   IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL  *This,\r
   IN VOID                              *Context,\r
   IN BLUETOOTH_LE_ADDRESS              *BDAddr,\r
@@ -547,7 +547,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI * EFI_BLUETOOTH_LE_CONFIG_REGISTER_SMP_SET_DATA_CALLBACK) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_REGISTER_SMP_SET_DATA_CALLBACK)(\r
   IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL              *This,\r
   IN EFI_BLUETOOTH_LE_CONFIG_SMP_SET_DATA_CALLBACK Callback,\r
   IN VOID                                          *Context\r
@@ -569,7 +569,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_CONNECT_COMPLETE_CALLBACK) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_CONNECT_COMPLETE_CALLBACK)(\r
   IN  EFI_BLUETOOTH_LE_CONFIG_PROTOCOL                 *This,\r
   IN  VOID                                             *Context,\r
   IN  EFI_BLUETOOTH_CONNECT_COMPLETE_CALLBACK_TYPE     CallbackType,\r
@@ -600,7 +600,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_REGISTER_CONNECT_COMPLETE_CALLBACK) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_REGISTER_CONNECT_COMPLETE_CALLBACK)(\r
   IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL                        *This,\r
   IN EFI_BLUETOOTH_LE_CONFIG_CONNECT_COMPLETE_CALLBACK       Callback,\r
   IN VOID                                                    *Context\r
@@ -610,20 +610,20 @@ EFI_STATUS
 /// This protocol abstracts user interface configuration for BluetoothLe device.\r
 ///\r
 struct _EFI_BLUETOOTH_LE_CONFIG_PROTOCOL {\r
-  EFI_BLUETOOTH_LE_CONFIG_INIT                               Init;\r
-  EFI_BLUETOOTH_LE_CONFIG_SCAN                               Scan;\r
-  EFI_BLUETOOTH_LE_CONFIG_CONNECT                            Connect;\r
-  EFI_BLUETOOTH_LE_CONFIG_DISCONNECT                         Disconnect;\r
-  EFI_BLUETOOTH_LE_CONFIG_GET_DATA                           GetData;\r
-  EFI_BLUETOOTH_LE_CONFIG_SET_DATA                           SetData;\r
-  EFI_BLUETOOTH_LE_CONFIG_GET_REMOTE_DATA                    GetRemoteData;\r
-  EFI_BLUETOOTH_LE_REGISTER_SMP_AUTH_CALLBACK                RegisterSmpAuthCallback;\r
-  EFI_BLUETOOTH_LE_SEND_SMP_AUTH_DATA                        SendSmpAuthData;\r
-  EFI_BLUETOOTH_LE_CONFIG_REGISTER_SMP_GET_DATA_CALLBACK     RegisterSmpGetDataCallback;\r
-  EFI_BLUETOOTH_LE_CONFIG_REGISTER_SMP_SET_DATA_CALLBACK     RegisterSmpSetDataCallback;\r
-  EFI_BLUETOOTH_LE_CONFIG_REGISTER_CONNECT_COMPLETE_CALLBACK RegisterLinkConnectCompleteCallback;\r
+  EFI_BLUETOOTH_LE_CONFIG_INIT                                  Init;\r
+  EFI_BLUETOOTH_LE_CONFIG_SCAN                                  Scan;\r
+  EFI_BLUETOOTH_LE_CONFIG_CONNECT                               Connect;\r
+  EFI_BLUETOOTH_LE_CONFIG_DISCONNECT                            Disconnect;\r
+  EFI_BLUETOOTH_LE_CONFIG_GET_DATA                              GetData;\r
+  EFI_BLUETOOTH_LE_CONFIG_SET_DATA                              SetData;\r
+  EFI_BLUETOOTH_LE_CONFIG_GET_REMOTE_DATA                       GetRemoteData;\r
+  EFI_BLUETOOTH_LE_REGISTER_SMP_AUTH_CALLBACK                   RegisterSmpAuthCallback;\r
+  EFI_BLUETOOTH_LE_SEND_SMP_AUTH_DATA                           SendSmpAuthData;\r
+  EFI_BLUETOOTH_LE_CONFIG_REGISTER_SMP_GET_DATA_CALLBACK        RegisterSmpGetDataCallback;\r
+  EFI_BLUETOOTH_LE_CONFIG_REGISTER_SMP_SET_DATA_CALLBACK        RegisterSmpSetDataCallback;\r
+  EFI_BLUETOOTH_LE_CONFIG_REGISTER_CONNECT_COMPLETE_CALLBACK    RegisterLinkConnectCompleteCallback;\r
 };\r
 \r
-extern EFI_GUID gEfiBluetoothLeConfigProtocolGuid;\r
+extern EFI_GUID  gEfiBluetoothLeConfigProtocolGuid;\r
 \r
 #endif\r