summaryrefslogtreecommitdiffstats
path: root/Src/osmolib/src/shared/libosmocore/include/osmocom/vty/telnet_interface.h
diff options
context:
space:
mode:
authorTom2012-01-11 17:00:30 +0100
committerTom2012-01-11 17:00:30 +0100
commit9fcc469afa01fc9ea42e4cbb96c5b195c5bcd371 (patch)
tree89d4015f6a34119069665d74a67d871fcd124509 /Src/osmolib/src/shared/libosmocore/include/osmocom/vty/telnet_interface.h
parentrefresh (diff)
downloadimsi-catcher-detection-9fcc469afa01fc9ea42e4cbb96c5b195c5bcd371.tar.gz
imsi-catcher-detection-9fcc469afa01fc9ea42e4cbb96c5b195c5bcd371.tar.xz
imsi-catcher-detection-9fcc469afa01fc9ea42e4cbb96c5b195c5bcd371.zip
all reupped
Diffstat (limited to 'Src/osmolib/src/shared/libosmocore/include/osmocom/vty/telnet_interface.h')
-rw-r--r--Src/osmolib/src/shared/libosmocore/include/osmocom/vty/telnet_interface.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/Src/osmolib/src/shared/libosmocore/include/osmocom/vty/telnet_interface.h b/Src/osmolib/src/shared/libosmocore/include/osmocom/vty/telnet_interface.h
new file mode 100644
index 0000000..9a7c9e5
--- /dev/null
+++ b/Src/osmolib/src/shared/libosmocore/include/osmocom/vty/telnet_interface.h
@@ -0,0 +1,53 @@
+/* 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 <osmocom/core/logging.h>
+#include <osmocom/core/select.h>
+
+#include <osmocom/vty/vty.h>
+
+/*! \defgroup telnet_interface Telnet Interface
+ * @{
+ */
+
+/*! \file telnet_interface.h */
+
+/*! \brief A telnet connection */
+struct telnet_connection {
+ /*! \brief linked list header for internal management */
+ struct llist_head entry;
+ /*! \brief private data pointer passed through */
+ void *priv;
+ /*! \brief filedsecriptor (socket ) */
+ struct osmo_fd fd;
+ /*! \brief VTY instance associated with telnet connection */
+ struct vty *vty;
+ /*! \brief logging target associated with this telnet connection */
+ struct log_target *dbg;
+};
+
+int telnet_init(void *tall_ctx, void *priv, int port);
+
+/*! }@ */
+
+#endif /* TELNET_INTERFACE_H */