Update to match WeeChat 1.5 plugin API.

This commit is contained in:
Håvard Pettersson 2016-05-10 10:51:08 +02:00
parent 5e30b18d50
commit 174f00eccd
9 changed files with 111 additions and 105 deletions

View file

@ -33,14 +33,15 @@
#include "twc-tox-callbacks.h"
int
twc_do_timer_cb(void *data,
twc_do_timer_cb(const void *pointer, void *data,
int remaining_calls)
{
struct t_twc_profile *profile = data;
/* TODO: don't strip the const */
struct t_twc_profile *profile = (void *)pointer;
tox_iterate(profile->tox);
struct t_hook *hook = weechat_hook_timer(tox_iteration_interval(profile->tox),
0, 1, twc_do_timer_cb, profile);
0, 1, twc_do_timer_cb, profile, NULL);
profile->tox_do_timer = hook;
// check connection status