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