summaryrefslogtreecommitdiffstats
path: root/include/libssh
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-09-23 22:19:11 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2009-09-23 22:19:11 +0200
commit496a8e12d988b71089dc59547ed0f3e6c6825292 (patch)
tree01169a374f142e0050fb63d930c31159358b4ab7 /include/libssh
parent0e8e124d2023736c973ce8e06f4776efd1edb096 (diff)
downloadlibssh-496a8e12d988b71089dc59547ed0f3e6c6825292.tar.gz
libssh-496a8e12d988b71089dc59547ed0f3e6c6825292.tar.xz
libssh-496a8e12d988b71089dc59547ed0f3e6c6825292.zip
Get rid of SSH_MESSAGE
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/libssh.h14
-rw-r--r--include/libssh/server.h46
2 files changed, 30 insertions, 30 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index d87f70c..d5f8c5c 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -361,13 +361,13 @@ LIBSSH_API int ssh_get_status(ssh_session session);
LIBSSH_API int ssh_init(void);
LIBSSH_API int ssh_is_server_known(ssh_session session);
LIBSSH_API void ssh_log(ssh_session session, int prioriry, const char *format, ...) PRINTF_ATTRIBUTE(3, 4);
-LIBSSH_API ssh_channel ssh_message_channel_request_open_reply_accept(SSH_MESSAGE *msg);
-LIBSSH_API int ssh_message_channel_request_reply_success(SSH_MESSAGE *msg);
-LIBSSH_API void ssh_message_free(SSH_MESSAGE *msg);
-LIBSSH_API SSH_MESSAGE *ssh_message_get(ssh_session session);
-LIBSSH_API SSH_MESSAGE *ssh_message_retrieve(ssh_session session, uint32_t packettype);
-LIBSSH_API int ssh_message_subtype(SSH_MESSAGE *msg);
-LIBSSH_API int ssh_message_type(SSH_MESSAGE *msg);
+LIBSSH_API ssh_channel ssh_message_channel_request_open_reply_accept(ssh_message msg);
+LIBSSH_API int ssh_message_channel_request_reply_success(ssh_message msg);
+LIBSSH_API void ssh_message_free(ssh_message msg);
+LIBSSH_API ssh_message ssh_message_get(ssh_session session);
+LIBSSH_API ssh_message ssh_message_retrieve(ssh_session session, uint32_t packettype);
+LIBSSH_API int ssh_message_subtype(ssh_message msg);
+LIBSSH_API int ssh_message_type(ssh_message msg);
LIBSSH_API int ssh_mkdir (const char *pathname, mode_t mode);
LIBSSH_API ssh_session ssh_new(void);
LIBSSH_API ssh_options ssh_options_copy(ssh_options opt);
diff --git a/include/libssh/server.h b/include/libssh/server.h
index afe3f49..311003c 100644
--- a/include/libssh/server.h
+++ b/include/libssh/server.h
@@ -124,40 +124,40 @@ LIBSSH_API int ssh_accept(ssh_session session);
LIBSSH_API int channel_write_stderr(ssh_channel channel, const void *data, uint32_t len);
/* messages.c */
-LIBSSH_API int ssh_message_reply_default(SSH_MESSAGE *msg);
+LIBSSH_API int ssh_message_reply_default(ssh_message msg);
-LIBSSH_API char *ssh_message_auth_user(SSH_MESSAGE *msg);
-LIBSSH_API char *ssh_message_auth_password(SSH_MESSAGE *msg);
-LIBSSH_API ssh_public_key ssh_message_auth_publickey(SSH_MESSAGE *msg);
-LIBSSH_API int ssh_message_auth_reply_success(SSH_MESSAGE *msg,int partial);
-LIBSSH_API int ssh_message_auth_reply_pk_ok(SSH_MESSAGE *msg, ssh_string algo, ssh_string pubkey);
-LIBSSH_API int ssh_message_auth_set_methods(SSH_MESSAGE *msg, int methods);
+LIBSSH_API char *ssh_message_auth_user(ssh_message msg);
+LIBSSH_API char *ssh_message_auth_password(ssh_message msg);
+LIBSSH_API ssh_public_key ssh_message_auth_publickey(ssh_message msg);
+LIBSSH_API int ssh_message_auth_reply_success(ssh_message msg,int partial);
+LIBSSH_API int ssh_message_auth_reply_pk_ok(ssh_message msg, ssh_string algo, ssh_string pubkey);
+LIBSSH_API int ssh_message_auth_set_methods(ssh_message msg, int methods);
-LIBSSH_API int ssh_message_service_reply_success(SSH_MESSAGE *msg);
-LIBSSH_API char *ssh_message_service_service(SSH_MESSAGE *msg);
+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));
-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);
-LIBSSH_API char *ssh_message_channel_request_open_destination(SSH_MESSAGE *msg);
-LIBSSH_API int ssh_message_channel_request_open_destination_port(SSH_MESSAGE *msg);
+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);
+LIBSSH_API char *ssh_message_channel_request_open_destination(ssh_message msg);
+LIBSSH_API int ssh_message_channel_request_open_destination_port(ssh_message msg);
-LIBSSH_API ssh_channel ssh_message_channel_request_channel(SSH_MESSAGE *msg);
+LIBSSH_API ssh_channel ssh_message_channel_request_channel(ssh_message msg);
-LIBSSH_API char *ssh_message_channel_request_pty_term(SSH_MESSAGE *msg);
-LIBSSH_API int ssh_message_channel_request_pty_width(SSH_MESSAGE *msg);
-LIBSSH_API int ssh_message_channel_request_pty_height(SSH_MESSAGE *msg);
-LIBSSH_API int ssh_message_channel_request_pty_pxwidth(SSH_MESSAGE *msg);
-LIBSSH_API int ssh_message_channel_request_pty_pxheight(SSH_MESSAGE *msg);
+LIBSSH_API char *ssh_message_channel_request_pty_term(ssh_message msg);
+LIBSSH_API int ssh_message_channel_request_pty_width(ssh_message msg);
+LIBSSH_API int ssh_message_channel_request_pty_height(ssh_message msg);
+LIBSSH_API int ssh_message_channel_request_pty_pxwidth(ssh_message msg);
+LIBSSH_API int ssh_message_channel_request_pty_pxheight(ssh_message msg);
-LIBSSH_API char *ssh_message_channel_request_env_name(SSH_MESSAGE *msg);
-LIBSSH_API char *ssh_message_channel_request_env_value(SSH_MESSAGE *msg);
+LIBSSH_API char *ssh_message_channel_request_env_name(ssh_message msg);
+LIBSSH_API char *ssh_message_channel_request_env_value(ssh_message msg);
-LIBSSH_API char *ssh_message_channel_request_command(SSH_MESSAGE *msg);
+LIBSSH_API char *ssh_message_channel_request_command(ssh_message msg);
-LIBSSH_API char *ssh_message_channel_request_subsystem(SSH_MESSAGE *msg);
+LIBSSH_API char *ssh_message_channel_request_subsystem(ssh_message msg);
#ifdef __cplusplus
}