summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom/bb/mobile/app_mobile.h
diff options
context:
space:
mode:
authorAndreas.Eversberg2010-11-14 12:52:57 +0100
committerAndreas.Eversberg2010-11-14 12:52:57 +0100
commitf8903f06d19f67d7dde85004e5e306cef7d199b6 (patch)
tree3968e5c5a68b211960b3d432022d14c232228872 /src/host/layer23/include/osmocom/bb/mobile/app_mobile.h
parent[layer23] Prevent layer23 apps from abort, if socket to layer1 fails (diff)
downloadosmocom-f8903f06d19f67d7dde85004e5e306cef7d199b6.tar.gz
osmocom-f8903f06d19f67d7dde85004e5e306cef7d199b6.tar.xz
osmocom-f8903f06d19f67d7dde85004e5e306cef7d199b6.zip
[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/mobile/app_mobile.h')
-rw-r--r--src/host/layer23/include/osmocom/bb/mobile/app_mobile.h15
1 files changed, 15 insertions, 0 deletions
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 0000000..138fbe0
--- /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
+