1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-30 20:16:46 +02:00

implement contact blocking

This commit is contained in:
Jfreegman
2014-07-31 12:48:49 -04:00
parent 75708f7600
commit fba0732faa
5 changed files with 453 additions and 69 deletions

View File

@ -64,9 +64,18 @@ typedef struct {
struct FileReceiver file_receiver;
} ToxicFriend;
typedef struct {
char name[TOXIC_MAX_NAME_LENGTH];
int namelength;
char pub_key[TOX_CLIENT_ID_SIZE];
int32_t num;
bool active;
} BlockedFriend;
ToxWindow new_friendlist(void);
void disable_chatwin(int32_t f_num);
int get_friendnum(uint8_t *name);
int load_blocklist(char *data);
void friendlist_onFriendAdded(ToxWindow *self, Tox *m, int32_t num, bool sort);