Groundwork for running different applications

This commit is contained in:
loki
2019-12-14 23:57:04 +01:00
parent 5541f9dca8
commit d17f37db12
8 changed files with 256 additions and 15 deletions
+2
View File
@@ -34,6 +34,8 @@ struct gamepad_state_t {
std::string get_local_ip();
void interrupt_process(std::uint64_t handle);
mic_t microphone();
audio_t audio(mic_t &mic, std::uint32_t sample_size);
+4
View File
@@ -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();