summaryrefslogtreecommitdiffstats
path: root/Src/osmocombb/src/host/layer23/include/osmocom/bb/common/l23_app.h
diff options
context:
space:
mode:
Diffstat (limited to 'Src/osmocombb/src/host/layer23/include/osmocom/bb/common/l23_app.h')
-rw-r--r--Src/osmocombb/src/host/layer23/include/osmocom/bb/common/l23_app.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/Src/osmocombb/src/host/layer23/include/osmocom/bb/common/l23_app.h b/Src/osmocombb/src/host/layer23/include/osmocom/bb/common/l23_app.h
new file mode 100644
index 0000000..e4c5d55
--- /dev/null
+++ b/Src/osmocombb/src/host/layer23/include/osmocom/bb/common/l23_app.h
@@ -0,0 +1,35 @@
+#ifndef _L23_APP_H
+#define _L23_APP_H
+
+struct option;
+
+/* Options supported by the l23 app */
+enum {
+ L23_OPT_SAP = 1,
+ L23_OPT_ARFCN = 2,
+ L23_OPT_TAP = 4,
+ L23_OPT_VTY = 8,
+ L23_OPT_DBG = 16,
+};
+
+/* initialization, called once when starting the app, before entering
+ * select loop */
+extern int l23_app_init(struct osmocom_ms *ms);
+extern int (*l23_app_work) (struct osmocom_ms *ms);
+extern int (*l23_app_exit) (struct osmocom_ms *ms);
+
+/* configuration options */
+struct l23_app_info {
+ const char *copyright;
+ const char *contribution;
+
+ char *getopt_string;
+ int (*cfg_supported)();
+ int (*cfg_print_help)();
+ int (*cfg_getopt_opt)(struct option **options);
+ int (*cfg_handle_opt)(int c,const char *optarg);
+};
+
+extern struct l23_app_info *l23_app_info();
+
+#endif /* _L23_APP_H */