diff options
author | Andrzej Zaborowski <andrew.zaborowski@intel.com> | 2010-05-16 16:08:17 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-05-25 16:52:54 -0500 |
commit | ff67ee8a2ece64ece0c6c2e98ba48c98468d8dc2 (patch) | |
tree | a9e9acf8b05e044ac166de4a97406bf3760e2495 /src/smsutil.h | |
parent | a20d4e8cae59a391df5b4903dc24a3d02edf0dbf (diff) | |
download | ofono-ff67ee8a2ece64ece0c6c2e98ba48c98468d8dc2.tar.bz2 |
smsutil: Expose SMS timestamp encoding utility
The function can be re-used in stkutil.c, similarly to sms_decode_scts.
Diffstat (limited to 'src/smsutil.h')
-rw-r--r-- | src/smsutil.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/smsutil.h b/src/smsutil.h index 469a49e9..a060c1bc 100644 --- a/src/smsutil.h +++ b/src/smsutil.h @@ -427,6 +427,9 @@ guint8 sms_decode_semi_octet(guint8 in); gboolean sms_decode_scts(const unsigned char *pdu, int len, int *offset, struct sms_scts *out); +gboolean sms_encode_scts(const struct sms_scts *in, 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); |