summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-07-08 09:12:29 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-07-08 09:15:34 +0200
commit5cdbaa67c68e8c595ae1e1894eead76d465fe73c (patch)
tree8a7c28af407f89f92aface4bb5bf5c5061f71f26 /gui
parenta22afeb52abddd1411992e64377d96110888f325 (diff)
gui, api: plugin-support needs to remain header-only
Move "opentrack_library_path" to the gui module.
Diffstat (limited to 'gui')
-rw-r--r--gui/library-path.cpp4
-rw-r--r--gui/library-path.hpp1
-rw-r--r--gui/ui.cpp2
3 files changed, 7 insertions, 0 deletions
diff --git a/gui/library-path.cpp b/gui/library-path.cpp
new file mode 100644
index 00000000..683dc346
--- /dev/null
+++ b/gui/library-path.cpp
@@ -0,0 +1,4 @@
+#include "library-path.hpp"
+#include "opentrack-library-path.h"
+
+const char* opentrack_library_path = OPENTRACK_LIBRARY_PATH;
diff --git a/gui/library-path.hpp b/gui/library-path.hpp
new file mode 100644
index 00000000..b6454852
--- /dev/null
+++ b/gui/library-path.hpp
@@ -0,0 +1 @@
+extern "C" const char* opentrack_library_path;
diff --git a/gui/ui.cpp b/gui/ui.cpp
index ebc5db21..dc608a7c 100644
--- a/gui/ui.cpp
+++ b/gui/ui.cpp
@@ -9,6 +9,7 @@
#include "ui.h"
#include "opentrack-logic/tracker.h"
#include "opentrack-compat/options.hpp"
+#include "library-path.hpp"
#include "new_file_dialog.h"
#include <QFileDialog>
#include <QDesktopServices>
@@ -20,6 +21,7 @@
#endif
MainWindow::MainWindow() :
+ State(opentrack_library_path),
pose_update_timer(this),
kbd_quit(QKeySequence("Ctrl+Q"), this),
is_refreshing_profiles(false)