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

move log struct to proper place

This commit is contained in:
Jfreegman
2014-03-25 08:25:10 -04:00
parent a5ce17f44e
commit 3baa830afb
5 changed files with 12 additions and 9 deletions

View File

@ -20,6 +20,15 @@
*
*/
#define LOG_FLUSH_LIMIT 2 /* limits calls to fflush(logfile) to a max of one per LOG_FLUSH_LIMIT seconds */
struct chatlog {
FILE *file;
uint64_t lastwrite;
int pos;
bool log_on; /* specific to current chat window */
};
/* Creates/fetches log file by appending to the config dir the name and a pseudo-unique identity */
void init_logging_session(uint8_t *name, uint8_t *key, struct chatlog *log);