aboutsummaryrefslogtreecommitdiff
path: root/libssh/session.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-11-29 22:51:14 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2009-11-29 22:51:14 +0100
commit0bfb9d476c3dfc1ed74763665611891bcc277e9e (patch)
tree2ecbe008cbb309e57c818ca992a3154ed656a48b /libssh/session.c
parent91bb1b2de66a62723e0cbdda02e455f728522181 (diff)
downloadlibssh-0bfb9d476c3dfc1ed74763665611891bcc277e9e.tar.gz
libssh-0bfb9d476c3dfc1ed74763665611891bcc277e9e.tar.xz
libssh-0bfb9d476c3dfc1ed74763665611891bcc277e9e.zip
Standardize callbacks style and add documentation
Diffstat (limited to 'libssh/session.c')
-rw-r--r--libssh/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/session.c b/libssh/session.c
index ede83eb..8145a3c 100644
--- a/libssh/session.c
+++ b/libssh/session.c
@@ -369,7 +369,7 @@ int ssh_get_version(ssh_session session) {
* @internal
* @brief handles a SSH_DISCONNECT packet
*/
-int ssh_packet_disconnect_callback(ssh_session session, void *user, u_int8_t type, ssh_buffer packet){
+SSH_PACKET_CALLBACK(ssh_packet_disconnect_callback){
u_int32_t code;
char *error;
ssh_string error_s;
@@ -396,7 +396,7 @@ int ssh_packet_disconnect_callback(ssh_session session, void *user, u_int8_t typ
* @internal
* @brief handles a SSH_IGNORE and SSH_DEBUG packet
*/
-int ssh_packet_ignore_callback(ssh_session session, void *user, u_int8_t type, ssh_buffer packet){
+SSH_PACKET_CALLBACK(ssh_packet_ignore_callback){
(void)user;
(void)type;
(void)packet;