2014-09-02 13:59:07 +02:00
|
|
|
#ifndef TOX_WEECHAT_TOX_H
|
|
|
|
#define TOX_WEECHAT_TOX_H
|
|
|
|
|
|
|
|
#include <tox/tox.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Initialize the Tox object, bootstrap the DHT and start working.
|
|
|
|
*/
|
|
|
|
void tox_weechat_tox_init();
|
|
|
|
|
2014-09-02 23:36:24 +02:00
|
|
|
/**
|
|
|
|
* Bootstrap DHT using an inet address, port and a Tox address.
|
|
|
|
*/
|
|
|
|
void tox_weechat_bootstrap(char *address, uint16_t port, char *public_key);
|
|
|
|
|
2014-09-02 13:59:07 +02:00
|
|
|
/**
|
|
|
|
* Dump Tox to file and de-initialize.
|
|
|
|
*/
|
2014-09-02 18:47:08 +02:00
|
|
|
void tox_weechat_tox_free();
|
2014-09-02 13:59:07 +02:00
|
|
|
|
|
|
|
#endif // TOX_WEECHAT_TOX_H
|