void on_friendadded(Tox *m, int friendnumber) { friendlist_onFriendAdded(m, friendnumber); if (store_data(m, DATA_FILE)) wprintw(prompt->window, "\nCould not store Tox data\n"); }
static void load_friendlist(Tox *m) { int32_t i; uint32_t numfriends = tox_count_friendlist(m); for (i = 0; i < numfriends; ++i) friendlist_onFriendAdded(NULL, m, i, false); }
static void load_friendlist(Tox *m) { size_t i; size_t numfriends = tox_self_get_friend_list_size(m); for (i = 0; i < numfriends; ++i) friendlist_onFriendAdded(NULL, m, i, false); sort_friendlist_index(); }
void on_friendadded(int friendnumber) { friendlist_onFriendAdded(friendnumber); }
void on_friendadded(Messenger *m, int friendnumber) { friendlist_onFriendAdded(m, friendnumber); }