diff options
author | milo <milo@r0ot.me> | 2012-03-02 17:07:14 +0100 |
---|---|---|
committer | milo <milo@r0ot.me> | 2012-05-05 18:04:13 +0200 |
commit | c2fd6341c98393741d1eeb4ae89829e9ccb78451 (patch) | |
tree | 91b66f213fa78f1e08ce26f8b3caa2b4ed23827e /include/libssh/callbacks.h | |
parent | 99f14ec89092d315fbe9909fd0c91a979231fc5e (diff) | |
download | libssh-c2fd6341c98393741d1eeb4ae89829e9ccb78451.tar.gz libssh-c2fd6341c98393741d1eeb4ae89829e9ccb78451.tar.xz libssh-c2fd6341c98393741d1eeb4ae89829e9ccb78451.zip |
Added a window_grows callback
Diffstat (limited to 'include/libssh/callbacks.h')
-rw-r--r-- | include/libssh/callbacks.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/libssh/callbacks.h b/include/libssh/callbacks.h index 1bc0f5e..e45121a 100644 --- a/include/libssh/callbacks.h +++ b/include/libssh/callbacks.h @@ -339,6 +339,18 @@ typedef void (*ssh_channel_exit_signal_callback) (ssh_session session, const char *lang, void *userdata); +/** + * @brief SSH channel window grows callback. Called when the remote window grows + * @param session Current session handler + * @param channel the actual channel + * @param len the size of the remote window + * @param userdata Userdata to be passed to the callback function. + */ +typedef int (*ssh_channel_window_grows_callback) (ssh_session session, + ssh_channel channel, + uint32_t remote_window, + void *userdata); + struct ssh_channel_callbacks_struct { /** DON'T SET THIS use ssh_callbacks_init() instead. */ size_t size; @@ -370,6 +382,10 @@ struct ssh_channel_callbacks_struct { * This functions will be called when an exit signal has been received */ ssh_channel_exit_signal_callback channel_exit_signal_function; + /** + * This functions will be called when the remote window grows. + */ + ssh_channel_window_grows_callback channel_window_grows_function; }; typedef struct ssh_channel_callbacks_struct *ssh_channel_callbacks; |