summaryrefslogtreecommitdiffstats
path: root/src/log.h
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-01-09 23:44:10 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2008-01-09 23:44:10 +0100
commitc898c644fa53e718bc3f4c2567e58a7970aac8ed (patch)
tree3086e4634dbb9ff0c08f1107d1fbe68a10c93e21 /src/log.h
parent5b27cd61a621d3a654e8526b60e8a42134d118c5 (diff)
Fix log creation
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/log.h b/src/log.h
index 5721e32..1ae2d18 100644
--- a/src/log.h
+++ b/src/log.h
@@ -22,7 +22,7 @@
#ifndef _LOG_H
#define _LOG_H
int log_set_levels(const unsigned int levels);
-int log_open(const char*default_filename, const char *mode, const char *prog_name, int argc, char**argv);
+int log_open(const char*default_filename, const int mode, const int interface, const char *prog_name, int argc, char**argv);
int log_flush(void);
int log_close(void);
int log_redirect(unsigned int level, const char *format, ...) __attribute__((format(printf, 2, 3)));
@@ -32,6 +32,12 @@ void dump2_log(const void *dump_1, const void *dump_2,const unsigned int lng);
void log_partition(const disk_t *disk_car,const partition_t *partition);
#endif
+#define TD_LOG_NONE 0
+#define TD_LOG_CREATE 1
+#define TD_LOG_APPEND 2
+#define TD_LOG_DONE 3
+#define TD_LOG_REFUSED 4
+
#define LOG_LEVEL_DEBUG (1 << 0) /* x = 42 */
#define LOG_LEVEL_TRACE (1 << 1) /* Entering function x() */
#define LOG_LEVEL_QUIET (1 << 2) /* Quietable output */