| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "device/bluetooth/bluetooth_classic_win.h" | 5 #include "device/bluetooth/bluetooth_classic_win.h" |
| 6 | 6 |
| 7 namespace { | 7 namespace { |
| 8 static device::win::BluetoothClassicWrapper* g_instance_ = nullptr; | 8 static device::win::BluetoothClassicWrapper* g_instance_ = nullptr; |
| 9 } // namespace | 9 } // namespace |
| 10 | 10 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 BOOL BluetoothClassicWrapper::EnableDiscovery(HANDLE handle, BOOL is_enable) { | 80 BOOL BluetoothClassicWrapper::EnableDiscovery(HANDLE handle, BOOL is_enable) { |
| 81 return BluetoothEnableDiscovery(handle, is_enable); | 81 return BluetoothEnableDiscovery(handle, is_enable); |
| 82 } | 82 } |
| 83 | 83 |
| 84 BOOL BluetoothClassicWrapper::EnableIncomingConnections(HANDLE handle, | 84 BOOL BluetoothClassicWrapper::EnableIncomingConnections(HANDLE handle, |
| 85 BOOL is_enable) { | 85 BOOL is_enable) { |
| 86 return BluetoothEnableIncomingConnections(handle, is_enable); | 86 return BluetoothEnableIncomingConnections(handle, is_enable); |
| 87 } | 87 } |
| 88 | 88 |
| 89 DWORD BluetoothClassicWrapper::LastError() { |
| 90 return GetLastError(); |
| 91 } |
| 92 |
| 89 } // namespace win | 93 } // namespace win |
| 90 } // namespace device | 94 } // namespace device |
| OLD | NEW |