libosmovty
0.9.3
Osmocom VTY library
|
00001 /* minimalistic telnet/network interface it might turn into a wire interface */ 00002 /* (C) 2009 by Holger Hans Peter Freyther <zecke@selfish.org> 00003 * All Rights Reserved 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License along 00016 * with this program; if not, write to the Free Software Foundation, Inc., 00017 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00018 * 00019 */ 00020 00021 #pragma once 00022 00023 #include <osmocom/core/logging.h> 00024 #include <osmocom/core/select.h> 00025 00026 #include <osmocom/vty/vty.h> 00027 00035 struct telnet_connection { 00037 struct llist_head entry; 00039 void *priv; 00041 struct osmo_fd fd; 00043 struct vty *vty; 00045 struct log_target *dbg; 00046 }; 00047 00048 int telnet_init(void *tall_ctx, void *priv, int port); 00049 int telnet_init_dynif(void *tall_ctx, void *priv, const char *ip, int port); 00050 00051 void telnet_exit(void); 00052