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

try to limit scope of globals

This commit is contained in:
Jfreegman
2013-11-29 18:52:21 -05:00
parent 7ad520f128
commit 57c2872b75
10 changed files with 36 additions and 26 deletions

View File

@ -3,6 +3,20 @@
#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];
int num;
int chatwin;
bool active;
bool online;
TOX_USERSTATUS status;
struct FileReceiver file_receiver;
} ToxicFriend;
ToxWindow new_friendlist(void);
void disable_chatwin(int f_num);
int get_friendnum(uint8_t *name);