Index: chromeos/dbus/bluetooth_out_of_band_pairing_data.h |
diff --git a/chromeos/dbus/bluetooth_out_of_band_pairing_data.h b/chromeos/dbus/bluetooth_out_of_band_pairing_data.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..be8005738c089ef15e4bad6874f4210590e695ec |
--- /dev/null |
+++ b/chromeos/dbus/bluetooth_out_of_band_pairing_data.h |
@@ -0,0 +1,29 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROMEOS_DBUS_BLUETOOTH_OUT_OF_BAND_PAIRING_DATA_H_ |
+#define CHROMEOS_DBUS_BLUETOOTH_OUT_OF_BAND_PAIRING_DATA_H_ |
+#pragma once |
+ |
+#include "base/callback.h" |
+#include "base/memory/scoped_ptr.h" |
+ |
+namespace chromeos { |
+ |
+static const size_t kOutOfBandPairingDataSize = 16; |
+ |
+struct OutOfBandPairingData { |
+ // Simple Pairing Hash C |
+ uint8_t hash[kOutOfBandPairingDataSize]; |
+ |
+ // Simple Pairing Randomizer R |
+ uint8_t randomizer[kOutOfBandPairingDataSize]; |
+}; |
+ |
+typedef base::Callback<void(const OutOfBandPairingData& data, |
+ bool success)> OutOfBandPairingDataCallback; |
+ |
+} // namespace chromeos |
+ |
+#endif // CHROMEOS_DBUS_BLUETOOTH_OUT_OF_BAND_PAIRING_DATA_H_ |