From 24b524040be4af9204f9d509ef6b8153aa6dc2cc Mon Sep 17 00:00:00 2001 From: Milo Jhoran Date: Sun, 8 Aug 2010 02:27:51 +0200 Subject: server: Added an API entry for the message callback. Signed-off-by: Andreas Schneider --- include/libssh/session.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/libssh/session.h') diff --git a/include/libssh/session.h b/include/libssh/session.h index 1d6830c3..86188fa8 100644 --- a/include/libssh/session.h +++ b/include/libssh/session.h @@ -115,7 +115,8 @@ struct ssh_session_struct { int auth_methods; int hostkeys; /* contains type of host key wanted by client, in server impl */ struct ssh_list *ssh_message_list; /* list of delayed SSH messages */ - int (*ssh_message_callback)( struct ssh_session_struct *session, ssh_message msg); + int (*ssh_message_callback)( struct ssh_session_struct *session, ssh_message msg, void *userdata); + void *ssh_message_callback_data; int log_verbosity; /*cached copy of the option structure */ int log_indent; /* indentation level in enter_function logs */ -- cgit