summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/src/mobile/gsm48_mm.c
diff options
context:
space:
mode:
authorAndreas.Eversberg <jolly@eversberg.eu>2010-11-14 11:52:57 +0000
committerAndreas.Eversberg <jolly@eversberg.eu>2010-11-14 11:52:57 +0000
commitf8903f06d19f67d7dde85004e5e306cef7d199b6 (patch)
tree3968e5c5a68b211960b3d432022d14c232228872 /src/host/layer23/src/mobile/gsm48_mm.c
parent2d8b427ef862b04dbf87ded883a4ee656ec38c34 (diff)
[layer23] Cleanup of mobile application
All functions for handling mobile instances and mobile relevant parts are moved to mobile/app_mobile.c, the mobile/main.c and mobile/mncc.c become a simple out-of-the-box mobile application. (making calls) The mobile/main.c can be replaced easily by a different application now. this application may have it's own call control implementation (layer 4). Full configurations via VTY is still possible and required in this case.
Diffstat (limited to 'src/host/layer23/src/mobile/gsm48_mm.c')
-rw-r--r--src/host/layer23/src/mobile/gsm48_mm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/host/layer23/src/mobile/gsm48_mm.c b/src/host/layer23/src/mobile/gsm48_mm.c
index d4444cf2..1751230f 100644
--- a/src/host/layer23/src/mobile/gsm48_mm.c
+++ b/src/host/layer23/src/mobile/gsm48_mm.c
@@ -36,9 +36,9 @@
#include <osmocom/bb/common/networks.h>
#include <osmocom/bb/common/l1ctl.h>
#include <osmocom/bb/mobile/gsm48_cc.h>
+#include <osmocom/bb/mobile/app_mobile.h>
extern void *l23_ctx;
-extern int (*l23_app_exit) (struct osmocom_ms *ms, int force);
void mm_conn_free(struct gsm48_mm_conn *conn);
static int gsm48_rcv_rr(struct osmocom_ms *ms, struct msgb *msg);
@@ -1743,7 +1743,7 @@ static int gsm48_mm_imsi_detach_end(struct osmocom_ms *ms, struct msgb *msg)
/* wait for RR idle and then power off when IMSI is detached */
if (ms->shutdown) {
if (mm->state == GSM48_MM_ST_MM_IDLE) {
- l23_app_exit(ms, 1);
+ mobile_exit(ms, 1);
return 0;
}
/* power off when MM idle */
@@ -1818,7 +1818,7 @@ static int gsm48_mm_imsi_detach_release(struct osmocom_ms *ms, struct msgb *msg)
/* power off */
if (ms->shutdown) {
- l23_app_exit(ms, 1);
+ mobile_exit(ms, 1);
return 0;
}