mirror of
https://github.com/Tha14/toxic.git
synced 2024-06-29 16:27:45 +02:00
30 lines
776 B
C
30 lines
776 B
C
#ifndef FRIENDLIST_H_53I41IM
|
|
#define FRIENDLIST_H_53I41IM
|
|
|
|
#include "toxic_windows.h"
|
|
|
|
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];
|
|
int num;
|
|
int chatwin;
|
|
bool active;
|
|
bool online;
|
|
bool is_typing;
|
|
TOX_USERSTATUS status;
|
|
struct FileReceiver file_receiver;
|
|
} ToxicFriend;
|
|
|
|
ToxWindow new_friendlist(void);
|
|
void disable_chatwin(int f_num);
|
|
int get_friendnum(uint8_t *name);
|
|
|
|
/* sorts friendlist_index first by connection status then alphabetically */
|
|
void sort_friendlist_index(Tox *m);
|
|
|
|
#endif /* end of include guard: FRIENDLIST_H_53I41IM */
|