summaryrefslogtreecommitdiffstats
path: root/src/smsutil.h
diff options
context:
space:
mode:
authorAndrzej Zaborowski <andrew.zaborowski@intel.com>2009-08-05 09:08:40 +0200
committerDenis Kenzior <denkenz@gmail.com>2009-08-05 13:19:54 -0500
commitad6b8adebbcb8a574dbbc381edbd0df759f625a9 (patch)
treeeb2f9afff77bc4266588be543164c21e1d01da55 /src/smsutil.h
parent4c3ae72b367ed827df7d746fd34493e4addea151 (diff)
downloadofono-ad6b8adebbcb8a574dbbc381edbd0df759f625a9.tar.bz2
Expose address encode/decode utilities
These can be used elsewhere, in particular for decoding the enhanced message waiting notification ieis
Diffstat (limited to 'src/smsutil.h')
-rw-r--r--src/smsutil.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/smsutil.h b/src/smsutil.h
index 4a392665..95d0c78e 100644
--- a/src/smsutil.h
+++ b/src/smsutil.h
@@ -409,6 +409,13 @@ gboolean sms_decode(const unsigned char *pdu, int len, gboolean outgoing,
gboolean sms_encode(const struct sms *in, int *len, int *tpdu_len,
unsigned char *pdu);
+gboolean sms_decode_address_field(const unsigned char *pdu, int len,
+ int *offset, gboolean sc,
+ struct sms_address *out);
+
+gboolean sms_encode_address_field(const struct sms_address *in, gboolean sc,
+ unsigned char *pdu, int *offset);
+
int sms_udl_in_bytes(guint8 ud_len, guint8 dcs);
time_t sms_scts_to_time(const struct sms_scts *scts, struct tm *remote);