|
Hermes 0.7.0
Linux game streaming host
|
Public Member Functions | |
| int | init (const char *display_name=nullptr) |
| Initialize display. If display_name == nullptr -> display_name = std::getenv("WAYLAND_DISPLAY"). | |
| void | roundtrip () |
| bool | dispatch (std::chrono::milliseconds timeout) |
| Waits up to the specified timeout to dispatch new events on the wl_display. | |
| int | connection_error () |
| The errno-style code of the connection's fatal error, 0 for none. A protocol error (EPROTO) is fatal for the whole connection: no further event is ever delivered, so waiting on one looks exactly like a timeout. The first call after the error logs it, later calls only report it. | |
| wl_registry * | registry () |
| display_internal_t::pointer | get () |
| int wl::display_t::connection_error | ( | ) |
The errno-style code of the connection's fatal error, 0 for none. A protocol error (EPROTO) is fatal for the whole connection: no further event is ever delivered, so waiting on one looks exactly like a timeout. The first call after the error logs it, later calls only report it.
Definition at line 176 of file wayland.cpp.
| 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. |
Definition at line 143 of file wayland.cpp.
| int wl::display_t::init | ( | const char * | display_name = nullptr | ) |
Initialize display. If display_name == nullptr -> display_name = std::getenv("WAYLAND_DISPLAY").
| display_name | The name of the display. |
Definition at line 112 of file wayland.cpp.
| wl_registry * wl::display_t::registry | ( | ) |
Definition at line 194 of file wayland.cpp.
| void wl::display_t::roundtrip | ( | ) |
Definition at line 133 of file wayland.cpp.