Sunshine master
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 <vector>
9
10// platform includes
11#include <CoreGraphics/CoreGraphics.h>
12
13namespace platf {
20} // namespace platf
21
22namespace dyn {
23 typedef void (*apiproc)();
24
33 int load(void *handle, const std::vector<std::tuple<apiproc *, const char *>> &funcs, bool strict = true);
40 void *handle(const std::vector<const char *> &libs);
41
42} // namespace dyn
int load(void *handle, const std::vector< std::tuple< apiproc *, const char * > > &funcs, bool strict)
Load persisted state from its backing store.
Definition misc.cpp:135
void * handle(const std::vector< const char * > &libs)
Return the native handle owned by the wrapper.
Definition misc.cpp:109
bool is_screen_capture_allowed()
Check whether macOS has granted screen-capture permission.
Definition misc.mm:72