summaryrefslogtreecommitdiffstats
path: root/include/libssh/session.h
diff options
context:
space:
mode:
authorMilo Jhoran <milo.jhoran@gmail.com>2010-08-08 02:27:51 +0200
committerAndreas Schneider <asn@cynapses.org>2010-08-13 11:17:18 +0200
commit24b524040be4af9204f9d509ef6b8153aa6dc2cc (patch)
tree9c31a1b58fb0e3182a7dd45e9dea4284e7508247 /include/libssh/session.h
parente533c3f33b83a7a7fd820bf1fee91c53b11228c1 (diff)
downloadlibssh-24b524040be4af9204f9d509ef6b8153aa6dc2cc.tar.gz
libssh-24b524040be4af9204f9d509ef6b8153aa6dc2cc.tar.xz
libssh-24b524040be4af9204f9d509ef6b8153aa6dc2cc.zip
server: Added an API entry for the message callback.
Signed-off-by: Andreas Schneider <asn@cynapses.org>
Diffstat (limited to 'include/libssh/session.h')
-rw-r--r--include/libssh/session.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libssh/session.h b/include/libssh/session.h
index 1d6830c..86188fa 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 */