aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2005-08-19 11:12:29 +0000
committerAris Adamantiadis <aris@0xbadc0de.be>2005-08-19 11:12:29 +0000
commitf23685f92b91aa53546a81bf7793c38a45df15d3 (patch)
tree026ff7769a0fd003d8930d421f5146bf731f97d3 /include
parentd95242d2cde747151953387053a9649bd525d265 (diff)
downloadlibssh-f23685f92b91aa53546a81bf7793c38a45df15d3.tar.gz
libssh-f23685f92b91aa53546a81bf7793c38a45df15d3.tar.xz
libssh-f23685f92b91aa53546a81bf7793c38a45df15d3.zip
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
Diffstat (limited to 'include')
-rw-r--r--include/libssh/libssh.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index e3a0b652..8f1b21be 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -24,6 +24,9 @@ MA 02111-1307, USA. */
#include <unistd.h>
#include <sys/select.h> /* for fd_set * */
#include <sys/types.h>
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#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);