2009-01-02 22:04:43 +00:00
|
|
|
/* minimalistic telnet/network interface it might turn into a wire interface */
|
|
|
|
/* (C) 2009 by Holger Hans Peter Freyther <zecke@selfish.org>
|
|
|
|
* All Rights Reserved
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef TELNET_INTERFACE_H
|
|
|
|
#define TELNET_INTERFACE_H
|
|
|
|
|
|
|
|
#include "gsm_data.h"
|
2009-12-22 21:32:51 +00:00
|
|
|
#include "debug.h"
|
split 'libosmocore' from openbsc codebase
This library is intended to collect all generic/common funcitionality
of all Osmocom.org projects, including OpenBSC but also OsmocomBB
The library currently includes the following modules:
bitvec, comp128, gsm_utils, msgb, select, signal, statistics, talloc, timer,
tlv_parse, linuxlist
msgb allocation error debugging had to be temporarily disabled as it depends on
'debug.c' functionality which at the moment remains in OpenBSC
2010-02-20 15:24:02 +00:00
|
|
|
#include <osmocore/select.h>
|
2009-01-02 22:04:43 +00:00
|
|
|
|
2009-03-10 12:21:45 +00:00
|
|
|
#include <vty/vty.h>
|
|
|
|
|
2009-01-02 22:04:43 +00:00
|
|
|
struct telnet_connection {
|
|
|
|
struct llist_head entry;
|
|
|
|
struct gsm_network *network;
|
|
|
|
struct bsc_fd fd;
|
2009-03-10 12:21:45 +00:00
|
|
|
struct vty *vty;
|
2009-12-22 21:32:51 +00:00
|
|
|
struct debug_target *dbg;
|
2009-01-02 22:04:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
void telnet_init(struct gsm_network *network, int port);
|
|
|
|
|
2009-05-23 06:14:44 +00:00
|
|
|
int bsc_vty_init(struct gsm_network *net);
|
|
|
|
|
2009-01-02 22:04:43 +00:00
|
|
|
#endif
|