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/include/osmocom/bb | |
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/include/osmocom/bb')
-rw-r--r-- | src/host/layer23/include/osmocom/bb/common/osmocom_data.h | 2 | ||||
-rw-r--r-- | src/host/layer23/include/osmocom/bb/mobile/app_mobile.h | 15 | ||||
-rw-r--r-- | src/host/layer23/include/osmocom/bb/mobile/mncc.h | 3 |
3 files changed, 19 insertions, 1 deletions
diff --git a/src/host/layer23/include/osmocom/bb/common/osmocom_data.h b/src/host/layer23/include/osmocom/bb/common/osmocom_data.h index da35cdb0..749c144c 100644 --- a/src/host/layer23/include/osmocom/bb/common/osmocom_data.h +++ b/src/host/layer23/include/osmocom/bb/common/osmocom_data.h @@ -53,7 +53,7 @@ struct osmocom_ms { struct write_queue l2_wq, sap_wq; uint16_t test_arfcn; - uint8_t delete, shutdown, started; + uint8_t deleting, shutdown, started; struct gsm_support support; struct gsm_settings settings; struct gsm_subscriber subscr; diff --git a/src/host/layer23/include/osmocom/bb/mobile/app_mobile.h b/src/host/layer23/include/osmocom/bb/mobile/app_mobile.h new file mode 100644 index 00000000..138fbe04 --- /dev/null +++ b/src/host/layer23/include/osmocom/bb/mobile/app_mobile.h @@ -0,0 +1,15 @@ +#ifndef APP_MOBILE_H +#define APP_MOBILE_H + +int l23_app_init(int (*mncc_recv)(struct osmocom_ms *ms, int, void *), + const char *config_file, uint16_t vty_port); +int l23_app_exit(void); +int l23_app_work(int *quit); +int mobile_delete(struct osmocom_ms *ms, int force); +struct osmocom_ms *mobile_new(char *name); +int mobile_init(struct osmocom_ms *ms); +int mobile_exit(struct osmocom_ms *ms, int force); +int mobile_work(struct osmocom_ms *ms); + +#endif + diff --git a/src/host/layer23/include/osmocom/bb/mobile/mncc.h b/src/host/layer23/include/osmocom/bb/mobile/mncc.h index 1f8e9099..151f0b4b 100644 --- a/src/host/layer23/include/osmocom/bb/mobile/mncc.h +++ b/src/host/layer23/include/osmocom/bb/mobile/mncc.h @@ -109,6 +109,9 @@ struct gsm_call { #define GSM_TCHF_FRAME 0x0300 #define GSM_TCHF_FRAME_EFR 0x0301 +#define MS_NEW 0x0400 +#define MS_DELETE 0x0401 + #define GSM_MAX_FACILITY 128 #define GSM_MAX_SSVERSION 128 #define GSM_MAX_USERUSER 128 |