aboutsummaryrefslogtreecommitdiff
path: root/src/mm-charsets.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2012-01-17 13:13:09 -0600
committerDan Williams <dcbw@redhat.com>2012-01-17 13:13:09 -0600
commit80a41ed11b8ba40a54cecf044c2957a70a249b4d (patch)
tree0029dedbac4a4bfb75f869a97d48af6eb01f6733 /src/mm-charsets.h
parentad29e8dd885469887ee905fd7473ffdcfcb3d869 (diff)
gsm: add SMS PDU creation function
Only for basic SMS-SUBMIT PDUs at the moment, and doesn't support large SMSs yet.
Diffstat (limited to 'src/mm-charsets.h')
-rw-r--r--src/mm-charsets.h5
1 files changed, 5 insertions, 0 deletions
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 */