diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-12 13:06:40 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-14 07:05:26 +0200 |
commit | a66f971a7cdea4bf1d9f6390e12f950f41ee5595 (patch) | |
tree | 91134bf4d00ffd509a8b7112effe2525342cfb88 /libmm-common/mm-common-helpers.h | |
parent | fbe01c8d6a22cb95ff74ddefc907e663cdeee710 (diff) |
libmm-common: added common utils from core
Moved the utils to play with binary to hex strings into libmm-common.
Diffstat (limited to 'libmm-common/mm-common-helpers.h')
-rw-r--r-- | libmm-common/mm-common-helpers.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libmm-common/mm-common-helpers.h b/libmm-common/mm-common-helpers.h index 0bbaf145..3d5657d8 100644 --- a/libmm-common/mm-common-helpers.h +++ b/libmm-common/mm-common-helpers.h @@ -10,6 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details: * + * Copyright (C) 2010 - 2012 Red Hat, Inc. * Copyright (C) 2011 - 2012 Google, Inc. * Copyright (C) 2012 Aleksander Morgado <aleksander@gnu.org> */ @@ -89,4 +90,10 @@ gchar *mm_get_string_unquoted_from_match_info (GMatchInfo *match_info, const gchar *mm_sms_delivery_state_get_string_extended (guint delivery_state); +gint mm_utils_hex2byte (const gchar *hex); +gchar *mm_utils_hexstr2bin (const gchar *hex, gsize *out_len); +gchar *mm_utils_bin2hexstr (const guint8 *bin, gsize len); + +gboolean mm_utils_check_for_single_value (guint32 value); + #endif /* MM_COMMON_HELPERS_H */ |