From ea057d9350014a871056e56f66208ffddd306659 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 23 Dec 2010 01:26:29 +0100 Subject: mncc_sock: Add new 'mncc handler' function This adds mncc_sock_from_cc() as a handler function for CC messages to be passed to the MNCC interface. If there is no MNCC socket registered, we immediately release any CC related messages. Together with flushing all established CC transaction at MNCC socket close time, this ensures that all resources are released and no new resources can be established until the MNCC applicaiton has re-attached. --- openbsc/include/openbsc/mncc.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'openbsc/include/openbsc/mncc.h') diff --git a/openbsc/include/openbsc/mncc.h b/openbsc/include/openbsc/mncc.h index 75551c522..2fc8e0be8 100644 --- a/openbsc/include/openbsc/mncc.h +++ b/openbsc/include/openbsc/mncc.h @@ -156,8 +156,13 @@ struct gsm_data_frame { }; char *get_mncc_name(int value); -int int_mncc_recv(struct gsm_network *net, struct msgb *msg); void mncc_set_cause(struct gsm_mncc *data, int loc, int val); void cc_tx_to_mncc(struct gsm_network *net, struct msgb *msg); +/* input from CC code into mncc_builtin */ +int int_mncc_recv(struct gsm_network *net, struct msgb *msg); + +/* input from CC code into mncc_sock */ +void mncc_sock_from_cc(struct gsm_network *net, struct msgb *msg); + #endif -- cgit v1.2.3