2013-08-13 00:50:43 +02:00
|
|
|
#ifndef FRIENDLIST_H_53I41IM
|
|
|
|
#define FRIENDLIST_H_53I41IM
|
|
|
|
|
2013-08-23 00:18:53 +02:00
|
|
|
#include "toxic_windows.h"
|
2013-08-13 02:32:09 +02:00
|
|
|
|
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];
|
|
|
|
int num;
|
|
|
|
int chatwin;
|
|
|
|
bool active;
|
|
|
|
bool online;
|
|
|
|
TOX_USERSTATUS status;
|
|
|
|
struct FileReceiver file_receiver;
|
|
|
|
} ToxicFriend;
|
|
|
|
|
2013-11-19 21:32:35 +01:00
|
|
|
ToxWindow new_friendlist(void);
|
2013-08-13 00:50:43 +02:00
|
|
|
void disable_chatwin(int f_num);
|
2013-09-18 01:11:23 +02:00
|
|
|
int get_friendnum(uint8_t *name);
|
2013-11-25 00:22:48 +01:00
|
|
|
|
|
|
|
/* sorts friendlist_index first by connection status then alphabetically */
|
2013-11-16 03:36:05 +01:00
|
|
|
void sort_friendlist_index(void);
|
2013-08-13 00:50:43 +02:00
|
|
|
|
|
|
|
#endif /* end of include guard: FRIENDLIST_H_53I41IM */
|