diff options
author | Andreas.Eversberg <jolly@eversberg.eu> | 2010-11-14 11:52:57 +0000 |
---|---|---|
committer | Andreas.Eversberg <jolly@eversberg.eu> | 2010-11-14 11:52:57 +0000 |
commit | f8903f06d19f67d7dde85004e5e306cef7d199b6 (patch) | |
tree | 3968e5c5a68b211960b3d432022d14c232228872 /src/host/layer23/src/mobile/vty_interface.c | |
parent | 2d8b427ef862b04dbf87ded883a4ee656ec38c34 (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/vty_interface.c')
-rw-r--r-- | src/host/layer23/src/mobile/vty_interface.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/host/layer23/src/mobile/vty_interface.c b/src/host/layer23/src/mobile/vty_interface.c index 8a13a5dc..bb998a1e 100644 --- a/src/host/layer23/src/mobile/vty_interface.c +++ b/src/host/layer23/src/mobile/vty_interface.c @@ -36,13 +36,10 @@ #include <osmocom/bb/mobile/mncc.h> #include <osmocom/bb/mobile/transaction.h> #include <osmocom/bb/mobile/vty.h> +#include <osmocom/bb/mobile/app_mobile.h> #include <osmocom/vty/telnet_interface.h> void *l23_ctx; -extern int l23_app_init(struct osmocom_ms *ms); -extern int (*l23_app_exit) (struct osmocom_ms *ms, int force); -extern struct osmocom_ms *mobile_new(char *name); -extern int mobile_delete(struct osmocom_ms *ms, int force); int mncc_call(struct osmocom_ms *ms, char *number); int mncc_hangup(struct osmocom_ms *ms); @@ -2078,7 +2075,7 @@ DEFUN(cfg_no_shutdown, cfg_ms_no_shutdown_cmd, "no shutdown", } } - rc = l23_app_init(ms); + rc = mobile_init(ms); if (rc < 0) { vty_out(vty, "Connection to layer 1 failed!%s", VTY_NEWLINE); @@ -2094,7 +2091,7 @@ DEFUN(cfg_shutdown, cfg_ms_shutdown_cmd, "shutdown", struct osmocom_ms *ms = vty->index; if (ms->shutdown == 0) - l23_app_exit(ms, 0); + mobile_exit(ms, 0); return CMD_SUCCESS; } @@ -2105,7 +2102,7 @@ DEFUN(cfg_shutdown_force, cfg_ms_shutdown_force_cmd, "shutdown force", struct osmocom_ms *ms = vty->index; if (ms->shutdown <= 1) - l23_app_exit(ms, 1); + mobile_exit(ms, 1); return CMD_SUCCESS; } |