summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom/bb/common
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2023-01-12 13:54:14 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2023-01-13 12:16:47 +0100
commit73abbc235e136c094249927642f0c7cc94209808 (patch)
tree091fc78c6f871fbeeb3c42a4e876879ad14bfb54 /src/host/layer23/include/osmocom/bb/common
parent2b9191f08bb981bec553d3ee9ba0a98a470c2254 (diff)
layer23: Add initial VTY support for l23_apps
Initial VTY "boilerplate" code for modem app is already added in this commit as a showcase what's needed by an app to have the VTY config file read and VTY interface initialized. Change-Id: Ife3a3373e5a9c0c8e5959ac714e140e72d6c363a
Diffstat (limited to 'src/host/layer23/include/osmocom/bb/common')
-rw-r--r--src/host/layer23/include/osmocom/bb/common/l23_app.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/host/layer23/include/osmocom/bb/common/l23_app.h b/src/host/layer23/include/osmocom/bb/common/l23_app.h
index cb68d433..633c7646 100644
--- a/src/host/layer23/include/osmocom/bb/common/l23_app.h
+++ b/src/host/layer23/include/osmocom/bb/common/l23_app.h
@@ -2,6 +2,7 @@
#define _L23_APP_H
struct option;
+struct vty_app_info;
/* Options supported by the l23 app */
enum {
@@ -10,7 +11,6 @@ enum {
L23_OPT_TAP = 4,
L23_OPT_VTY = 8,
L23_OPT_DBG = 16,
- L23_OPT_VTYIP = 32,
};
extern void *l23_ctx;
@@ -29,12 +29,14 @@ extern int (*l23_app_exit)(struct osmocom_ms *ms);
struct l23_app_info {
const char *copyright;
const char *contribution;
+ struct vty_app_info *vty_info; /* L23_OPT_VTY */
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);
+ int (*vty_init)(void);
};
extern struct l23_app_info *l23_app_info();