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_
10 #include "base/basictypes.h"
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.
24 // XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
25 std::string
CanonicalUuid(std::string uuid
);
27 } // namespace bluetooth_utils
30 #endif // DEVICE_BLUETOOTH_BLUETOOTH_UTILS_H_