mirror of
https://github.com/thinkonmay/sunshine-sdk.git
synced 2025-12-26 22:48:09 +00:00
43 lines
887 B
C++
43 lines
887 B
C++
/**
|
|
* @file globals.h
|
|
* @brief Header for globally accessible variables and functions.
|
|
*/
|
|
#pragma once
|
|
|
|
#include "thread_pool.h"
|
|
#include "thread_safe.h"
|
|
|
|
extern thread_pool_util::ThreadPool task_pool;
|
|
extern bool display_cursor;
|
|
|
|
#ifdef _WIN32
|
|
// Declare global singleton used for NVIDIA control panel modifications
|
|
#include "platform/windows/nvprefs/nvprefs_interface.h"
|
|
extern nvprefs::nvprefs_interface nvprefs_instance;
|
|
#endif
|
|
|
|
namespace mail {
|
|
#define MAIL(x) \
|
|
constexpr auto x = std::string_view { \
|
|
#x \
|
|
}
|
|
|
|
extern safe::mail_t man;
|
|
|
|
// Global mail
|
|
MAIL(shutdown);
|
|
MAIL(video_packets);
|
|
MAIL(audio_packets);
|
|
MAIL(bitrate);
|
|
MAIL(framerate);
|
|
|
|
// Local mail
|
|
MAIL(touch_port);
|
|
MAIL(idr);
|
|
MAIL(invalidate_ref_frames);
|
|
MAIL(gamepad_feedback);
|
|
MAIL(hdr);
|
|
#undef MAIL
|
|
|
|
} // namespace mail
|