aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-06-12 06:20:34 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2018-06-12 23:07:26 +0700
commitf5b9e6cdf687351bda631ee98c368e4f318188d8 (patch)
treee701932dd0b83c3733f47a32d2bffc658c5bf9e4 /src
parent5b860faf4e0fcd9aa0bc9b9480a0c32cdf917cd8 (diff)
libmsc/gsm_04_08.c: expose gsm48_tx_simple()
This function could be also used by other parts of code, e.g. by gsm_04_11.c or by gsm_09_11.c, during initialization of a new transaction. No need to hide it. Change-Id: I9a9d17fca4901163dae10d76455aa4cf54497156
Diffstat (limited to 'src')
-rw-r--r--src/libmsc/gsm_04_08.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/libmsc/gsm_04_08.c b/src/libmsc/gsm_04_08.c
index beec6fa05..04fa4b003 100644
--- a/src/libmsc/gsm_04_08.c
+++ b/src/libmsc/gsm_04_08.c
@@ -79,8 +79,6 @@ void *tall_authciphop_ctx;
static int gsm0408_loc_upd_acc(struct gsm_subscriber_connection *conn,
uint32_t send_tmsi);
-static int gsm48_tx_simple(struct gsm_subscriber_connection *conn,
- uint8_t pdisc, uint8_t msg_type);
static uint32_t new_callref = 0x80000001;
@@ -1345,8 +1343,14 @@ static int gsm48_cc_tx_status(struct gsm_trans *trans, void *arg)
return gsm48_conn_sendmsg(msg, trans->conn, trans);
}
-static int gsm48_tx_simple(struct gsm_subscriber_connection *conn,
- uint8_t pdisc, uint8_t msg_type)
+/*! Send a simple GSM 04.08 message without any payload
+ * \param conn Active subscriber connection
+ * \param[in] pdisc Protocol discriminator
+ * \param[in] msg_type Message type
+ * \return result of \ref gsm48_conn_sendmsg
+ */
+int gsm48_tx_simple(struct gsm_subscriber_connection *conn,
+ uint8_t pdisc, uint8_t msg_type)
{
struct msgb *msg = gsm48_msgb_alloc_name("GSM 04.08 TX SIMPLE");
struct gsm48_hdr *gh = (struct gsm48_hdr *) msgb_put(msg, sizeof(*gh));