aboutsummaryrefslogtreecommitdiff
path: root/src/pty.h
diff options
context:
space:
mode:
authorJulien Dessaux2018-05-22 17:31:56 +0200
committerJulien Dessaux2018-05-22 17:31:56 +0200
commite840c061817a797fae31a14796a790b0c979e43f (patch)
treea64752420ae1b7a91e43e4d4314b5df9f8609313 /src/pty.h
downloadbastion-e840c061817a797fae31a14796a790b0c979e43f.tar.gz
bastion-e840c061817a797fae31a14796a790b0c979e43f.tar.bz2
bastion-e840c061817a797fae31a14796a790b0c979e43f.zip
Initial import with working simple server based on libssh examples
Diffstat (limited to 'src/pty.h')
-rw-r--r--src/pty.h15
1 files changed, 15 insertions, 0 deletions
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