1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-30 08:36:44 +02:00

handle last online stuff properly & update toxic version

This commit is contained in:
Jfreegman
2014-03-15 17:18:23 -04:00
parent c055af7348
commit 33a4e806e2
3 changed files with 32 additions and 19 deletions

View File

@ -23,8 +23,17 @@
#ifndef FRIENDLIST_H_53I41IM
#define FRIENDLIST_H_53I41IM
#include <time.h>
#include "toxic_windows.h"
#define TIME_STR_SIZE 16
struct LastOnline {
uint64_t last_on;
struct tm tm;
uint8_t hour_min_str[TIME_STR_SIZE]; /* holds 12-hour time string e.g. "10:43 PM" */
};
typedef struct {
uint8_t name[TOX_MAX_NAME_LENGTH];
uint16_t namelength;
@ -38,16 +47,11 @@ typedef struct {
bool online;
bool is_typing;
bool logging_on; /* saves preference for friend irrespective of chat windows */
uint64_t last_online;
TOX_USERSTATUS status;
struct LastOnline last_online;
struct FileReceiver file_receiver;
} ToxicFriend;
typedef struct {
int num;
bool active;
} PendingDel;
ToxWindow new_friendlist(void);
void disable_chatwin(int f_num);
int get_friendnum(uint8_t *name);