mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-08-10 00:52:16 +00:00
Groundwork for running different applications
This commit is contained in:
@@ -84,6 +84,10 @@ std::string get_local_ip(int family) {
|
||||
|
||||
std::string get_local_ip() { return get_local_ip(AF_INET); }
|
||||
|
||||
void interrupt_process(std::uint64_t handle) {
|
||||
kill((pid_t)handle, SIGTERM);
|
||||
}
|
||||
|
||||
struct display_attr_t {
|
||||
display_attr_t() : display { XOpenDisplay(nullptr) }, window { DefaultRootWindow(display) }, attr {} {
|
||||
refresh();
|
||||
|
||||
Reference in New Issue
Block a user