Initial commit of Pollcat library
This commit is contained in:
41
example/terminal.h
Normal file
41
example/terminal.h
Normal file
@@ -0,0 +1,41 @@
|
||||
/** Minimal terminal using pollcat - prototypes
|
||||
*
|
||||
* This file is part of the Pollcat Library.
|
||||
* Copyright (C) 2022 Expatria Technologies Inc.
|
||||
* Contact: Morgan Hughes <morgan@expatria.ca>
|
||||
*
|
||||
* The Pollcat Library is free software: you can redistribute it and/or modify it under
|
||||
* the terms of the the GNU Lesser General Public License as published by the Free
|
||||
* Software Foundation; either version 3 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 copies of the GNU General Public License and the GNU Lesser
|
||||
* General Public License along with the Pollcat Library. If not, see
|
||||
* https://www.gnu.org/licenses/
|
||||
*
|
||||
* vim:ts=4:noexpandtab
|
||||
*/
|
||||
#ifndef _INCLUDE_TERMINAL_H_
|
||||
#define _INCLUDE_TERMINAL_H_
|
||||
|
||||
/* command.c */
|
||||
extern char command_char;
|
||||
extern int command_mode;
|
||||
void command_help (void);
|
||||
void command_recv (char c);
|
||||
|
||||
/* serial.c */
|
||||
int serial_init (const char *node, const char *speed);
|
||||
void serial_done (void);
|
||||
void serial_write (const void *buf, int len);
|
||||
|
||||
/* tty.c */
|
||||
int tty_init (void);
|
||||
void tty_done (void);
|
||||
void tty_write (const void *buf, int len);
|
||||
|
||||
#endif /* _INCLUDE_TERMINAL_H_ */
|
||||
Reference in New Issue
Block a user