aboutsummaryrefslogtreecommitdiffstats
path: root/src/gsm/gsm0411_utils.c
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2014-03-09 01:33:28 +0100
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2014-03-16 15:09:38 +0400
commita489ac2d816be3dc2fe6d8e4585e9e8211aaf4be (patch)
treec724aaeeceefd589c7074034e071336878cfc80e /src/gsm/gsm0411_utils.c
parentb9a9418b66d2d06e4023453c5a56dc8ea1e96677 (diff)
sms: Rename gsm340_gen_oa() to gsm340_gen_address_field().
According to 03.40 9.1.2.5 Address fields, this function generates different types of addresses and not only originating addresses.
Diffstat (limited to 'src/gsm/gsm0411_utils.c')
-rw-r--r--src/gsm/gsm0411_utils.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gsm/gsm0411_utils.c b/src/gsm/gsm0411_utils.c
index 197f2c3f..3d6d7521 100644
--- a/src/gsm/gsm0411_utils.c
+++ b/src/gsm/gsm0411_utils.c
@@ -285,7 +285,7 @@ enum sms_alphabet gsm338_get_sms_alphabet(uint8_t dcs)
}
/* generate a TPDU address field compliant with 03.40 sec. 9.1.2.5 */
-int gsm340_gen_oa(uint8_t *oa, unsigned int oa_len, uint8_t type,
+int gsm340_gen_address_field(uint8_t *oa, unsigned int oa_len, uint8_t type,
uint8_t plan, const char *number)
{
int len_in_bytes;
@@ -314,6 +314,13 @@ int gsm340_gen_oa(uint8_t *oa, unsigned int oa_len, uint8_t type,
return len_in_bytes;
}
+/* DEPRECATED: use gsm340_gen_address_field() instead */
+int gsm340_gen_oa(uint8_t *oa, unsigned int oa_len, uint8_t type,
+ uint8_t plan, const char *number)
+{
+ return gsm340_gen_address_field(oa, oa_len, type, plan, number);
+}
+
/* Prefix msg with a RP header */
int gsm411_push_rp_header(struct msgb *msg, uint8_t rp_msg_type,
uint8_t rp_msg_ref)