aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-12-22 19:02:27 +0100
committerHarald Welte <laforge@gnumonks.org>2010-12-22 19:03:40 +0100
commit434bb3f39f86cd40b2b737ce5ecc220fa193d5dd (patch)
tree13fb60be68f9ea522f95723b052c6c276b68206e /openbsc/include
parent7ce5e259c9def834c6fdd6aa17a8b1a145f8e49a (diff)
MNCC: introduce mncc_upq_enqueue() wrapper around msgb_enqueue()
This wrapper will allow us to add queue related code at one single location in the code as opposed to three locations.
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/openbsc/gsm_data.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h
index b73c4d1ee..c27db85c1 100644
--- a/openbsc/include/openbsc/gsm_data.h
+++ b/openbsc/include/openbsc/gsm_data.h
@@ -840,4 +840,10 @@ 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 mncc_upq_enqueue(struct gsm_network *net, struct msgb *msg)
+{
+ msgb_enqueue(&net->upqueue, msg);
+}
+
#endif