1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-07-01 16:57:45 +02:00
toxic/src/friendlist.h

30 lines
776 B
C
Raw Normal View History

2013-08-13 00:50:43 +02:00
#ifndef FRIENDLIST_H_53I41IM
#define FRIENDLIST_H_53I41IM
#include "toxic_windows.h"
2013-11-30 00:52:21 +01:00
typedef struct {
uint8_t name[TOX_MAX_NAME_LENGTH];
uint16_t namelength;
uint8_t statusmsg[TOX_MAX_STATUSMESSAGE_LENGTH];
uint16_t statusmsg_len;
uint8_t pending_groupchat[TOX_CLIENT_ID_SIZE];
uint8_t pub_key[TOX_CLIENT_ID_SIZE];
2013-11-30 00:52:21 +01:00
int num;
int chatwin;
bool active;
bool online;
2014-02-23 10:28:33 +01:00
bool is_typing;
2013-11-30 00:52:21 +01:00
TOX_USERSTATUS status;
struct FileReceiver file_receiver;
} ToxicFriend;
ToxWindow new_friendlist(void);
2013-08-13 00:50:43 +02:00
void disable_chatwin(int f_num);
int get_friendnum(uint8_t *name);
2013-11-25 00:22:48 +01:00
/* sorts friendlist_index first by connection status then alphabetically */
void sort_friendlist_index(Tox *m);
2013-08-13 00:50:43 +02:00
#endif /* end of include guard: FRIENDLIST_H_53I41IM */