Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Unified Diff: chrome/browser/chromeos/bluetooth/bluetooth_utils.h

Issue 10007008: Add support for creating bluetooth RFCOMM sockets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase diff to exclude extensions code Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/bluetooth/bluetooth_utils.h
diff --git a/chrome/browser/chromeos/bluetooth/bluetooth_utils.h b/chrome/browser/chromeos/bluetooth/bluetooth_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..21740379c7ef4a996f7ff2d7a849f06b2d69ed5d
--- /dev/null
+++ b/chrome/browser/chromeos/bluetooth/bluetooth_utils.h
@@ -0,0 +1,25 @@
+// 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 CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_UTILS_H_
+#define CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_UTILS_H_
+#pragma once
+
+#include <string>
+
+#include <bluetooth/bluetooth.h>
+
+namespace chromeos {
+namespace bluetooth_utils {
+
+// Converts a bluetooth address in the format "B0:D0:9C:0F:3A:2D" into a
+// bdaddr_t struct. Returns true on success, false on failure. The contents
+// of |out_address| are zeroed on failure.
+bool str2ba(const std::string& in_address, bdaddr_t* out_address);
+
+} // namespace bluetooth_utils
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_UTILS_H_
+
« no previous file with comments | « chrome/browser/chromeos/bluetooth/bluetooth_socket.cc ('k') | chrome/browser/chromeos/bluetooth/bluetooth_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698