mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
tox_new returns NULL on failure.
This commit is contained in:
parent
8a32b3a12f
commit
441e007362
|
@ -516,6 +516,8 @@ static class options {
|
|||
* NULL, the default options are used.
|
||||
*
|
||||
* @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) {
|
||||
NULL,
|
||||
|
|
|
@ -609,6 +609,8 @@ typedef enum TOX_ERR_NEW {
|
|||
* NULL, the default options are used.
|
||||
*
|
||||
* @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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user