| 1 |
/* |
| 2 |
* Copyright (C) 2017-2018 Team Kodi |
| 3 |
* This file is part of Kodi - https://kodi.tv |
| 4 |
* |
| 5 |
* SPDX-License-Identifier: GPL-2.0-or-later |
| 6 |
* See LICENSES/README.md for more information. |
| 7 |
*/ |
| 8 |
|
| 9 |
#pragma once |
| 10 |
|
| 11 |
#include <memory> |
| 12 |
|
| 13 |
#include <wayland-client.hpp> |
| 14 |
|
| 15 |
namespace KODI |
| 16 |
{ |
| 17 |
namespace WINDOWING |
| 18 |
{ |
| 19 |
namespace WAYLAND |
| 20 |
{ |
| 21 |
|
| 22 |
/** |
| 23 |
* Connection to Wayland compositor |
| 24 |
*/ |
| 25 |
class CConnection |
| 26 |
{ |
| 27 |
public: |
| 28 |
CConnection(); |
| 29 |
|
| 30 |
bool HasDisplay() const; |
| 31 |
wayland::display_t& GetDisplay(); |
| 32 |
|
| 33 |
private: |
| 34 |
std::unique_ptr<wayland::display_t> m_display; |
| 35 |
}; |
| 36 |
|
| 37 |
} |
| 38 |
} |
| 39 |
} |