Implement nacl_irt_memory for non-sfi mode.
[chromium-blink-merge.git] / device / bluetooth / bluetooth_utils.h
blob099516013c4de58d4beca9ed946ca813820c8db8
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.
5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_UTILS_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_UTILS_H_
8 #include <string>
10 #include "base/basictypes.h"
12 namespace device {
13 namespace bluetooth_utils {
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.
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);
27 } // namespace bluetooth_utils
28 } // namespace device
30 #endif // DEVICE_BLUETOOTH_BLUETOOTH_UTILS_H_