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:
@ -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 */
|
||||
|
Reference in New Issue
Block a user