aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-12-22 23:43:29 +0100
committerHarald Welte <laforge@gnumonks.org>2010-12-26 10:01:40 +0100
commitc5404a3bec345c2feff25a70ca078cc4e2d83cd0 (patch)
treeecc942c4adf7dcff6186e672d993639b91f150e5
parentc407ba5ed27afefb238b8211067defa72746ac50 (diff)
MNCC: rename mncc_upq_enqueue() to cc_tx_to_mncc()
The new function name clearly indicates: The Call Control (TS 04.08, msc-side in OpenBSC) wants to transmit something to the MNCC interface.
-rw-r--r--openbsc/include/openbsc/gsm_data.h2
-rw-r--r--openbsc/src/gsm_04_08.c2
-rw-r--r--openbsc/src/rtp_proxy.c2
-rw-r--r--openbsc/src/trau_mux.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h
index 4c87f8354..66ef46c50 100644
--- a/openbsc/include/openbsc/gsm_data.h
+++ b/openbsc/include/openbsc/gsm_data.h
@@ -849,7 +849,7 @@ struct gsm_subscriber_connection *subscr_con_allocate(struct gsm_lchan *lchan);
void subscr_con_free(struct gsm_subscriber_connection *conn);
/* FIXME: this should go some other header file, but there is no good one */
-static inline void mncc_upq_enqueue(struct gsm_network *net, struct msgb *msg)
+static inline void cc_tx_to_mncc(struct gsm_network *net, struct msgb *msg)
{
msgb_enqueue(&net->upqueue, msg);
}
diff --git a/openbsc/src/gsm_04_08.c b/openbsc/src/gsm_04_08.c
index 92da6ccef..800141920 100644
--- a/openbsc/src/gsm_04_08.c
+++ b/openbsc/src/gsm_04_08.c
@@ -1334,7 +1334,7 @@ static int mncc_recvmsg(struct gsm_network *net, struct gsm_trans *trans,
if (!msg)
return -ENOMEM;
memcpy(msg->data, mncc, sizeof(struct gsm_mncc));
- mncc_upq_enqueue(net, msg);
+ cc_tx_to_mncc(net, msg);
return 0;
}
diff --git a/openbsc/src/rtp_proxy.c b/openbsc/src/rtp_proxy.c
index a2a9107bd..1f38b376a 100644
--- a/openbsc/src/rtp_proxy.c
+++ b/openbsc/src/rtp_proxy.c
@@ -443,7 +443,7 @@ static int rtp_socket_read(struct rtp_socket *rs, struct rtp_sub_socket *rss)
if (rc < 0)
goto out_free;
msgb_free(msg);
- mncc_upq_enqueue(rs->receive.net, new_msg);
+ cc_tx_to_mncc(rs->receive.net, new_msg);
break;
case RTP_NONE: /* if socket exists, but disabled by app */
diff --git a/openbsc/src/trau_mux.c b/openbsc/src/trau_mux.c
index 67af541a6..5c934066d 100644
--- a/openbsc/src/trau_mux.c
+++ b/openbsc/src/trau_mux.c
@@ -214,7 +214,7 @@ int trau_mux_input(struct gsm_e1_subslot *src_e1_ss,
}
frame->msg_type = GSM_TCHF_FRAME;
frame->callref = ue->callref;
- mncc_upq_enqueue(ue->net, msg);
+ cc_tx_to_mncc(ue->net, msg);
return 0;
}