diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-02-02 15:35:39 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-02-02 15:35:39 +0000 |
commit | 7250e03f97a46aa8c1229d072b1f6f3a6e13a9a0 (patch) | |
tree | 397adfd84936352566aa62171eaea0d01306a236 /include | |
parent | 948c3f1befb2ae25f5b8ae277f6cac1a9853b399 (diff) | |
download | libssh-7250e03f97a46aa8c1229d072b1f6f3a6e13a9a0.tar.gz libssh-7250e03f97a46aa8c1229d072b1f6f3a6e13a9a0.tar.xz libssh-7250e03f97a46aa8c1229d072b1f6f3a6e13a9a0.zip |
Fix build warnings in channel code.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@210 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/libssh.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index ef383015..5adfcf7a 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -240,17 +240,19 @@ int channel_request_subsystem(CHANNEL *channel, char *system); int channel_request_env(CHANNEL *channel,char *name, char *value); int channel_request_exec(CHANNEL *channel, char *cmd); int channel_request_sftp(CHANNEL *channel); -int channel_write(CHANNEL *channel,void *data,int len); +int channel_write(CHANNEL *channel, void *data, u32 len); int channel_send_eof(CHANNEL *channel); int channel_is_eof(CHANNEL *channel); -int channel_read(CHANNEL *channel, BUFFER *buffer,int bytes,int is_stderr); +int channel_read(CHANNEL *channel, BUFFER *buffer, u32 bytes, int is_stderr); int channel_poll(CHANNEL *channel, int is_stderr); int channel_close(CHANNEL *channel); -int channel_read_nonblocking(CHANNEL *channel, char *dest, int len, int is_stderr); +void channel_set_blocking(CHANNEL *channel, int blocking); +int channel_read_nonblocking(CHANNEL *channel, char *dest, u32 len, int is_stderr); int channel_is_open(CHANNEL *channel); int channel_is_closed(CHANNEL *channel); int channel_select(CHANNEL **readchans, CHANNEL **writechans, CHANNEL **exceptchans, struct timeval * timeout); +SSH_SESSION *channel_get_session(CHANNEL *channel); /* in options.c */ /** |