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
12
KITTY_USING_MOVE_T(file_t,
int
, -1, {
13
if
(el >= 0) {
14
close(el);
15
}
16
});
17
18
enum class
window_system_e
{
19
NONE
,
20
X11
,
21
WAYLAND
,
22
};
23
24
extern
window_system_e
window_system;
25
26
namespace
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
window_system_e
Definition
misc.h:18
window_system_e::WAYLAND
@ WAYLAND
Wayland.
window_system_e::NONE
@ NONE
No window system.
window_system_e::X11
@ X11
X11.
utility.h
Declarations for utility functions.
src
platform
linux
misc.h
Generated by
1.10.0