aboutsummaryrefslogtreecommitdiffstats
path: root/common/emb.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/emb.h')
-rw-r--r--common/emb.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/common/emb.h b/common/emb.h
new file mode 100644
index 00000000..3daa7ca3
--- /dev/null
+++ b/common/emb.h
@@ -0,0 +1,20 @@
+//
+// Copyright (C) 2011 Mateusz Loskot <mateusz@loskot.net>
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+//
+// Blog article: http://mateusz.loskot.net/?p=2819
+
+#include <functional>
+#include <iostream>
+#include <string>
+
+namespace emb {
+typedef std::function<void(std::string)> stdout_write_type;
+
+void set_stdout(stdout_write_type write);
+void reset_stdout();
+
+void append_inittab();
+} // namespace emb