osmo-msc/openbsc/src/vty
Harald Welte dcccb1818d VTY: decouple telnet_interface from 'struct gsmnet'
We want the VTY and telnet code to be independent from the BSC
application(s).  As a side note, we also like to eliminate static
global variables for 'struct gsm_network' all over the code.

As such, telnet_init() is now passed along a "private" pointer,
which getst stored in telnet_connection.priv.  This telnet_connection
is then stored in vty->priv, which in turn gets dereferenced if
anyone needs a reference to 'struct gsm_network' from the BSC vty
code.

Also:
 * vty_init() now calls cmd_init()
 * the ugliness that telnet_init() calls back into the application by means of
   bsc_vty_init() function has been removed.
 * telnet_init() now returns any errors, so the main program can exit
   e.g. if the port is already in use.
2010-05-16 20:52:23 +02:00
..
buffer.c [vty] Allow to create a buffer in a given context. 2010-04-30 13:29:34 +08:00
command.c VTY: pass program name, version and copyright to vty_init() 2010-05-16 19:20:24 +02:00
utils.c Add missing file vty/utils.c 2010-05-13 11:53:52 +02:00
vector.c split 'libosmocore' from openbsc codebase 2010-02-20 16:27:23 +01:00
vty.c VTY: decouple telnet_interface from 'struct gsmnet' 2010-05-16 20:52:23 +02:00