aboutsummaryrefslogtreecommitdiff
path: root/libssh/channels1.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-07-24 22:15:33 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2009-07-24 22:15:33 +0200
commit2bc8819e8f68014ba35d03e56393e4d0c16386f8 (patch)
treefc0b96589e24be0b1029b501ea8697b2d92d24f7 /libssh/channels1.c
parent23b6c95e04adeff7cf49d7d8dffc74f1e3e4bc60 (diff)
downloadlibssh-2bc8819e8f68014ba35d03e56393e4d0c16386f8.tar.gz
libssh-2bc8819e8f68014ba35d03e56393e4d0c16386f8.tar.xz
libssh-2bc8819e8f68014ba35d03e56393e4d0c16386f8.zip
Changes all CHANNEL * to ssh_channel
Diffstat (limited to 'libssh/channels1.c')
-rw-r--r--libssh/channels1.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libssh/channels1.c b/libssh/channels1.c
index 5c80f670..c3db8447 100644
--- a/libssh/channels1.c
+++ b/libssh/channels1.c
@@ -40,7 +40,7 @@
* protocol.
*/
-int channel_open_session1(CHANNEL *chan) {
+int channel_open_session1(ssh_channel chan) {
/*
* We guess we are requesting an *exec* channel. It can only have one exec
* channel. So we abort with an error if we need more than one.
@@ -73,7 +73,7 @@ int channel_open_session1(CHANNEL *chan) {
* much simplier under ssh2. I just hope the defaults values are ok ...
*/
-int channel_request_pty_size1(CHANNEL *channel, const char *terminal, int col,
+int channel_request_pty_size1(ssh_channel channel, const char *terminal, int col,
int row) {
SSH_SESSION *session = channel->session;
ssh_string str = NULL;
@@ -126,7 +126,7 @@ int channel_request_pty_size1(CHANNEL *channel, const char *terminal, int col,
return -1;
}
-int channel_change_pty_size1(CHANNEL *channel, int cols, int rows) {
+int channel_change_pty_size1(ssh_channel channel, int cols, int rows) {
SSH_SESSION *session = channel->session;
if (buffer_add_u8(session->out_buffer, SSH_CMSG_WINDOW_SIZE) < 0 ||
@@ -163,7 +163,7 @@ int channel_change_pty_size1(CHANNEL *channel, int cols, int rows) {
return -1;
}
-int channel_request_shell1(CHANNEL *channel) {
+int channel_request_shell1(ssh_channel channel) {
SSH_SESSION *session = channel->session;
if (buffer_add_u8(session->out_buffer,SSH_CMSG_EXEC_SHELL) < 0) {
@@ -179,7 +179,7 @@ int channel_request_shell1(CHANNEL *channel) {
return 0;
}
-int channel_request_exec1(CHANNEL *channel, const char *cmd) {
+int channel_request_exec1(ssh_channel channel, const char *cmd) {
SSH_SESSION *session = channel->session;
ssh_string command = NULL;
@@ -205,7 +205,7 @@ int channel_request_exec1(CHANNEL *channel, const char *cmd) {
}
static int channel_rcv_data1(SSH_SESSION *session, int is_stderr) {
- CHANNEL *channel = session->channels;
+ ssh_channel channel = session->channels;
ssh_string str = NULL;
str = buffer_get_ssh_string(session->in_buffer);
@@ -229,7 +229,7 @@ static int channel_rcv_data1(SSH_SESSION *session, int is_stderr) {
}
static int channel_rcv_close1(SSH_SESSION *session) {
- CHANNEL *channel = session->channels;
+ ssh_channel channel = session->channels;
u32 status;
buffer_get_u32(session->in_buffer, &status);
@@ -273,7 +273,7 @@ int channel_handle1(SSH_SESSION *session, int type) {
return 0;
}
-int channel_write1(CHANNEL *channel, const void *data, int len) {
+int channel_write1(ssh_channel channel, const void *data, int len) {
SSH_SESSION *session = channel->session;
int origlen = len;
int effectivelen;