diff options
author | Harald Welte <laforge@osmocom.org> | 2020-12-18 18:48:58 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-12-19 10:42:44 +0100 |
commit | e4ebbcf541adabd054770cabd4ba455f9426a1d7 (patch) | |
tree | 4b1dacb1536fcaedd2e88abf1fa4641069e6e174 | |
parent | 426f5f038ca9366f982bd2f6c95d7fee85b12498 (diff) |
vty: export vty_e1d + move e1d_vty_node to header file
This will be required by osmo-e1gen
Change-Id: I5be0278bc07aadd154fc54a74b08fc7e3b5d6483
-rw-r--r-- | src/e1d.h | 6 | ||||
-rw-r--r-- | src/vty.c | 6 |
2 files changed, 7 insertions, 5 deletions
@@ -27,6 +27,12 @@ #include <osmocom/core/isdnhdlc.h> #include <osmocom/core/linuxlist.h> #include <osmocom/core/rate_ctr.h> +#include <osmocom/vty/command.h> + +enum e1d_vty_node { + E1D_NODE = _LAST_OSMOVTY_NODE + 1, + LINE_NODE +}; enum e1d_line_ctr { LINE_CTR_LOS, @@ -39,11 +39,7 @@ #include <osmocom/e1d/proto.h> #include "e1d.h" -static struct e1_daemon *vty_e1d; - -enum e1d_vty_node { - E1D_NODE = _LAST_OSMOVTY_NODE + 1, -}; +struct e1_daemon *vty_e1d; static struct cmd_node e1d_node = { (enum node_type) E1D_NODE, |