Sunshine latest
Self-hosted game stream host for Moonlight.
misc.h
Go to the documentation of this file.
1
5#pragma once
6
7// standard includes
8#include <unistd.h>
9#include <vector>
10
11// local includes
12#include "src/utility.h"
13
14KITTY_USING_MOVE_T(file_t, int, -1, {
15 if (el >= 0) {
16 close(el);
17 }
18});
19
20enum class window_system_e {
21 NONE,
22 X11,
23 WAYLAND,
24};
25
26extern window_system_e window_system;
27
28namespace dyn {
29 typedef void (*apiproc)(void);
30
31 int load(void *handle, const std::vector<std::tuple<apiproc *, const char *>> &funcs, bool strict = true);
32 void *handle(const std::vector<const char *> &libs);
33
34} // namespace dyn
window_system_e
Definition misc.h:20
@ WAYLAND
Wayland.
@ NONE
No window system.
Declarations for utility functions.