|
Sunshine master
Self-hosted game stream host for Moonlight.
|
Wayland display connection used to dispatch capture events. More...
#include <src/platform/linux/wayland.h>
Public Member Functions | |
| bool | dispatch (std::chrono::milliseconds timeout) |
| Waits up to the specified timeout to dispatch new events on the wl_display. | |
| display_internal_t::pointer | get () |
| Return the native Wayland display pointer. | |
| int | init (const char *display_name=nullptr) |
| Connect to the requested Wayland display. | |
| wl_registry * | registry () |
| Return the Wayland registry for global discovery. | |
| void | roundtrip () |
| Flush pending Wayland requests and wait for replies. | |
Wayland display connection used to dispatch capture events.
| bool wl::display_t::dispatch | ( | std::chrono::milliseconds | timeout | ) |
Waits up to the specified timeout to dispatch new events on the wl_display.
| timeout | The timeout in milliseconds. |
true if new events were dispatched or false if the timeout expired.
|
inline |
Return the native Wayland display pointer.
| int wl::display_t::init | ( | const char * | display_name = nullptr | ) |
Connect to the requested Wayland display.
| display_name | Wayland display name, or nullptr to use WAYLAND_DISPLAY. |
| wl_registry * wl::display_t::registry | ( | ) |
Return the Wayland registry for global discovery.