From 80a41ed11b8ba40a54cecf044c2957a70a249b4d Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 17 Jan 2012 13:13:09 -0600 Subject: gsm: add SMS PDU creation function Only for basic SMS-SUBMIT PDUs at the moment, and doesn't support large SMSs yet. --- src/mm-charsets.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mm-charsets.h') diff --git a/src/mm-charsets.h b/src/mm-charsets.h index d620b157..7eb35ab8 100644 --- a/src/mm-charsets.h +++ b/src/mm-charsets.h @@ -57,6 +57,11 @@ 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); +/* Returns the size in bytes required to hold the UTF-8 string in the given charset */ +guint mm_charset_get_encoded_len (const char *utf8, + MMModemCharset charset, + guint *out_unsupported); + guint8 *gsm_unpack (const guint8 *gsm, guint32 num_septets, guint8 start_offset, /* in bits */ -- cgit v1.2.3-70-g09d2