mirror of
https://github.com/thinkonmay/sunshine-sdk.git
synced 2025-12-27 07:29:21 +00:00
35 lines
554 B
C++
35 lines
554 B
C++
/**
|
|
* @file src/platform/linux/misc.h
|
|
* @brief todo
|
|
*/
|
|
#pragma once
|
|
|
|
#include <unistd.h>
|
|
#include <vector>
|
|
|
|
#include "src/utility.h"
|
|
|
|
KITTY_USING_MOVE_T(file_t, int, -1, {
|
|
if (el >= 0) {
|
|
close(el);
|
|
}
|
|
});
|
|
|
|
enum class window_system_e {
|
|
NONE,
|
|
X11,
|
|
WAYLAND,
|
|
};
|
|
|
|
extern window_system_e window_system;
|
|
|
|
namespace dyn {
|
|
typedef void (*apiproc)(void);
|
|
|
|
int
|
|
load(void *handle, const std::vector<std::tuple<apiproc *, const char *>> &funcs, bool strict = true);
|
|
void *
|
|
handle(const std::vector<const char *> &libs);
|
|
|
|
} // namespace dyn
|