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

load chatlog history when opening a chatwindow

This commit is contained in:
Jfreegman
2014-09-22 04:29:28 -04:00
parent 7fd3aa9164
commit dc3b2e04ab
5 changed files with 73 additions and 8 deletions

View File

@ -26,6 +26,7 @@
struct chatlog {
FILE *file;
uint64_t lastwrite;
char path[MAX_STR_SIZE];
bool log_on; /* specific to current chat window */
};
@ -41,4 +42,7 @@ void log_enable(char *name, const char *key, struct chatlog *log);
/* disables logging for specified log and closes file */
void log_disable(struct chatlog *log);
/* Loads previous history from chat log */
void load_chat_history(ToxWindow *self, struct chatlog *log);
#endif /* #define _log_h */