summaryrefslogtreecommitdiff
path: root/src/log-file.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/log-file.h')
-rw-r--r--src/log-file.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/log-file.h b/src/log-file.h
new file mode 100644
index 00000000..5081bf45
--- /dev/null
+++ b/src/log-file.h
@@ -0,0 +1,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_ */