aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/callbacks.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libssh/callbacks.h')
-rw-r--r--include/libssh/callbacks.h16
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;