Added a return value for tox_weechat_bootstrap.
This commit is contained in:
parent
2192806a41
commit
27375ad5ed
@ -210,12 +210,14 @@ tox_weechat_status_message_callback(Tox *tox,
|
||||
tox_weechat_chat_refresh_timer_callback, chat);
|
||||
}
|
||||
|
||||
void
|
||||
int
|
||||
tox_weechat_bootstrap(char *address, uint16_t port, char *public_key)
|
||||
{
|
||||
uint8_t *binary_key = tox_weechat_hex2bin(public_key);
|
||||
tox_bootstrap_from_address(tox, address, htons(port), binary_key);
|
||||
int result = tox_bootstrap_from_address(tox, address, htons(port), binary_key);
|
||||
free(binary_key);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -11,7 +11,7 @@ void tox_weechat_tox_init();
|
||||
/**
|
||||
* Bootstrap DHT using an inet address, port and a Tox address.
|
||||
*/
|
||||
void tox_weechat_bootstrap(char *address, uint16_t port, char *public_key);
|
||||
int tox_weechat_bootstrap(char *address, uint16_t port, char *public_key);
|
||||
|
||||
/**
|
||||
* Dump Tox to file and de-initialize.
|
||||
|
Loading…
Reference in New Issue
Block a user