diff options
-rw-r--r-- | include/libssh/callback.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/libssh/callback.h b/include/libssh/callback.h index 22dcfb4e..3aac65bc 100644 --- a/include/libssh/callback.h +++ b/include/libssh/callback.h @@ -50,7 +50,10 @@ typedef int (*ssh_auth_callback) (const char *prompt, char *buf, size_t len, int echo, int verify, void *userdata); typedef void (*ssh_log_callback) (ssh_session session, int priority, const char *message, void *userdata); - +/** this callback will be called with status going from 0.0 to 1.0 during + * connection */ +typedef void (*ssh_status_callback) (ssh_session session, float status, + void *userdata); struct ssh_callbacks_struct { /** size of this structure. internal, shoud be set with ssh_callbacks_init()*/ size_t size; |