From 054f044588ee84c300b11ef4d94ddc55fe170539 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 6 Nov 2008 16:12:16 -0300 Subject: Rename bt_string2class to bt_name2class and introduce bt_name2string. Since bt_string2class didn't work for UUID128 in string format the name got changed to be more suggestive. bt_name2string was introduced to prevent potential use of bt_string2uuid followed with bt_uuid2string which turns to do the same conversion twice. --- common/glib-helper.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/glib-helper.h') diff --git a/common/glib-helper.h b/common/glib-helper.h index ee63b2d7..794d296c 100644 --- a/common/glib-helper.h +++ b/common/glib-helper.h @@ -38,7 +38,8 @@ int bt_search_service(const bdaddr_t *src, const bdaddr_t *dst, int bt_cancel_discovery(const bdaddr_t *src, const bdaddr_t *dst); gchar *bt_uuid2string(uuid_t *uuid); -uint16_t bt_string2class(const char *string); +uint16_t bt_name2class(const char *string); +char *bt_name2string(const char *string); int bt_string2uuid(uuid_t *uuid, const char *string); gchar *bt_list2string(GSList *list); GSList *bt_string2list(const gchar *str); -- cgit