Improved channel support.

This commit is contained in:
Nicolás Ortega Froysa
2017-11-17 17:18:33 +01:00
parent c6eb1d6b09
commit 909a5ff740
2 changed files with 32 additions and 5 deletions

View File

@ -137,8 +137,11 @@ int NeoComm_join_channel(const char *channel_name);
* @brief Leave a channel.
*
* @param channel_name Name of the channel to disconnect from.
*
* @return 1 upon success, 0 upon failure. Use NeoComm_get_last_error for a
* text description of the error.
*/
void NeoComm_leave_channel(const char *channel_name);
int NeoComm_leave_channel(const char *channel_name);
/**
* @brief Get the next available message (in chronological order) for
@ -189,7 +192,8 @@ int NeoComm_check_message(const time_t token);
/**
* @brief Get the last error that occurred in text.
*
* @return A string with the last error occurred.
* @return A string with the last error occurred, if there are no errors it
* return NULL.
*/
const char *NeoComm_get_last_error();