From e840c061817a797fae31a14796a790b0c979e43f Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Tue, 22 May 2018 17:31:56 +0200 Subject: Initial import with working simple server based on libssh examples --- src/pty.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/pty.h (limited to 'src/pty.h') diff --git a/src/pty.h b/src/pty.h new file mode 100644 index 0000000..c130f4a --- /dev/null +++ b/src/pty.h @@ -0,0 +1,15 @@ +#ifndef _PTY_H_ +#define _PTY_H_ + +#include "util.h" + +int pty_request(ssh_session session, ssh_channel channel, + const char *term, int cols, int rows, int py, int px, + void *userdata); +int pty_resize(ssh_session session, ssh_channel channel, int cols, + int rows, int py, int px, void *userdata); +int exec_pty(const char *mode, const char *command, + struct channel_data_struct *cdata); +int exec_nopty(const char *command, struct channel_data_struct *cdata); + +#endif -- cgit v1.2.3