summaryrefslogtreecommitdiffhomepage
path: root/gui/init.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/init.hpp')
-rw-r--r--gui/init.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/gui/init.hpp b/gui/init.hpp
new file mode 100644
index 00000000..28ff55c7
--- /dev/null
+++ b/gui/init.hpp
@@ -0,0 +1,15 @@
+#pragma once
+
+#include "export.hpp"
+
+#include <functional>
+#include <memory>
+#include <QWidget>
+
+OTR_GUI_EXPORT int otr_main(int argc, char** argv, std::function<std::unique_ptr<QWidget>()> const& make_main_window);
+
+template<typename F>
+auto run_application(int argc, char** argv, F&& fun)
+{
+ return otr_main(argc, argv, fun);
+}