diff options
author | Milo Jhoran <milo.jhoran@gmail.com> | 2010-08-08 02:27:51 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cynapses.org> | 2010-08-13 11:17:18 +0200 |
commit | 24b524040be4af9204f9d509ef6b8153aa6dc2cc (patch) | |
tree | 9c31a1b58fb0e3182a7dd45e9dea4284e7508247 /include/libssh/server.h | |
parent | e533c3f33b83a7a7fd820bf1fee91c53b11228c1 (diff) | |
download | libssh-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/server.h')
-rw-r--r-- | include/libssh/server.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libssh/server.h b/include/libssh/server.h index 70b4bd60..6d1d706f 100644 --- a/include/libssh/server.h +++ b/include/libssh/server.h @@ -159,7 +159,9 @@ LIBSSH_API int ssh_message_service_reply_success(ssh_message msg); LIBSSH_API char *ssh_message_service_service(ssh_message msg); LIBSSH_API void ssh_set_message_callback(ssh_session session, - int(*ssh_message_callback)(ssh_session session, ssh_message msg)); + int(*ssh_message_callback)(ssh_session session, ssh_message msg, void *data), + void *data); +LIBSSH_API int ssh_execute_message_callbacks(ssh_session session); LIBSSH_API char *ssh_message_channel_request_open_originator(ssh_message msg); LIBSSH_API int ssh_message_channel_request_open_originator_port(ssh_message msg); |