From ff67ee8a2ece64ece0c6c2e98ba48c98468d8dc2 Mon Sep 17 00:00:00 2001 From: Andrzej Zaborowski Date: Sun, 16 May 2010 16:08:17 +0200 Subject: smsutil: Expose SMS timestamp encoding utility The function can be re-used in stkutil.c, similarly to sms_decode_scts. --- src/smsutil.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/smsutil.h') 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); -- cgit v1.2.3