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
14
KITTY_USING_MOVE_T(file_t,
int
, -1, {
15
if
(el >= 0) {
16
close(el);
17
}
18
});
19
20
enum class
window_system_e
{
21
NONE
,
22
X11
,
23
WAYLAND
,
24
};
25
26
extern
window_system_e
window_system;
27
28
namespace
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
window_system_e
Definition
misc.h:20
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