diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-09-01 20:14:41 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-09-03 14:10:19 +0300 |
commit | c7c092bca3f13348f2f92e72999ee585f98e7974 (patch) | |
tree | 1473f0549a4ffdfda5e08cd5c603b976e78642ba /lib/uuid.c | |
parent | 6d73ad9a1cdc11d4f0159b4610312d68ffc71f20 (diff) | |
download | bluez-c7c092bca3f13348f2f92e72999ee585f98e7974.tar.gz |
uuid: Add string-format UUID comparison helper function
Diffstat (limited to 'lib/uuid.c')
-rw-r--r-- | lib/uuid.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/uuid.c b/lib/uuid.c index a3e2a1ad8..4363aee49 100644 --- a/lib/uuid.c +++ b/lib/uuid.c @@ -271,3 +271,8 @@ int bt_string_to_uuid(bt_uuid_t *uuid, const char *string) return -EINVAL; } + +int bt_uuid_strcmp(const void *a, const void *b) +{ + return strcasecmp(a, b); +} |