OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROMEOS_DBUS_BLUETOOTH_OUT_OF_BAND_PAIRING_DATA_H_ |
| 6 #define CHROMEOS_DBUS_BLUETOOTH_OUT_OF_BAND_PAIRING_DATA_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/callback.h" |
| 10 #include "base/memory/scoped_ptr.h" |
| 11 |
| 12 namespace chromeos { |
| 13 |
| 14 static const size_t kOutOfBandPairingDataSize = 16; |
| 15 |
| 16 struct OutOfBandPairingData { |
| 17 // Simple Pairing Hash C |
| 18 uint8_t hash[kOutOfBandPairingDataSize]; |
| 19 |
| 20 // Simple Pairing Randomizer R |
| 21 uint8_t randomizer[kOutOfBandPairingDataSize]; |
| 22 }; |
| 23 |
| 24 typedef base::Callback<void(const OutOfBandPairingData& data, |
| 25 bool success)> OutOfBandPairingDataCallback; |
| 26 |
| 27 } // namespace chromeos |
| 28 |
| 29 #endif // CHROMEOS_DBUS_BLUETOOTH_OUT_OF_BAND_PAIRING_DATA_H_ |
OLD | NEW |