diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-07-29 23:21:01 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-07-29 23:21:01 +0200 |
commit | bccb9b16a58c0f43ff03c39c81db9c0a17d4549b (patch) | |
tree | 46b82f2b2f7a0b2d6dfb16fba5880337ddc52b66 /include | |
parent | 1355029ec9059ef190b8c8bfd1cb2170b4112313 (diff) | |
download | libssh-bccb9b16a58c0f43ff03c39c81db9c0a17d4549b.tar.gz libssh-bccb9b16a58c0f43ff03c39c81db9c0a17d4549b.tar.xz libssh-bccb9b16a58c0f43ff03c39c81db9c0a17d4549b.zip |
Move channel_write_stderr to server.c.
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/libssh.h | 1 | ||||
-rw-r--r-- | include/libssh/priv.h | 2 | ||||
-rw-r--r-- | include/libssh/server.h | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 8d2075f..924992a 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -285,7 +285,6 @@ int channel_request_env(ssh_channel channel, const char *name, const char *value int channel_request_exec(ssh_channel channel, const char *cmd); int channel_request_sftp(ssh_channel channel); int channel_write(ssh_channel channel, const void *data, uint32_t len); -int channel_write_stderr(ssh_channel channel, const void *data, uint32_t len); int channel_send_eof(ssh_channel channel); int channel_is_eof(ssh_channel channel); int channel_read(ssh_channel channel, void *dest, uint32_t count, int is_stderr); diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 6b1cd3c..ead6cfc 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -689,6 +689,8 @@ int channel_default_bufferize(ssh_channel channel, void *data, int len, int is_stderr); uint32_t ssh_channel_new_id(SSH_SESSION *session); ssh_channel ssh_channel_from_local(SSH_SESSION *session, uint32_t id); +int channel_write_common(ssh_channel channel, const void *data, + uint32_t len, int is_stderr); /* options.c */ diff --git a/include/libssh/server.h b/include/libssh/server.h index 69eb50b..e5a921d 100644 --- a/include/libssh/server.h +++ b/include/libssh/server.h @@ -121,6 +121,8 @@ void ssh_bind_free(SSH_BIND *ssh_bind); */ int ssh_accept(SSH_SESSION *session); +int channel_write_stderr(ssh_channel channel, const void *data, uint32_t len); + /* messages.c */ #define SSH_AUTH_REQUEST 1 |