tox_new returns NULL on failure.

This commit is contained in:
irungentoo 2015-05-25 15:20:38 -04:00
parent 8a32b3a12f
commit 441e007362
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98
2 changed files with 4 additions and 0 deletions

View File

@ -516,6 +516,8 @@ static class options {
* NULL, the default options are used. * NULL, the default options are used.
* *
* @see $iterate for the event loop. * @see $iterate for the event loop.
*
* @return A new Tox instance pointer on success or NULL on failure.
*/ */
static this new(const options_t *options) { static this new(const options_t *options) {
NULL, NULL,

View File

@ -609,6 +609,8 @@ typedef enum TOX_ERR_NEW {
* NULL, the default options are used. * NULL, the default options are used.
* *
* @see tox_iterate for the event loop. * @see tox_iterate for the event loop.
*
* @return A new Tox instance pointer on success or NULL on failure.
*/ */
Tox *tox_new(const struct Tox_Options *options, TOX_ERR_NEW *error); Tox *tox_new(const struct Tox_Options *options, TOX_ERR_NEW *error);