diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-09-22 12:27:28 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-09-22 12:28:07 +0200 |
commit | 7de3122b423487c3f2127f0b0a44ed7c6735fbff (patch) | |
tree | 8b38f2a833e09789f4795c3aed6aba6a0a88af5a /libssh/log.c | |
parent | 88f4e9ea24257bfdce511272a65a8d0f7eab8b35 (diff) | |
download | libssh-7de3122b423487c3f2127f0b0a44ed7c6735fbff.tar.gz libssh-7de3122b423487c3f2127f0b0a44ed7c6735fbff.tar.xz libssh-7de3122b423487c3f2127f0b0a44ed7c6735fbff.zip |
Added a userdata generic pointer to the log callback function.
Diffstat (limited to 'libssh/log.c')
-rw-r--r-- | libssh/log.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libssh/log.c b/libssh/log.c index b2f5f415..4a3b275b 100644 --- a/libssh/log.c +++ b/libssh/log.c @@ -56,7 +56,8 @@ void ssh_log(SSH_SESSION *session, int verbosity, const char *format, ...) { va_end(va); if (session->options->log_function) { - session->options->log_function(buffer, session, verbosity); + session->options->log_function(session, verbosity, buffer, + session->options->log_userdata); } else if (verbosity == SSH_LOG_FUNCTIONS) { if (session->log_indent > 255) { min = 255; |