aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-12-23 00:13:47 +0100
committerHarald Welte <laforge@gnumonks.org>2010-12-26 10:01:41 +0100
commit8a8e1c3ae8ccaa84862e53b64b744a2a4b5cd8ab (patch)
tree8a865d035c980ea8a9237681e1c903d89127c469 /openbsc
parentb9ec279cc8c5436e2976b4ae4b712c2df3e457a9 (diff)
MNCC: move cc_tx_to_mncc() from gsm_data.h into mncc.c
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/include/openbsc/gsm_data.h6
-rw-r--r--openbsc/include/openbsc/mncc.h1
-rw-r--r--openbsc/src/mncc.c5
3 files changed, 6 insertions, 6 deletions
diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h
index 66ef46c50..f9c87e757 100644
--- a/openbsc/include/openbsc/gsm_data.h
+++ b/openbsc/include/openbsc/gsm_data.h
@@ -848,10 +848,4 @@ int gsm_bts_model_register(struct gsm_bts_model *model);
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 cc_tx_to_mncc(struct gsm_network *net, struct msgb *msg)
-{
- msgb_enqueue(&net->upqueue, msg);
-}
-
#endif
diff --git a/openbsc/include/openbsc/mncc.h b/openbsc/include/openbsc/mncc.h
index a040f1bfd..35d925aea 100644
--- a/openbsc/include/openbsc/mncc.h
+++ b/openbsc/include/openbsc/mncc.h
@@ -158,5 +158,6 @@ struct gsm_data_frame {
char *get_mncc_name(int value);
int int_mncc_recv(struct gsm_network *net, int msg_type, void *arg);
void mncc_set_cause(struct gsm_mncc *data, int loc, int val);
+void cc_tx_to_mncc(struct gsm_network *net, struct msgb *msg);
#endif
diff --git a/openbsc/src/mncc.c b/openbsc/src/mncc.c
index 478a8a956..fed866e15 100644
--- a/openbsc/src/mncc.c
+++ b/openbsc/src/mncc.c
@@ -108,3 +108,8 @@ void mncc_set_cause(struct gsm_mncc *data, int loc, int val)
data->cause.location = loc;
data->cause.value = val;
}
+
+void cc_tx_to_mncc(struct gsm_network *net, struct msgb *msg)
+{
+ msgb_enqueue(&net->upqueue, msg);
+}