From f23685f92b91aa53546a81bf7793c38a45df15d3 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Fri, 19 Aug 2005 11:12:29 +0000 Subject: stdint.patch, debug_output.patch, ssh_12_select.patch, solaris_7.patch and args_in_decl.patch from Norbert. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@12 7dcaeef0-15fb-0310-b436-a5af3365683c --- include/libssh/libssh.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'include/libssh/libssh.h') diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index e3a0b65..8f1b21b 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -24,6 +24,9 @@ MA 02111-1307, USA. */ #include #include /* for fd_set * */ #include +#ifdef HAVE_STDINT_H +#include +#endif #define LIBSSH_VERSION "libssh-0.2-dev" #ifdef __cplusplus @@ -40,10 +43,10 @@ typedef struct ssh_session SSH_SESSION; typedef struct ssh_kbdint SSH_KBDINT; /* integer values */ -typedef u_int32_t u32; -typedef u_int16_t u16; -typedef u_int64_t u64; -typedef u_int8_t u8; +typedef uint32_t u32; +typedef uint16_t u16; +typedef uint64_t u64; +typedef uint8_t u8; /* the offsets of methods */ #define SSH_KEX 0 @@ -109,7 +112,7 @@ void ssh_set_options(SSH_SESSION *session, SSH_OPTIONS *options); int ssh_get_fd(SSH_SESSION *session); /* client.c */ -int ssh_connect(); +int ssh_connect(SSH_SESSION *session); void ssh_disconnect(SSH_SESSION *session); int ssh_service_request(SSH_SESSION *session,char *service); char *ssh_get_issue_banner(SSH_SESSION *session); -- cgit