- add sources.
[platform/framework/web/crosswalk.git] / src / device / bluetooth / bluetooth_utils.h
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 DEVICE_BLUETOOTH_BLUETOOTH_UTILS_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_UTILS_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11
12 namespace device {
13 namespace bluetooth_utils {
14
15 // Takes a 4, 8 or 36 character UUID, validates it and returns it in 36
16 // character format with all hex digits lower case.  If |uuid| is invalid, the
17 // empty string is returned.
18 //
19 // Valid inputs are:
20 //   XXXX
21 //   0xXXXX
22 //   XXXXXXXX
23 //   0xXXXXXXXX
24 //   XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
25 std::string CanonicalUuid(std::string uuid);
26
27 }  // namespace bluetooth_utils
28 }  // namespace device
29
30 #endif  // DEVICE_BLUETOOTH_BLUETOOTH_UTILS_H_
31