diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-09-20 16:44:13 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-09-21 08:44:48 -0500 |
commit | 04634af6fea838fdb3c841684b91f41a3b18d0ab (patch) | |
tree | 20ffde1fbcf7ddebb5aebdeb39b0920663406675 /src/common.c | |
parent | dbd7639d256be829cf20a34128f44575d8e0793a (diff) | |
download | ofono-04634af6fea838fdb3c841684b91f41a3b18d0ab.tar.bz2 |
common: Implement ofono_uuid_to_str
Diffstat (limited to 'src/common.c')
-rw-r--r-- | src/common.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c index 4eaff5e9..8243f214 100644 --- a/src/common.c +++ b/src/common.c @@ -31,6 +31,7 @@ #include <ofono/types.h> #include "common.h" +#include "util.h" struct error_entry { int error; @@ -686,3 +687,10 @@ gboolean is_valid_apn(const char *apn) return TRUE; } + +const char *ofono_uuid_to_str(const struct ofono_uuid *uuid) +{ + static char buf[OFONO_SHA1_UUID_LEN * 2 + 1]; + + return encode_hex_own_buf(uuid->uuid, OFONO_SHA1_UUID_LEN, 0, buf); +} |