diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-12-23 01:26:29 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-01-01 17:23:42 +0100 |
commit | ea057d9350014a871056e56f66208ffddd306659 (patch) | |
tree | db8210953f646772cd508709dc29ed8a8c87dc92 /openbsc/include | |
parent | 29b64e9708297d604b57b5a4779996fa5ca0b2f7 (diff) |
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.
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/mncc.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 |