summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom/bb/common
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2023-01-13 16:32:06 +0100
committerpespin <pespin@sysmocom.de>2023-01-17 18:16:34 +0000
commit8f59b1a0b94fe591ed4f3163d32127e93ccc10b7 (patch)
treeb6114ecf7593256e893755fd1812d5c53559a829 /src/host/layer23/include/osmocom/bb/common
parent3b8d5bb26afa1418ad5e56ba41f438f7cb3f8526 (diff)
layer23: Move layer2-socket VTY command to common/
This allows configuring layer2-socket for other apps than mobile, like the "modem" one. Change-Id: If7419f8fc54a54eed68a076968d93dba5ac977b7
Diffstat (limited to 'src/host/layer23/include/osmocom/bb/common')
-rw-r--r--src/host/layer23/include/osmocom/bb/common/l1l2_interface.h2
-rw-r--r--src/host/layer23/include/osmocom/bb/common/settings.h2
-rw-r--r--src/host/layer23/include/osmocom/bb/common/vty.h3
3 files changed, 7 insertions, 0 deletions
diff --git a/src/host/layer23/include/osmocom/bb/common/l1l2_interface.h b/src/host/layer23/include/osmocom/bb/common/l1l2_interface.h
index 4f469147..9cb993c8 100644
--- a/src/host/layer23/include/osmocom/bb/common/l1l2_interface.h
+++ b/src/host/layer23/include/osmocom/bb/common/l1l2_interface.h
@@ -3,6 +3,8 @@
#include <osmocom/core/msgb.h>
+#define L2_DEFAULT_SOCKET_PATH "/tmp/osmocom_l2"
+
int layer2_open(struct osmocom_ms *ms, const char *socket_path);
int layer2_close(struct osmocom_ms *ms);
int osmo_send_l1(struct osmocom_ms *ms, struct msgb *msg);
diff --git a/src/host/layer23/include/osmocom/bb/common/settings.h b/src/host/layer23/include/osmocom/bb/common/settings.h
index c9a36228..8ebf0493 100644
--- a/src/host/layer23/include/osmocom/bb/common/settings.h
+++ b/src/host/layer23/include/osmocom/bb/common/settings.h
@@ -180,5 +180,7 @@ int gsm_settings_exit(struct osmocom_ms *ms);
char *gsm_check_imei(const char *imei, const char *sv);
int gsm_random_imei(struct gsm_settings *set);
+extern char *layer2_socket_path;
+
#endif /* _settings_h */
diff --git a/src/host/layer23/include/osmocom/bb/common/vty.h b/src/host/layer23/include/osmocom/bb/common/vty.h
index f3452603..259725eb 100644
--- a/src/host/layer23/include/osmocom/bb/common/vty.h
+++ b/src/host/layer23/include/osmocom/bb/common/vty.h
@@ -20,6 +20,9 @@ void l23_ms_dump(struct osmocom_ms *ms, struct vty *vty);
void l23_vty_config_write_ms_node(struct vty *vty, const struct osmocom_ms *ms, const char *prefix);
void l23_vty_config_write_ms_node_contents(struct vty *vty, const struct osmocom_ms *ms, const char *prefix);
void l23_vty_config_write_ms_node_contents_final(struct vty *vty, const struct osmocom_ms *ms, const char *prefix);
+
+extern bool l23_vty_reading;
+
extern struct llist_head ms_list;
extern struct cmd_element l23_show_ms_cmd;