Added libssh2_session_abstract()

This commit is contained in:
Sara Golemon 2004-12-09 23:27:14 +00:00
parent 566bea77ea
commit d2ca405d0f
3 changed files with 14 additions and 1 deletions

3
README
View File

@ -26,6 +26,9 @@ Version 0.2
Added libssh2_session_methods() to determine what methods were negotiated.
Added libssh2_session_abstract() for retreiving &session->abstract
Version 0.1
-----------

View File

@ -43,7 +43,7 @@
#include <sys/stat.h>
#define LIBSSH2_VERSION "0.1"
#define LIBSSH2_APINO 200412091407
#define LIBSSH2_APINO 200412091526
/* Part of every banner, user specified or not */
#define LIBSSH2_SSH_BANNER "SSH-2.0-libssh2_" LIBSSH2_VERSION
@ -216,6 +216,7 @@ typedef struct _LIBSSH2_CHANNEL LIBSSH2_CHANNEL;
/* Session API */
LIBSSH2_API LIBSSH2_SESSION *libssh2_session_init_ex(LIBSSH2_ALLOC_FUNC((*my_alloc)), LIBSSH2_FREE_FUNC((*my_free)), LIBSSH2_REALLOC_FUNC((*my_realloc)), void *abstract);
#define libssh2_session_init() libssh2_session_init_ex(NULL, NULL, NULL, NULL)
LIBSSH2_API void **libssh2_session_abstract(LIBSSH2_SESSION *session);
LIBSSH2_API void *libssh2_session_callback_set(LIBSSH2_SESSION *session, int cbtype, void *callback);

View File

@ -484,3 +484,12 @@ LIBSSH2_API void libssh2_session_methods(LIBSSH2_SESSION *session, char **kex,
}
}
/* }}} */
/* {{{ libssh2_session_abstract
* Retreive a pointer to the abstract property
*/
LIBSSH2_API void **libssh2_session_abstract(LIBSSH2_SESSION *session)
{
return &session->abstract;
}
/* }}} */