mirror of
https://github.com/UzixLS/picocom.git
synced 2025-07-19 07:21:18 +03:00
Added std headers and footers
This commit is contained in:
34
termint.h
34
termint.h
@ -1,3 +1,27 @@
|
||||
/* vi: set sw=4 ts=4:
|
||||
*
|
||||
* termint.h
|
||||
*
|
||||
* General purpose terminal handling library. Internal declarations.
|
||||
*
|
||||
* by David Leonard (https://github.com/dleonard0)
|
||||
*
|
||||
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
* USA
|
||||
*/
|
||||
|
||||
#ifndef TERMINT_H
|
||||
#define TERMINT_H
|
||||
|
||||
@ -30,3 +54,13 @@ struct term_ops {
|
||||
};
|
||||
|
||||
#endif /* of TERMINT_H */
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
/*
|
||||
* Local Variables:
|
||||
* mode:c
|
||||
* tab-width: 4
|
||||
* c-basic-offset: 4
|
||||
* End:
|
||||
*/
|
||||
|
34
tn2217.c
34
tn2217.c
@ -1,12 +1,30 @@
|
||||
/*
|
||||
* TELNET and COM-PORT remote terminal protocol.
|
||||
/* vi: set sw=4 ts=4:
|
||||
*
|
||||
* tn2217.c
|
||||
*
|
||||
* TELNET and COM-PORT (RFC2217) remote terminal protocol.
|
||||
*
|
||||
* Provides a network virtual terminal over a TELNET TCP connection.
|
||||
* Optionally supports the TELNET COM PORT (RFC2217) option which
|
||||
* provides control over baud rate, parity, data bits and modem
|
||||
* control lines at a com port server.
|
||||
*
|
||||
* - David Leonard, 2018. Public domain.
|
||||
* by David Leonard (https://github.com/dleonard0)
|
||||
*
|
||||
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
* USA
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
@ -1064,3 +1082,13 @@ const struct term_ops tn2217_ops = {
|
||||
.read = tn2217_read,
|
||||
.write = tn2217_write,
|
||||
};
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
/*
|
||||
* Local Variables:
|
||||
* mode:c
|
||||
* tab-width: 4
|
||||
* c-basic-offset: 4
|
||||
* End:
|
||||
*/
|
||||
|
34
tn2217.h
34
tn2217.h
@ -1,3 +1,27 @@
|
||||
/* vi: set sw=4 ts=4:
|
||||
*
|
||||
* tn2217.h
|
||||
*
|
||||
* TELNET and COM-PORT (RFC2217) remote terminal protocol.
|
||||
*
|
||||
* by David Leonard (https://github.com/dleonard0)
|
||||
*
|
||||
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
* USA
|
||||
*/
|
||||
|
||||
#ifndef TN2217_H
|
||||
#define TN2217_H
|
||||
|
||||
@ -12,3 +36,13 @@ struct term_ops;
|
||||
extern const struct term_ops tn2217_ops;
|
||||
|
||||
#endif /* of TN2217_H */
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
/*
|
||||
* Local Variables:
|
||||
* mode:c
|
||||
* tab-width: 4
|
||||
* c-basic-offset: 4
|
||||
* End:
|
||||
*/
|
||||
|
36
tncomport.h
36
tncomport.h
@ -1,8 +1,30 @@
|
||||
/* vi: set sw=4 ts=4:
|
||||
*
|
||||
* tncomport.h
|
||||
*
|
||||
* RFC2217 COM-PORT-OPTION constant definitions
|
||||
*
|
||||
* by David Leonard (https://github.com/dleonard0)
|
||||
*
|
||||
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
* USA
|
||||
*/
|
||||
|
||||
#ifndef TNCOMPORT_H
|
||||
#define TNCOMPORT_H
|
||||
|
||||
/* RFC2217 COM-PORT-OPTION constant definitions */
|
||||
|
||||
#define TELOPT_COMPORT 44
|
||||
|
||||
/* Suboption codes */
|
||||
@ -86,3 +108,13 @@
|
||||
#define COMPORT_PURGE_RXTX 3
|
||||
|
||||
#endif /* for TNCOMPORT_H */
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
/*
|
||||
* Local Variables:
|
||||
* mode:c
|
||||
* tab-width: 4
|
||||
* c-basic-offset: 4
|
||||
* End:
|
||||
*/
|
||||
|
Reference in New Issue
Block a user