diff options
author | Dan Williams <dcbw@redhat.com> | 2010-09-04 00:06:36 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-09-04 00:06:36 -0500 |
commit | ee4166f66fe2516cd5a92181f5f0e5618a862ee3 (patch) | |
tree | 6e15432092887494270cd80134e32e619fcf7345 /src/mm-charsets.h | |
parent | 9e94dd5b6124d00cf10d6296c7c9aa80f8f68d80 (diff) |
gsm: add GSM 03.38 pack/unpack functions and testcases
Diffstat (limited to 'src/mm-charsets.h')
-rw-r--r-- | src/mm-charsets.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mm-charsets.h b/src/mm-charsets.h index ff39400e..661052da 100644 --- a/src/mm-charsets.h +++ b/src/mm-charsets.h @@ -52,5 +52,15 @@ guint8 *mm_charset_utf8_to_unpacked_gsm (const char *utf8, guint32 *out_len); guint8 *mm_charset_gsm_unpacked_to_utf8 (const guint8 *gsm, guint32 len); +guint8 *gsm_unpack (const guint8 *gsm, + guint32 gsm_len, + guint8 start_offset, /* in bits */ + guint32 *out_unpacked_len); + +guint8 *gsm_pack (const guint8 *src, + guint32 src_len, + guint8 start_offset, /* in bits */ + guint32 *out_packed_len); + #endif /* MM_CHARSETS_H */ |