diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-11-29 22:51:14 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-11-29 22:51:14 +0100 |
commit | 0bfb9d476c3dfc1ed74763665611891bcc277e9e (patch) | |
tree | 2ecbe008cbb309e57c818ca992a3154ed656a48b /libssh/channels.c | |
parent | 91bb1b2de66a62723e0cbdda02e455f728522181 (diff) | |
download | libssh-0bfb9d476c3dfc1ed74763665611891bcc277e9e.tar.gz libssh-0bfb9d476c3dfc1ed74763665611891bcc277e9e.tar.xz libssh-0bfb9d476c3dfc1ed74763665611891bcc277e9e.zip |
Standardize callbacks style and add documentation
Diffstat (limited to 'libssh/channels.c')
-rw-r--r-- | libssh/channels.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libssh/channels.c b/libssh/channels.c index 8af3a03..afd1771 100644 --- a/libssh/channels.c +++ b/libssh/channels.c @@ -314,7 +314,7 @@ static ssh_channel channel_from_msg(ssh_session session) { return channel; } -int channel_rcv_change_window(ssh_session session, void *user, u_int8_t type, ssh_buffer packet) { +SSH_PACKET_CALLBACK(channel_rcv_change_window) { ssh_channel channel; uint32_t bytes; int rc; @@ -351,7 +351,7 @@ int channel_rcv_change_window(ssh_session session, void *user, u_int8_t type, ss } /* is_stderr is set to 1 if the data are extended, ie stderr */ -int channel_rcv_data(ssh_session session, void *user, u_int8_t type, ssh_buffer packet) { +SSH_PACKET_CALLBACK(channel_rcv_data){ ssh_channel channel; ssh_string str; size_t len; @@ -424,7 +424,7 @@ int channel_rcv_data(ssh_session session, void *user, u_int8_t type, ssh_buffer return SSH_PACKET_USED; } -int channel_rcv_eof(ssh_session session, void *user, u_int8_t type, ssh_buffer packet) { +SSH_PACKET_CALLBACK(channel_rcv_eof) { ssh_channel channel; (void)user; (void)type; @@ -449,7 +449,7 @@ int channel_rcv_eof(ssh_session session, void *user, u_int8_t type, ssh_buffer p return SSH_PACKET_USED; } -int channel_rcv_close(ssh_session session, void *user, u_int8_t type, ssh_buffer packet) { +SSH_PACKET_CALLBACK(channel_rcv_close) { ssh_channel channel; (void)user; (void)type; @@ -491,7 +491,7 @@ int channel_rcv_close(ssh_session session, void *user, u_int8_t type, ssh_buffer return SSH_PACKET_USED; } -int channel_rcv_request(ssh_session session, void *user, u_int8_t type, ssh_buffer packet) { +SSH_PACKET_CALLBACK(channel_rcv_request) { ssh_channel channel; ssh_string request_s; char *request; |