| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_INIT_WIN_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_INIT_WIN_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_INIT_WIN_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_INIT_WIN_H_ |
| 7 | 7 |
| 8 // windows.h needs to be included before BluetoothAPIs.h. | 8 // windows.h needs to be included before BluetoothAPIs.h. |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 | 10 |
| 11 #include <BluetoothAPIs.h> | 11 #include <BluetoothAPIs.h> |
| 12 #include <delayimp.h> | 12 #include <delayimp.h> |
| 13 #include <ws2def.h> | 13 #include <ws2def.h> |
| 14 #include <ws2bth.h> | 14 #include <ws2bth.h> |
| 15 | 15 |
| 16 #include "device/bluetooth/bluetooth_export.h" | 16 #include "device/bluetooth/bluetooth_export.h" |
| 17 | 17 |
| 18 #pragma comment(lib, "Bthprops.lib") | |
| 19 #pragma comment(lib, "BluetoothApis.lib") | |
| 20 | |
| 21 namespace device { | 18 namespace device { |
| 22 namespace bluetooth_init_win { | 19 namespace bluetooth_init_win { |
| 23 | 20 |
| 24 // Returns true if the machine has a bluetooth stack available. The first call | 21 // Returns true if the machine has a bluetooth stack available. The first call |
| 25 // to this function will involve file IO, so it should be done on an appropriate | 22 // to this function will involve file IO, so it should be done on an appropriate |
| 26 // thread. This function is not thread-safe. | 23 // thread. This function is not thread-safe. |
| 27 bool DEVICE_BLUETOOTH_EXPORT HasBluetoothStack(); | 24 bool DEVICE_BLUETOOTH_EXPORT HasBluetoothStack(); |
| 28 | 25 |
| 29 } // namespace bluetooth_init_win | 26 } // namespace bluetooth_init_win |
| 30 } // namespace device | 27 } // namespace device |
| 31 | 28 |
| 32 #endif // DEVICE_BLUETOOTH_BLUETOOTH_INIT_WIN_H_ | 29 #endif // DEVICE_BLUETOOTH_BLUETOOTH_INIT_WIN_H_ |
| OLD | NEW |