diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/Makefile.am | 3 | ||||
| -rw-r--r-- | include/osmocom/ctrl/control_vty.h | 9 | ||||
| -rw-r--r-- | include/osmocom/vty/command.h | 2 | 
3 files changed, 12 insertions, 2 deletions
diff --git a/include/Makefile.am b/include/Makefile.am index a965fb92..ac22ee64 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -117,7 +117,8 @@ nobase_include_HEADERS += \                            osmocom/vty/telnet_interface.h \                            osmocom/vty/vector.h \                            osmocom/vty/vty.h \ -                          osmocom/vty/ports.h +                          osmocom/vty/ports.h \ +                          osmocom/ctrl/control_vty.h  endif  noinst_HEADERS = \ diff --git a/include/osmocom/ctrl/control_vty.h b/include/osmocom/ctrl/control_vty.h new file mode 100644 index 00000000..d0ef69f4 --- /dev/null +++ b/include/osmocom/ctrl/control_vty.h @@ -0,0 +1,9 @@ +#pragma once + +/* Add the 'ctrl' section to VTY, containing the 'bind' command. */ +int ctrl_vty_init(void *ctx); + +/* Obtain the IP address configured by the 'ctrl'/'bind A.B.C.D' VTY command. + * This should be fed to ctrl_interface_setup() once the configuration has been + * read. */ +const char *ctrl_vty_get_bind_addr(void); diff --git a/include/osmocom/vty/command.h b/include/osmocom/vty/command.h index 2078e1bb..9a025752 100644 --- a/include/osmocom/vty/command.h +++ b/include/osmocom/vty/command.h @@ -83,6 +83,7 @@ enum node_type {  	L_IPA_NODE,		/*!< \brief IPA proxying commands in libosmo-abis. */  	L_NS_NODE,		/*!< \brief NS node in libosmo-gb. */  	L_BSSGP_NODE,		/*!< \brief BSSGP node in libosmo-gb. */ +	L_CTRL_NODE,		/*!< \brief Control interface node. */  	/*  	 * When adding new nodes to the libosmocore project, these nodes can be @@ -91,7 +92,6 @@ enum node_type {  	RESERVED1_NODE,		/*!< \brief Reserved for later extensions */  	RESERVED2_NODE,		/*!< \brief Reserved for later extensions */  	RESERVED3_NODE,		/*!< \brief Reserved for later extensions */ -	RESERVED4_NODE,		/*!< \brief Reserved for later extensions */  	_LAST_OSMOVTY_NODE  };  | 
