diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-06-18 23:48:55 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-06-18 23:48:55 +0200 |
commit | 1bea53375b2fb764d9a900a0946d71d7baafb00f (patch) | |
tree | 2b10cc34633155a0287895ac4120c09d146acbf1 /include/libssh/server.h | |
parent | 3af55a4f49f32ba73af86c6c47f0ed05044eec13 (diff) | |
download | libssh-1bea53375b2fb764d9a900a0946d71d7baafb00f.tar.gz libssh-1bea53375b2fb764d9a900a0946d71d7baafb00f.tar.xz libssh-1bea53375b2fb764d9a900a0946d71d7baafb00f.zip |
added ssh_message_callback support.
Not fully working yet. User can set his ssh_message_callback, and the function ssh_execute_message_callbacks will call them when appropriate. Messages are correctly stacked (in packet_parse) but no call to ssh_execute_callbacks exists yet.
Diffstat (limited to 'include/libssh/server.h')
-rw-r--r-- | include/libssh/server.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libssh/server.h b/include/libssh/server.h index 495a8c8f..915edd8d 100644 --- a/include/libssh/server.h +++ b/include/libssh/server.h @@ -173,7 +173,8 @@ int ssh_message_channel_request_reply_success(SSH_MESSAGE *msg); int ssh_message_service_reply_success(SSH_MESSAGE *msg); char *ssh_message_service_service(SSH_MESSAGE *msg); - +void ssh_set_message_callback(SSH_SESSION *session, + int(*ssh_message_callback)(struct ssh_session *session, struct ssh_message *msg)); #ifdef __cplusplus } #endif /* __cplusplus */ |