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

Display a user warning when log fails to initialize

This commit is contained in:
Jfreegman
2015-08-19 00:42:28 -04:00
parent 2a787c1097
commit 92d76c7f99
6 changed files with 29 additions and 13 deletions

View File

@ -39,8 +39,12 @@ enum {
/* formats/writes line to log file */
void write_to_log(const char *msg, const char *name, struct chatlog *log, bool event);
/* enables logging for specified log and creates/fetches file if necessary */
void log_enable(char *name, const char *selfkey, const char *otherkey, struct chatlog *log, int logtype);
/* enables logging for specified log and creates/fetches file if necessary.
*
* Returns 0 on success.
* Returns -1 on failure.
*/
int log_enable(char *name, const char *selfkey, const char *otherkey, struct chatlog *log, int logtype);
/* disables logging for specified log and closes file */
void log_disable(struct chatlog *log);