diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-05-18 14:46:29 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-05-18 14:56:52 +0200 |
commit | 645aec823750a27ad7c672f02dfd52bc6bc4eecf (patch) | |
tree | 51fe0873598b148565bea44df1388491fe20a581 /include/osmocom/vty/vty.h | |
parent | ebb6c1fc4df89fac6bbd4c36c1a286b6b96fd49e (diff) |
vty: Introduce API vty_read_config_filep
This new API doesn't use host_config_set(), and allows passing a FILE*
from any source, not only a filesystem path.
Related: SYS#5369
Change-Id: I720ac04386261628c0798a1bfcaa91e2490a86c3
Diffstat (limited to 'include/osmocom/vty/vty.h')
-rw-r--r-- | include/osmocom/vty/vty.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/osmocom/vty/vty.h b/include/osmocom/vty/vty.h index d34433fa..3e6178f1 100644 --- a/include/osmocom/vty/vty.h +++ b/include/osmocom/vty/vty.h @@ -141,7 +141,7 @@ struct vty { #define TELNET_NAWS_SB_LEN 5 /*! sub-negotiation buffer */ unsigned char sb_buf[TELNET_NAWS_SB_LEN]; - /*! How many subnegotiation characters have we received? + /*! How many subnegotiation characters have we received? * * We just drop those that do not fit in the buffer. */ size_t sb_len; @@ -210,6 +210,7 @@ struct vty_app_info { /* Prototypes. */ void vty_init(struct vty_app_info *app_info); int vty_read_config_file(const char *file_name, void *priv); +int vty_read_config_filep(FILE *confp, void *priv); void vty_init_vtysh (void); void vty_reset (void); struct vty *vty_new (void); |