Groundwork for running different applications
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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