Sunshine
latest
Self-hosted game stream host for Moonlight.
globals.h
Go to the documentation of this file.
1
5
#pragma once
6
7
// local includes
8
#include "
entry_handler.h
"
9
#include "
thread_pool.h
"
10
14
extern
thread_pool_util::ThreadPool
task_pool
;
15
19
extern
bool
display_cursor
;
20
21
#ifdef _WIN32
22
// Declare global singleton used for NVIDIA control panel modifications
23
#include "
platform/windows/nvprefs/nvprefs_interface.h
"
24
28
extern
nvprefs::nvprefs_interface
nvprefs_instance
;
29
#endif
30
34
namespace
mail
{
35
#define MAIL(x) \
36
constexpr auto x = std::string_view { \
37
#x \
38
}
39
43
extern
safe::mail_t
man
;
44
45
// Global mail
46
MAIL(shutdown);
47
MAIL(broadcast_shutdown);
48
MAIL(video_packets);
49
MAIL(audio_packets);
50
MAIL(switch_display);
51
52
// Local mail
53
MAIL(touch_port);
54
MAIL(idr);
55
MAIL(invalidate_ref_frames);
56
MAIL(gamepad_feedback);
57
MAIL(hdr);
58
#undef MAIL
59
60
}
// namespace mail
nvprefs::nvprefs_interface
Definition
nvprefs_interface.h:12
thread_pool_util::ThreadPool
Definition
thread_pool.h:17
entry_handler.h
Declarations for entry handling functions.
task_pool
thread_pool_util::ThreadPool task_pool
A thread pool for processing tasks.
Definition
globals.cpp:9
nvprefs_instance
nvprefs::nvprefs_interface nvprefs_instance
A global singleton used for NVIDIA control panel modifications.
Definition
globals.cpp:13
display_cursor
bool display_cursor
A boolean flag to indicate whether the cursor should be displayed.
Definition
globals.cpp:10
mail
Handles process-wide communication.
Definition
globals.h:34
mail::man
safe::mail_t man
A process-wide communication mechanism.
Definition
globals.cpp:8
nvprefs_interface.h
Declarations for nvidia preferences interface.
thread_pool.h
Declarations for the thread pool system.
src
globals.h
Generated by
1.10.0