summaryrefslogtreecommitdiffstats
path: root/xbmc/windowing/wayland/Connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/windowing/wayland/Connection.h')
-rw-r--r--xbmc/windowing/wayland/Connection.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/xbmc/windowing/wayland/Connection.h b/xbmc/windowing/wayland/Connection.h
new file mode 100644
index 0000000..b1badd4
--- /dev/null
+++ b/xbmc/windowing/wayland/Connection.h
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2017-2018 Team Kodi
+ * This file is part of Kodi - https://kodi.tv
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * See LICENSES/README.md for more information.
+ */
+
+#pragma once
+
+#include <memory>
+
+#include <wayland-client.hpp>
+
+namespace KODI
+{
+namespace WINDOWING
+{
+namespace WAYLAND
+{
+
+/**
+ * Connection to Wayland compositor
+ */
+class CConnection
+{
+public:
+ CConnection();
+
+ bool HasDisplay() const;
+ wayland::display_t& GetDisplay();
+
+private:
+ std::unique_ptr<wayland::display_t> m_display;
+};
+
+}
+}
+}