aboutsummaryrefslogtreecommitdiffstats
path: root/common/log.h
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-06-19 15:17:10 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-06-19 15:17:34 +0200
commitb5c1b0907974b3c94794a75e84d6c374c3326c40 (patch)
tree46bdaaf65d844428a8959a3d8c0457024af35c51 /common/log.h
parent3a505638a6d4d62023082d8719aa224f8d544ec0 (diff)
downloadnextpnr-b5c1b0907974b3c94794a75e84d6c374c3326c40.tar.gz
nextpnr-b5c1b0907974b3c94794a75e84d6c374c3326c40.tar.bz2
nextpnr-b5c1b0907974b3c94794a75e84d6c374c3326c40.zip
Small gui improvements and open json functionality
Diffstat (limited to 'common/log.h')
-rw-r--r--common/log.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/log.h b/common/log.h
index 8afa94d4..597b5fac 100644
--- a/common/log.h
+++ b/common/log.h
@@ -20,6 +20,7 @@
#ifndef LOG_H
#define LOG_H
+#include <functional>
#include <ostream>
#include <set>
#include <stdarg.h>
@@ -36,6 +37,8 @@
NEXTPNR_NAMESPACE_BEGIN
+typedef std::function<void(std::string)> log_write_type;
+
struct log_cmd_error_exception
{
};
@@ -43,6 +46,7 @@ struct log_cmd_error_exception
extern std::vector<FILE *> log_files;
extern std::vector<std::ostream *> log_streams;
extern FILE *log_errfile;
+extern log_write_type log_write_function;
extern bool log_quiet_warnings;
extern int log_verbose_level;