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