diff options
author | Andrzej Zaborowski <andrew.zaborowski@intel.com> | 2009-08-05 09:08:40 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-08-05 13:19:54 -0500 |
commit | ad6b8adebbcb8a574dbbc381edbd0df759f625a9 (patch) | |
tree | eb2f9afff77bc4266588be543164c21e1d01da55 /src/smsutil.h | |
parent | 4c3ae72b367ed827df7d746fd34493e4addea151 (diff) | |
download | ofono-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.h | 7 |
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); |