Fix the documentation.

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@671 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Andreas Schneider
2009-05-02 20:24:39 +00:00
parent 015b1649b1
commit 0b4159d1ec

View File

@@ -36,16 +36,22 @@
#define WINDOWBASE 128000 #define WINDOWBASE 128000
#define WINDOWLIMIT (WINDOWBASE/2) #define WINDOWLIMIT (WINDOWBASE/2)
/** \defgroup ssh_channel SSH Channels /**
* \brief functions that manage a channel * @defgroup ssh_channel SSH Channels
* @brief Functions that manage a channel.
*/ */
/** \addtogroup ssh_channel /**
* @{ */ * @addtogroup ssh_channel
* @{
*/
/** \brief allocate a new channel /**
* \param session ssh session * @brief Allocate a new channel.
* \return An allocated channel, NULL on error. *
* @param session The ssh session to use.
*
* @return A pointer to a newly allocated channel, NULL on error.
*/ */
CHANNEL *channel_new(SSH_SESSION *session) { CHANNEL *channel_new(SSH_SESSION *session) {
CHANNEL *channel = NULL; CHANNEL *channel = NULL;
@@ -1342,8 +1348,10 @@ SSH_SESSION *channel_get_session(CHANNEL *channel){
* \return other values : exit status * \return other values : exit status
*/ */
int channel_get_exit_status(CHANNEL *channel){ int channel_get_exit_status(CHANNEL *channel) {
return channel->exit_status; channel_request(channel, "exit-status", NULL, 0);
return channel->exit_status;
} }
/* This function acts as a meta select. */ /* This function acts as a meta select. */