From 7de3122b423487c3f2127f0b0a44ed7c6735fbff Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 22 Sep 2009 12:27:28 +0200 Subject: Added a userdata generic pointer to the log callback function. --- include/libssh/priv.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/libssh/priv.h') diff --git a/include/libssh/priv.h b/include/libssh/priv.h index e103ce96..1d5414bf 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -296,7 +296,8 @@ struct ssh_options_struct { char *dsakey; char *rsakey; /* host key for server implementation */ int log_verbosity; - void (*log_function)(const char *message, SSH_SESSION *session, int verbosity); //log callback + ssh_log_callback log_function; //log callback + void *log_userdata; }; typedef struct ssh_crypto_struct { -- cgit