]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blob - src/log-file.h
Releasing 1.20.0
[sojka/lightdm.git] / src / log-file.h
1 /*
2  * Copyright (C) 2015 Alexandros Frantzis
3  * Author: Alexandros Frantzis <alexandros.frantzis@canonical.com>
4  *
5  * This program is free software: you can redistribute it and/or modify it under
6  * the terms of the GNU General Public License as published by the Free Software
7  * Foundation, either version 3 of the License, or (at your option) any later
8  * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
9  * license.
10  */
11
12 #ifndef LOG_FILE_H_
13 #define LOG_FILE_H_
14
15 #include <glib.h>
16
17 typedef enum
18 {
19     LOG_MODE_INVALID = -1,
20     LOG_MODE_BACKUP_AND_TRUNCATE,
21     LOG_MODE_APPEND
22 } LogMode;
23
24 int log_file_open (const gchar *log_filename, LogMode log_mode);
25
26 #endif /* LOG_FILE_H_ */