Initial work for supporting multiple identities.
This commit is contained in:
parent
b5cff8fac8
commit
76d07ed4f6
3 changed files with 103 additions and 39 deletions
|
|
@ -3,11 +3,30 @@
|
|||
|
||||
#include <tox/tox.h>
|
||||
|
||||
struct t_tox_weechat_identity
|
||||
{
|
||||
Tox *tox;
|
||||
|
||||
char *name;
|
||||
char *data_path;
|
||||
|
||||
struct t_gui_buffer *buffer;
|
||||
|
||||
int is_connected;
|
||||
|
||||
struct t_tox_weechat_identity *next_identity;
|
||||
struct t_tox_weechat_identity *prev_identity;
|
||||
};
|
||||
|
||||
extern struct t_tox_weechat_identity *tox_weechat_identities;
|
||||
|
||||
/**
|
||||
* Initialize the Tox object, bootstrap the DHT and start working.
|
||||
*/
|
||||
void tox_weechat_tox_init();
|
||||
|
||||
void tox_weechat_init_identity(struct t_tox_weechat_identity *identity);
|
||||
|
||||
/**
|
||||
* Bootstrap DHT using an inet address, port and a Tox address.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue